:root {
	--hhd-home-width: 1120px;
	--hhd-navy: #062b64;
	--hhd-yellow: #ffd21c;
	--hhd-red: #d71920;
}

.hhd-managed-home {
	color: #14243a;
}

.hhd-managed-hero {
	display: grid;
	align-items: center;
	isolation: isolate;
	background: #244263;
}

.hhd-managed-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(0, 25, 62, 0.82), rgba(0, 25, 62, 0.12) 68%);
	content: "";
}

.hhd-managed-hero__media {
	z-index: -2;
}

.hhd-managed-hero__media,
.hhd-managed-hero__media img {
	display: block;
}

.hhd-managed-hero__content {
	max-width: 620px;
	padding: clamp(32px, 5vw, 56px);
	color: #fff;
}

.hhd-managed-hero__content h1 {
	display: -webkit-box;
	max-width: 680px;
	margin: 0 0 16px;
	overflow: hidden;
	color: inherit;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.04;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hhd-managed-hero__content p {
	display: -webkit-box;
	max-width: 600px;
	margin: 0 0 18px;
	overflow: hidden;
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hhd-quick-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: clamp(28px, 4vw, 48px) !important;
	padding-block: 14px 0;
}

.hhd-quick-links a {
	display: grid;
	place-items: center;
	min-height: 48px;
	padding: 8px 12px;
	border-radius: 4px;
	background: var(--hhd-quick-button-bg, #687a45);
	color: var(--hhd-quick-button-text, #fff);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.hhd-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 4px;
	background: var(--hhd-yellow);
	color: #102541;
	font-weight: 700;
	text-decoration: none;
}

.hhd-managed-hero .hhd-home-button {
	background: var(--hhd-hero-button-bg, var(--hhd-yellow));
	color: var(--hhd-hero-button-text, #102541);
}

.hhd-managed-section {
	padding-block: clamp(36px, 6vw, 72px);
}

.hhd-managed-section:nth-of-type(even) {
	background: #eef5fb;
}

.hhd-managed-section h2 {
	margin: 0 0 20px;
	color: var(--hhd-navy);
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.hhd-managed-section__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.hhd-home-slider-controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.hhd-home-slider-controls button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #c8d0d9;
	border-radius: 50%;
	background: #fff;
	color: var(--hhd-navy);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.hhd-home-slider-controls button:disabled {
	opacity: 0.35;
	cursor: default;
}

.hhd-managed-section__copy {
	max-width: 850px;
	margin: -8px 0 24px;
}

.hhd-term-card {
	display: block;
	min-width: 0;
	color: #14243a;
	text-align: center;
	text-decoration: none;
}

.hhd-term-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: 4px;
	background: #e8ebee;
}

.hhd-term-card__image img {
	transition: transform 160ms ease;
}

.hhd-term-card:hover .hhd-term-card__image img {
	transform: scale(1.025);
}

.hhd-brand-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 60px) / 4);
	gap: 20px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
}

.hhd-brand-grid > * {
	scroll-snap-align: start;
}

.hhd-brand-grid::-webkit-scrollbar,
.hhd-category-grid::-webkit-scrollbar {
	display: none;
}

.hhd-brand-grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hhd-brand-grid .hhd-term-card__image {
	box-sizing: border-box;
	padding: 0;
	background: #eef2f5;
}

.hhd-static-promos {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
	gap: 18px;
}

.hhd-static-promos__stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 18px;
}

.hhd-static-promo {
	display: block;
	min-height: 0;
	overflow: hidden;
	border-radius: 4px;
	background: var(--hhd-navy);
	color: #fff;
	text-decoration: none;
}

.hhd-static-promo--feature {
	aspect-ratio: 2 / 1;
}

.hhd-static-promo--clearance {
	background: var(--hhd-yellow);
	color: #111;
}

.hhd-static-promo--offers {
	background: var(--hhd-red);
}

.hhd-static-promo--clearance,
.hhd-static-promo--offers {
	aspect-ratio: 10 / 7;
}

.hhd-static-promo__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hhd-home-guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.hhd-home-guide-card {
	border: 1px solid #dfe3e8;
	background: #fff;
}

.hhd-home-guide-card__image,
.hhd-home-guide-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hhd-home-guide-card__body {
	padding: 20px;
}

.hhd-home-guide-card__meta {
	margin: 0 0 8px;
	color: #b3222a;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.hhd-home-guide-card h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
}

.hhd-home-guide-card h3 a {
	color: var(--hhd-navy);
	text-decoration: none;
}

.hhd-home-button--small {
	min-height: 38px;
	padding: 7px 12px;
	font-size: 0.875rem;
}

.hhd-managed-section--support {
	background: #edf5fb;
}

.hhd-support-card {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	min-height: 420px;
	align-items: stretch;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.hhd-support-card__image {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: left center;
	background: var(--hhd-navy);
}

.hhd-support-card > div {
	padding: clamp(22px, 3vw, 32px);
}

.hhd-support-card h2 {
	margin-bottom: 10px;
	font-size: clamp(1.75rem, 3vw, 2.1rem);
}

.hhd-support-card > div > p {
	margin: 0;
}

.hhd-support-card > div > .hhd-home-button {
	display: flex;
	width: max-content;
	margin-inline: auto;
}

.hhd-support-benefits {
	display: grid;
	gap: 8px;
	margin-block: 12px;
}

.hhd-support-benefit {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 8px;
	background: #f6f7f8;
}

.hhd-support-benefit > span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--hhd-yellow);
	color: var(--hhd-navy);
}

.hhd-support-benefit svg {
	width: 24px;
	height: 24px;
}

.hhd-support-benefit small {
	display: block;
	margin-top: 2px;
}

.hhd-home-lower-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 18px;
	margin-top: 18px;
}

.hhd-newsletter-panel,
.hhd-payment-panel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 220px;
	padding: clamp(20px, 3vw, 28px);
	overflow: hidden;
	border-radius: 8px;
	background: var(--hhd-navy);
	color: #fff;
	text-decoration: none;
}

.hhd-newsletter-panel h2,
.hhd-payment-panel strong {
	color: #fff;
}

.hhd-newsletter-panel h2 {
	margin-bottom: 6px;
	font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.hhd-newsletter-panel__content > p {
	margin: 0;
}

.hhd-newsletter-panel__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
}

.hhd-newsletter-panel::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 43, 100, 0.98) 0%, rgba(6, 43, 100, 0.9) 54%, rgba(6, 43, 100, 0.08) 100%);
	content: "";
}

.hhd-newsletter-panel__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 72%;
}

.hhd-newsletter-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	margin-block: 12px 10px;
}

.hhd-newsletter-form input,
.hhd-newsletter-form button {
	box-sizing: border-box;
	min-height: 46px;
	border: 0;
}

.hhd-newsletter-form input {
	min-width: 0;
	padding: 10px 12px;
	background: #fff !important;
	color: #14243a !important;
	opacity: 1 !important;
}

.hhd-newsletter-form input::placeholder {
	color: #66717e;
	opacity: 1;
}

.hhd-newsletter-form button {
	padding: 10px 18px;
	background: #ffd21c !important;
	color: #102541 !important;
	font-weight: 700;
	opacity: 1 !important;
}

.hhd-newsletter-form button:disabled {
	opacity: 1;
	cursor: not-allowed;
}

.hhd-payment-panel {
	overflow: hidden;
	padding: 0;
}

.hhd-payment-panel > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hhd-social-links {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hhd-social-links > span {
	margin-right: 4px;
	font-size: 0.875rem;
}

.hhd-social-links a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--hhd-yellow);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
}

.hhd-social-links svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.hhd-social-links .hhd-social-icon--filled {
	fill: currentColor;
	stroke: none;
}

.hhd-home-section {
	box-sizing: border-box;
	width: min(calc(100% - 32px), var(--hhd-home-width)) !important;
	max-width: var(--hhd-home-width) !important;
	margin-inline: auto !important;
}

.hhd-home-hero {
	border-radius: 0;
}

.hhd-home-hero .wp-block-cover__inner-container {
	margin-inline: auto;
}

/* Apply this class to the Group that directly contains the category cards. */
.hhd-category-grid {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 80px) / 6);
	grid-template-columns: none;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hhd-category-grid > * {
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}

.hhd-category-grid img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (max-width: 900px) {
	.hhd-support-card {
		grid-template-columns: 1fr;
		height: auto;
	}

	.hhd-support-card__image {
		height: auto;
		aspect-ratio: 14 / 9;
	}

	.hhd-support-card > div {
		overflow: visible;
	}
}

.hhd-promo-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
	gap: 20px;
	padding: 0;
}

.hhd-promo-grid > .wp-block-cover,
.hhd-promo-grid > .hhd-promo-stack {
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin-inline: 0 !important;
}

.hhd-promo-grid > .wp-block-cover,
.hhd-promo-stack,
.hhd-promo-stack > .wp-block-cover {
	margin: 0;
}

.hhd-promo-stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	min-width: 0;
}

.hhd-promo {
	border-radius: 4px;
	overflow: hidden;
}

.hhd-promo .wp-block-cover__image-background {
	object-fit: cover;
}

.hhd-promo--feature .wp-block-cover__inner-container {
	align-self: end;
	padding: clamp(24px, 4vw, 48px);
}

.hhd-promo--feature h2 {
	margin: 4px 0 8px;
	font-size: clamp(2rem, 5vw, 4.5rem);
	line-height: 0.95;
}

.hhd-promo__eyebrow {
	margin: 0;
	font-weight: 700;
	text-transform: uppercase;
}

.hhd-promo--clearance {
	background: var(--hhd-yellow);
}

.hhd-promo--offers {
	background: var(--hhd-red);
}

.hhd-promo--clearance h2,
.hhd-promo--offers h2 {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1;
	text-transform: uppercase;
}

.hhd-promo--clearance a {
	color: #111;
}

.hhd-promo--offers a {
	color: #fff;
}

.hhd-promo--clearance a,
.hhd-promo--offers a {
	text-decoration: none;
}

.hhd-promo--clearance p {
	margin: 8px 0 0;
	color: #111;
	font-weight: 700;
}

@media (max-width: 767px) {
	.hhd-home-section {
		width: min(calc(100% - 24px), var(--hhd-home-width)) !important;
	}

	.hhd-category-grid {
		grid-auto-flow: column;
		grid-auto-columns: calc((100% - 12px) / 2);
		grid-template-columns: none;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.hhd-category-grid > * {
		scroll-snap-align: start;
	}

	.hhd-brand-grid {
		grid-auto-columns: calc((100% - 14px) / 2);
		gap: 14px;
	}

	.hhd-quick-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.hhd-static-promos,
	.hhd-support-card,
	.hhd-home-lower-grid {
		grid-template-columns: 1fr;
	}

	.hhd-support-card {
		height: auto;
	}

	.hhd-support-card__image {
		height: auto;
		aspect-ratio: 14 / 9;
	}

	.hhd-support-card > div {
		overflow: visible;
	}

	.hhd-newsletter-panel {
		height: 300px;
	}

	.hhd-payment-panel {
		height: auto;
		aspect-ratio: 11 / 5;
	}

	.hhd-static-promos__stack {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
	}

	.hhd-home-guide-grid {
		grid-template-columns: 1fr;
	}

	.hhd-promo-grid {
		grid-template-columns: 1fr;
	}

	.hhd-promo-stack {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
	}
}

@media (max-width: 520px) {
	.hhd-promo-stack {
		grid-template-columns: 1fr;
	}

	.hhd-newsletter-panel {
		display: block;
	}

	.hhd-newsletter-panel__content {
		max-width: 80%;
	}

	.hhd-newsletter-form {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}
