.bayrebooks-home-main {
	--bayrebooks-home-canvas-width: min(1692px, calc(100vw - clamp(48px, 8vw, 148px)));

	margin-top: 0;
}

.bayrebooks-home-category-section,
.bayrebooks-home-product-section,
.bayrebooks-feature-slider-section,
.bayrebooks-google-reviews-section {
	scroll-margin-top: 96px;
}

.bayrebooks-home-category-section {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--bayrebooks-home-canvas-width);
	padding: 30px 0 46px;
	width: 100%;
}

.bayrebooks-home-category-section:not(.alignfull) {
	max-width: var(--bayrebooks-home-canvas-width);
}

.bayrebooks-home-category-section.alignfull {
	max-width: var(--bayrebooks-home-canvas-width);
}

.bayrebooks-home-category-section .wp-block-heading {
	color: var(--wp--preset--color--bayrebooks-navy);
	line-height: 1.14;
	margin-bottom: 12px;
}

.bayrebooks-home-category-section > p {
	color: var(--wp--preset--color--bayrebooks-blue);
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.45;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--bayrebooks-home-canvas-width);
}

.bayrebooks-category-grid {
	align-items: start;
	display: grid !important;
	gap: clamp(28px, 2vw, 36px);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 28px;
	max-width: var(--bayrebooks-home-canvas-width);
	width: 100% !important;
}

.bayrebooks-category-grid:not(.alignfull) {
	max-width: var(--bayrebooks-home-canvas-width);
}

.bayrebooks-category-grid.alignfull {
	max-width: var(--bayrebooks-home-canvas-width);
}

.bayrebooks-category-card {
	align-items: stretch;
	display: block !important;
	height: 100%;
	margin-block-start: 0 !important;
	min-width: 0;
	place-self: start stretch;
	text-align: center;
}

.bayrebooks-category-card > * {
	margin-block-start: 0 !important;
}

.bayrebooks-category-card .wp-block-image {
	aspect-ratio: 1.1 / 1;
	background: var(--wp--preset--color--bayrebooks-soft-grey);
	border-radius: 8px;
	display: block !important;
	line-height: 0;
	margin: 0 0 12px;
	max-width: none;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bayrebooks-category-card .wp-block-image a {
	display: block;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.bayrebooks-category-card .wp-block-image img {
	border-radius: 8px;
	display: block;
	height: 100% !important;
	inset: 0;
	max-width: none;
	object-fit: cover;
	position: absolute;
	vertical-align: top;
	width: 100% !important;
}

.bayrebooks-category-card .wp-block-heading {
	font-size: clamp(18px, 1.5vw, 20px);
	line-height: 1.25;
	margin: 0 0 6px;
}

.bayrebooks-category-card .wp-block-heading a {
	color: var(--wp--preset--color--bayrebooks-blue);
	text-decoration: none;
}

.bayrebooks-category-card .wp-block-heading a:hover,
.bayrebooks-category-card .wp-block-heading a:focus {
	text-decoration: underline;
}

.bayrebooks-category-card p {
	color: var(--wp--preset--color--bayrebooks-blue);
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.35;
	margin: 0;
}

.bayrebooks-feature-slider-section {
	background: color-mix(in srgb, var(--wp--preset--color--bayrebooks-blue) 13%, #ffffff);
	border-radius: 8px;
	box-sizing: border-box;
	margin-bottom: clamp(46px, 6vw, 76px);
	margin-left: auto;
	margin-right: auto;
	max-width: var(--bayrebooks-home-canvas-width);
	padding: clamp(34px, 4vw, 42px) clamp(22px, 3.6vw, 42px);
	width: 100%;
}

.bayrebooks-feature-slider-section .wp-block-heading {
	color: var(--wp--preset--color--bayrebooks-blue);
	line-height: 1.16;
	margin: 0;
}

.bayrebooks-feature-slider-section__intro {
	color: var(--wp--preset--color--bayrebooks-blue);
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.45;
	margin: 14px auto 28px;
	max-width: 980px;
}

.bayrebooks-feature-slider {
	--bayrebooks-feature-gap: clamp(20px, 2.4vw, 40px);

	display: grid !important;
	gap: var(--bayrebooks-feature-gap);
	grid-auto-columns: 28%;
	grid-auto-flow: column;
	grid-template-columns: none;
	margin: 0;
	max-width: none;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding-bottom: 4px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	width: 100%;
}

.bayrebooks-feature-slider::-webkit-scrollbar {
	display: none;
}

.bayrebooks-feature-card {
	background: var(--wp--preset--color--bayrebooks-navy);
	border-radius: 12px;
	display: block !important;
	margin-block-start: 0 !important;
	min-height: clamp(340px, 28vw, 518px);
	overflow: hidden;
	position: relative;
	scroll-snap-align: start;
}

.bayrebooks-feature-card > * {
	margin-block-start: 0 !important;
}

.bayrebooks-feature-card .wp-block-image {
	display: block !important;
	height: 100%;
	inset: 0;
	line-height: 0;
	margin: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.bayrebooks-feature-card .wp-block-image a {
	display: block;
	height: 100%;
	width: 100%;
}

.bayrebooks-feature-card .wp-block-image img {
	display: block;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	width: 100% !important;
}

.bayrebooks-feature-card__content {
	align-items: center;
	background: var(--wp--preset--color--bayrebooks-navy);
	box-sizing: border-box;
	bottom: 0;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	left: 0;
	min-height: clamp(88px, 7vw, 104px);
	padding: 16px 18px;
	position: absolute;
	right: 0;
	z-index: 1;
}

.bayrebooks-feature-card__content .wp-block-heading {
	color: #ffffff;
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 14px;
	text-shadow: 0 1px 2px rgba(15, 39, 68, 0.28);
}

.bayrebooks-feature-card__content .wp-block-buttons {
	margin: 0;
}

.bayrebooks-feature-card__button {
	margin: 0;
}

.bayrebooks-feature-card__button .wp-block-button__link {
	background: transparent;
	border: 0;
	color: #ffffff;
	font-size: clamp(15px, 1.3vw, 18px);
	font-weight: 800;
	padding: 0;
	position: static;
	text-decoration: none;
}

.bayrebooks-feature-card__button .wp-block-button__link::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 3;
}

.bayrebooks-feature-card__button .wp-block-button__link:hover,
.bayrebooks-feature-card__button .wp-block-button__link:focus {
	text-decoration: underline;
}

.editor-styles-wrapper .bayrebooks-feature-card {
	min-height: 420px;
}

.editor-styles-wrapper .bayrebooks-feature-card .wp-block-image {
	z-index: 0;
}

.editor-styles-wrapper .bayrebooks-feature-card__content {
	z-index: 2;
}

.editor-styles-wrapper .bayrebooks-feature-card__button .wp-block-button__link::after {
	content: none;
}

.bayrebooks-feature-carousel__controls {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 22px;
}

.bayrebooks-feature-carousel__arrow {
	align-items: center;
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--bayrebooks-navy) 18%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--bayrebooks-navy);
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
	width: 42px;
}

.bayrebooks-feature-carousel__arrow:hover,
.bayrebooks-feature-carousel__arrow:focus-visible {
	background: var(--wp--preset--color--bayrebooks-navy);
	color: #ffffff;
}

.bayrebooks-feature-carousel__dots {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
	min-height: 12px;
}

.bayrebooks-feature-carousel__dot {
	background: color-mix(in srgb, var(--wp--preset--color--bayrebooks-navy) 24%, #ffffff);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 8px;
	padding: 0;
	transition: background 180ms ease, width 180ms ease;
	width: 8px;
}

.bayrebooks-feature-carousel__dot.is-active {
	background: var(--wp--preset--color--bayrebooks-navy);
	width: 28px;
}

.bayrebooks-home-product-section {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--bayrebooks-home-canvas-width);
	padding: 0 0 clamp(46px, 6vw, 76px);
	width: 100%;
}

.bayrebooks-home-product-section .bayrebooks-product-carousel {
	margin-top: 0;
	max-width: 100%;
}

.bayrebooks-lazy-product-carousel__placeholder {
	align-items: center;
	background: var(--wp--preset--color--bayrebooks-soft-grey);
	border-radius: 8px;
	color: var(--wp--preset--color--bayrebooks-navy);
	display: flex;
	font-weight: 800;
	justify-content: center;
	min-height: 420px;
}

.bayrebooks-google-reviews-section {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: clamp(46px, 6vw, 76px);
	max-width: var(--bayrebooks-home-canvas-width);
	padding-left: clamp(24px, 4vw, 52px);
	padding-right: clamp(24px, 4vw, 52px);
	width: 100%;
}

.bayrebooks-google-reviews-section > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100% !important;
}

.bayrebooks-google-reviews-section .ti-widget,
.bayrebooks-google-reviews-section .ti-widget-container,
.bayrebooks-google-reviews-section .ti-reviews-container,
.bayrebooks-google-reviews-section .ti-reviews-container-wrapper {
	box-sizing: border-box;
	max-width: none !important;
	width: 100% !important;
}

.bayrebooks-google-reviews-section pre.ti-widget {
	font-family: inherit;
	white-space: normal;
}

.bayrebooks-lazy-reviews__placeholder {
	align-items: center;
	background: var(--wp--preset--color--bayrebooks-soft-grey);
	border-radius: 8px;
	color: var(--wp--preset--color--bayrebooks-navy);
	display: flex;
	font-weight: 700;
	justify-content: center;
	min-height: 180px;
}

@media (max-width: 1024px) {
	.bayrebooks-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bayrebooks-feature-slider {
		grid-auto-columns: minmax(300px, 46%);
	}

	.bayrebooks-feature-card {
		min-height: 430px;
	}
}

@media (max-width: 640px) {
	.bayrebooks-home-category-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.bayrebooks-home-product-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.bayrebooks-google-reviews-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.bayrebooks-feature-slider-section {
		border-radius: 8px;
		margin-left: 16px;
		margin-right: 16px;
		padding: 30px 16px;
	}

	.bayrebooks-feature-slider-section__intro {
		margin-bottom: 22px;
	}

	.bayrebooks-feature-slider {
		gap: 16px;
		grid-auto-columns: minmax(252px, 86%);
	}

	.bayrebooks-feature-card {
		min-height: 360px;
	}

	.bayrebooks-feature-carousel__controls {
		margin-top: 18px;
	}

	.bayrebooks-feature-carousel__arrow {
		height: 38px;
		width: 38px;
	}

	.bayrebooks-category-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
	}
}
