/**
 * GP Coupons — store hero header.
 */

.gp-store-hero {
	position: relative;
	color: #fff;
	/* Fluid vertical rhythm — scales smoothly from mobile to desktop. */
	padding: clamp(16px, 2.4vw, 30px) 0 clamp(20px, 3vw, 38px);
	overflow: hidden;
	background: linear-gradient(125deg, #238b72 0%, #1a715d 38%, #124a3e 100%);
}

.gp-store-hero__pattern {
	position: absolute;
	inset: 0;
	opacity: 0.42;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}

.gp-store-hero__container.site-container {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* Accessible focus rings — keep tap highlight off but restore keyboard visibility */
.gp-store-hero a,
.gp-store-hero button {
	-webkit-tap-highlight-color: transparent;
}

.gp-store-hero a:focus,
.gp-store-hero button:focus {
	outline: none;
}

.gp-store-hero a:focus-visible,
.gp-store-hero button:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.95);
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.gp-store-hero a:active,
.gp-store-hero button:active {
	background: none;
}

/* —— Top bar: breadcrumbs + disclosure —— */

.gp-store-hero__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.gp-store-hero__crumbs {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.9);
}

.gp-store-hero__crumbs .gp-coupons-breadcrumb,
.gp-store-hero__crumbs .rank-math-breadcrumb {
	margin: 0;
}

.gp-store-hero__crumbs .rank-math-breadcrumb p,
.gp-store-hero__crumbs .rank-math-breadcrumb .breadcrumb-list {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.gp-store-hero__crumbs .breadcrumb-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.gp-store-hero__crumbs .breadcrumb-item {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.gp-store-hero__crumbs a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.gp-store-hero__crumbs a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gp-store-hero__crumbs .breadcrumb-home {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.gp-store-hero__crumbs .separator {
	margin: 0 7px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	line-height: 1;
}

.gp-store-hero__crumbs .breadcrumb-item:last-child .separator,
.gp-store-hero__crumbs .rank-math-breadcrumb .last + .separator,
.gp-store-hero__crumbs .rank-math-breadcrumb p > .separator:last-child {
	display: none;
}

.gp-store-hero__crumbs .last {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
}

.gp-store-hero__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 14px;
}

.gp-store-hero__disclosure {
	flex: 0 0 auto;
	background: none;
	border: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	white-space: nowrap;
}

.gp-store-hero__disclosure:hover {
	color: #fff;
}

.gp-store-hero__disclosure:focus-visible {
	color: #fff;
	opacity: 0.92;
}

.gp-store-hero__methodology {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.gp-store-hero__methodology:hover,
.gp-store-hero__methodology:focus-visible {
	color: #fff;
}

/* —— Title + store logo —— */

.gp-store-hero__headline {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2.5vw, 18px);
	margin: 0 0 14px;
}

.gp-store-hero__headline-text {
	flex: 1 1 auto;
	min-width: 0;
}

.gp-store-hero__title {
	margin: 0;
	max-width: 100%;
	font-size: var(--gpc-hero-title);
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: -0.02em;
	color: #fff;
	word-break: break-word;
	overflow-wrap: break-word;
}

.gp-store-hero__desc {
	max-width: 68ch;
	margin: 0 0 16px;
	font-size: var(--gpc-hero-desc);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.94);
}

.gp-store-hero__headline + .gp-store-hero__desc {
	margin-top: -4px;
}

.gp-store-hero__logo-wrap {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(56px, 12vw, 72px);
	height: clamp(56px, 12vw, 72px);
	margin: 0;
	padding: clamp(8px, 1.6vw, 10px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.gp-store-hero__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* —— Meta block —— */

.gp-store-hero__meta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 6px;
	align-items: center;
	max-width: 100%;
	margin-top: 4px;
	font-size: var(--gpc-hero-meta);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.gp-store-hero__avatars--stack {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	align-self: center;
	flex-shrink: 0;
}

.gp-store-hero__avatar {
	display: block;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.9);
	object-fit: cover;
	background: rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.gp-store-hero__avatar--editor {
	margin-left: -10px;
}

.gp-store-hero__avatar-more {
	display: none;
}

.gp-store-hero__copy {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.gp-store-hero__byline {
	margin: 0;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}

.gp-store-hero__sep,
.gp-store-hero__dot {
	opacity: 0.72;
}

.gp-store-hero__person {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.gp-store-hero__person:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gp-store-hero__person:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gp-store-hero__sep {
	margin: 0;
}

.gp-store-hero__updated {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 5px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
}

.gp-store-hero__updated time {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
}

.gp-store-hero__dot {
	opacity: 0.75;
}

.gp-store-hero__pipe {
	margin: 0 2px;
	opacity: 0.65;
	font-weight: 300;
}

.gp-store-hero__fact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.gp-store-hero__fact--mobile {
	display: none !important;
}

.gp-store-hero__fact-icon {
	flex-shrink: 0;
	opacity: 0.95;
}

/* Rank Math breadcrumb overrides inside hero */
.gp-store-hero .rank-math-breadcrumb a,
.gp-store-hero .rank-math-breadcrumb span {
	color: rgba(255, 255, 255, 0.92);
}

.gp-store-hero .rank-math-breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gp-store-hero .rank-math-breadcrumb .separator {
	color: rgba(255, 255, 255, 0.65);
}

/* Advertiser disclosure dialog */
.gp-disclosure-dialog[hidden] {
	display: none !important;
}

.gp-disclosure-dialog {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gp-disclosure-dialog__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.gp-disclosure-dialog__panel {
	position: relative;
	width: min(100%, 520px);
	background: #fff;
	color: #111827;
	border-radius: 12px;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gp-disclosure-dialog__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
	color: #111827;
}

.gp-disclosure-dialog__panel p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #4b5563;
}

.gp-disclosure-dialog__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}

.gp-disclosure-dialog__close:hover {
	color: #111827;
}

/* —— Mobile layout —— */

@media (max-width: 767px) {
	.gp-store-hero__top {
		align-items: center;
		gap: 10px;
		margin-bottom: 14px;
	}

	.gp-store-hero__crumbs {
		font-size: 12px;
		line-height: 1.3;
	}

	.gp-store-hero__crumbs .breadcrumb-list {
		flex-wrap: nowrap;
		overflow: hidden;
	}

	.gp-store-hero__crumbs .breadcrumb-item {
		flex-shrink: 0;
	}

	.gp-store-hero__crumbs .breadcrumb-item:last-child {
		flex-shrink: 1;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.gp-store-hero__top {
		flex-wrap: wrap;
	}

	.gp-store-hero__actions {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.gp-store-hero__disclosure,
	.gp-store-hero__methodology {
		font-size: 12px;
		line-height: 1.35;
		max-width: none;
		text-align: left;
		white-space: normal;
	}

	.gp-store-hero__headline--branded {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 10px;
	}

	.gp-store-hero__headline--branded .gp-store-hero__logo-wrap {
		width: 64px;
		height: 64px;
		padding: 9px;
		border-radius: 12px;
	}

	.gp-store-hero__headline--branded .gp-store-hero__headline-text {
		width: 100%;
	}

	.gp-store-hero__headline--branded .gp-store-hero__title {
		font-size: var(--gpc-hero-title);
		line-height: 1.32;
		letter-spacing: -0.015em;
	}

	.gp-store-hero__headline:not(.gp-store-hero__headline--branded) {
		margin-bottom: 12px;
	}

	.gp-store-hero__headline:not(.gp-store-hero__headline--branded) .gp-store-hero__title {
		line-height: 1.28;
	}

	.gp-store-hero__desc {
		font-size: var(--gpc-hero-desc);
		line-height: 1.5;
		margin-bottom: 12px;
	}

	.gp-store-hero__updated {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		column-gap: 4px;
		row-gap: 2px;
		font-size: var(--gpc-hero-meta);
		line-height: 1.5;
	}

	.gp-store-hero__updated time {
		white-space: nowrap;
	}

	.gp-store-hero__meta {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 0;
		padding-top: 14px;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		font-size: var(--gpc-hero-meta);
		line-height: 1.45;
	}

	.gp-store-hero__avatars--stack {
		display: none;
	}

	.gp-store-hero__copy {
		flex: 1 1 100%;
		min-width: 0;
		gap: 6px;
	}

	.gp-store-hero__byline {
		line-height: 1.45;
	}

	.gp-store-hero__updated {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 6px;
		row-gap: 4px;
	}

	.gp-store-hero__updated time {
		white-space: nowrap;
	}

	.gp-store-hero__fact--inline {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		font-size: 0.6875rem;
		letter-spacing: 0.06em;
	}
}

@media (max-width: 380px) {
	.gp-store-hero__disclosure,
	.gp-store-hero__methodology {
		font-size: 11px;
	}

	.gp-store-hero__crumbs {
		font-size: 11px;
	}

	.gp-store-hero__crumbs .separator {
		margin: 0 4px;
	}

	.gp-store-hero__headline--branded .gp-store-hero__logo-wrap {
		width: 56px;
		height: 56px;
		padding: 8px;
	}

	.gp-store-hero__meta {
		padding-top: 12px;
		gap: 6px;
	}

	.gp-store-hero__updated {
		font-size: 11px;
		flex-wrap: wrap;
	}
}

/* === Layout tokens for full-bleed store pages === */
/**
 * Layout container system — mobile-first, aligned with GeneratePress.
 *
 * Desktop: 1140px–1280px (fluid clamp)
 * Tablet:  768px–1024px (100% width + fluid gutters)
 * Mobile:  360px–430px+ (100% width + safe gutters)
 */

:root {
	--headline: #252525;
	--gpc-container-min: 1200px;
	--gpc-container-max: 1400px;
	--gpc-max: 100%;
	--gpc-gutter: clamp(14px, 3.8vw, 18px);
}

/* Tablet: fluid gutters, full-width content area */
@media (min-width: 768px) {
	:root {
		--gpc-gutter: clamp(24px, 3.5vw, 32px);
	}
}

/* Desktop: clamp content between 1200px and 1400px */
@media (min-width: 1025px) {
	:root {
		--gpc-gutter: 40px;
		--gpc-max: clamp(
			var(--gpc-container-min),
			calc(100vw - (var(--gpc-gutter) * 2)),
			var(--gpc-container-max)
		);
	}
}

/* GeneratePress: full-bleed hero pages (store template + default singular) */
.gp-has-store-hero .site-content {
	display: block;
	padding: 0;
	margin: 0;
}

.gp-has-store-hero .site-main,
.gp-has-store-hero #primary,
.gp-has-store-hero .content-area {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.gp-has-store-hero.separate-containers .site-main {
	margin: 0;
}

.gp-has-store-hero.post-template-single-coupon-template .inside-article {
	padding: 0;
	margin: 0;
	background: transparent;
}

.gp-has-store-hero .grid-container#page {
	max-width: 100%;
	width: 100%;
}

/* Cookie notice */
#cookie-notice {
	display: flex;
	align-items: center;
	left: 50%;
	transform: translateX(-50%);
	font-family: inherit;
	font-size: 14px;
	color: #1f2937;
	background: #fff;
	padding: 10px 20px;
	position: fixed;
	bottom: 10px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	margin: 0;
	z-index: 1000000;
	box-sizing: border-box;
	max-width: min(var(--gpc-container-max), calc(100vw - 32px));
}

#cookie-notice[hidden] {
	display: none !important;
}

#cookie-notice button {
	color: #fff;
	background: #c62a43;
	border: 0;
	padding: 5px 10px;
	cursor: pointer;
	font-size: inherit;
	margin-left: 10px;
	border-radius: 3px;
}

#cookie-notice a {
	color: #b31f3a;
	text-decoration: underline;
}

@media (max-width: 767px) {
	#cookie-notice {
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		bottom: 0;
		left: 0;
		border-radius: 0;
		transform: none;
		text-align: center;
	}

	#cookie-notice button {
		margin: 10px 0 0;
	}

	.gp-has-store-hero .entry-content table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Reset GP global .headline margins only — card type sizes live in coupon-cards.css */
.coupon-temp .gpc-card .gpc-card__title.headline {
	margin: 0;
}

/* —— Unified page container (header, hero, body, footer) —— */

.gp-has-store-hero .site-header .inside-header,
.gp-has-store-hero .site-header .grid-container,
.gp-has-store-hero .main-navigation .inside-navigation,
.gp-has-store-hero .main-navigation .grid-container,
.gp-has-store-hero .site-footer .inside-footer,
.gp-has-store-hero .site-footer .grid-container,
.gp-has-store-hero .gp-site-footer__inner,
.gp-has-store-hero .site-container {
	max-width: var(--gpc-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gpc-gutter);
	padding-right: var(--gpc-gutter);
	box-sizing: border-box;
}

.gp-has-store-hero .site-container {
	padding-top: 0;
	padding-bottom: 0;
}

.gp-has-store-hero .gp-store-hero__container.site-container {
	padding-top: 0;
	padding-bottom: 0;
}

/* —— Site header aligned with hero container —— */

.gp-has-store-hero .site-header {
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.gp-has-store-hero .site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: clamp(56px, 7vw, 68px);
	padding-top: clamp(10px, 1.4vw, 14px);
	padding-bottom: clamp(10px, 1.4vw, 14px);
}

.gp-has-store-hero .site-header .site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.gp-has-store-hero .site-header .site-logo img,
.gp-has-store-hero .site-header .header-image img,
.gp-has-store-hero .site-header .site-logo .logo-svg svg {
	display: block;
	max-height: clamp(32px, 4.5vw, 40px);
	width: auto;
	height: auto;
}

.gp-has-store-hero .site-header .main-title {
	margin: 0;
	font-size: clamp(var(--gpc-text-lg), 2.2vw, var(--gpc-text-xl));
	line-height: var(--gpc-leading-tight);
}

.gp-has-store-hero .site-header .main-navigation {
	margin-left: auto;
}

@media (max-width: 767px) {
	.gp-has-store-hero .site-header .inside-header {
		min-height: 52px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.gp-has-store-hero .site-header .site-logo img,
	.gp-has-store-hero .site-header .header-image img {
		max-height: 34px;
	}
}

.gp-has-store-hero .gp-store-hero .rank-math-breadcrumb,
.gp-has-store-hero .coupon-temp .rank-math-breadcrumb {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Default posts/pages: align main content with hero container */
.gp-has-store-hero:not(.post-template-single-coupon-template):not(.post-template-single-review-template):not(.post-template-single-blog-template) .site-main {
	max-width: var(--gpc-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gpc-gutter);
	padding-right: var(--gpc-gutter);
	box-sizing: border-box;
}

.gp-has-store-hero:not(.post-template-single-coupon-template):not(.post-template-single-review-template):not(.post-template-single-blog-template) .inside-article {
	padding-top: clamp(20px, 2.5vw, 28px);
}

.gp-has-store-hero.post-template-single-review-template .site-main,
.gp-has-store-hero.post-template-single-blog-template .site-main,
.gp-has-store-hero.post-template-single-review-template #primary,
.gp-has-store-hero.post-template-single-blog-template #primary {
	margin: 0;
	padding: 0;
	max-width: 100%;
	width: 100%;
}

@media (max-width: 767px) {
	.gp-has-store-hero:not(.post-template-single-coupon-template):not(.post-template-single-review-template):not(.post-template-single-blog-template) .inside-article {
		padding-top: 16px;
	}

	.post-template-single-review-template .gp-editorial-temp .post-content > .site-container,
	.post-template-single-blog-template .gp-editorial-temp .post-content > .site-container {
		gap: 28px;
		padding-top: 16px;
	}
}
