/**
 * 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 .last {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
}

.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;
}

/* —— Title —— */

.gp-store-hero__title {
	margin: 0 0 18px;
	max-width: 100%;
	/* One fluid ramp for all breakpoints (no per-breakpoint font overrides). */
	font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: #fff;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.gp-store-hero__desc {
	max-width: 72ch;
	margin: -8px 0 20px;
	font-size: clamp(15px, 2vw, 17px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.gp-store-hero__title + .gp-store-hero__desc {
	margin-top: -12px;
}

.gp-store-hero__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: -8px 0 18px;
}

.gpc-rating-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #ffe066;
	color: #3d3d3d;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.gp-store-hero a.gpc-rating-pill,
.gp-store-hero a.gpc-rating-votes {
	text-decoration: none;
}

.gp-store-hero a.gpc-rating-pill {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gp-store-hero a.gpc-rating-pill:hover {
	color: #262626;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.gp-store-hero a.gpc-rating-votes:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gp-store-hero .gpc-rating-jump:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	border-radius: 999px;
}

.gpc-rating-pill--hero {
	background: rgba(255, 224, 102, 0.95);
}

.gpc-rating-pill__star {
	flex-shrink: 0;
	color: #3d3d3d;
}

.gpc-rating-votes {
	font-size: 15px;
	font-weight: 600;
	color: #3d3d3d;
	line-height: 1.3;
}

.gpc-rating-votes--hero {
	color: rgba(255, 255, 255, 0.92);
}

/* —— Meta block —— */

.gp-store-hero__meta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	max-width: 100%;
	font-size: 14px;
	line-height: 1.45;
	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;
}

.gp-store-hero__byline--mobile {
	display: none;
}

.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 3px;
}

.gp-store-hero__more-btn {
	display: none;
	outline: none;
	box-shadow: none;
	background: transparent;
	border: 0;
}

.gp-store-hero__coauthor-panel {
	display: none;
}

.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;
}

.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__disclosure {
		font-size: 11px;
		line-height: 1.25;
		max-width: 38%;
		text-align: right;
		white-space: normal;
	}

	.gp-store-hero__title {
		margin-bottom: 14px;
		line-height: 1.25;
	}

	.gp-store-hero__meta {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 10px;
		row-gap: 10px;
		font-size: 13px;
		line-height: 1.4;
	}

	.gp-store-hero__avatars--stack {
		grid-row: 1;
		align-self: center;
	}

	.gp-store-hero__avatar {
		width: 34px !important;
		height: 34px !important;
	}

	.gp-store-hero__avatar--editor {
		display: none !important;
	}

	.gp-store-hero__meta.has-coauthor .gp-store-hero__avatar-more {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		margin-left: -8px;
		border-radius: 50%;
		border: 2px solid rgba(255, 255, 255, 0.9);
		background: rgba(255, 255, 255, 0.32);
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
		color: #fff;
		flex-shrink: 0;
	}

	.gp-store-hero__meta.is-expanded .gp-store-hero__avatar-more {
		display: none !important;
	}

	.gp-store-hero__meta.is-expanded .gp-store-hero__avatars--stack {
		align-self: start;
	}

	.gp-store-hero__copy {
		grid-row: 1;
		gap: 3px;
	}

	.gp-store-hero__byline--desktop {
		display: none;
	}

	.gp-store-hero__byline--mobile {
		display: block;
	}

	.gp-store-hero__more-btn {
		display: inline-flex;
		align-items: center;
		gap: 2px;
		background: transparent;
		border: 0;
		padding: 0;
		margin: 0;
		color: #fff;
		font: inherit;
		font-weight: 600;
		line-height: inherit;
		cursor: pointer;
		vertical-align: baseline;
		-webkit-tap-highlight-color: transparent;
		text-decoration: none;
		outline: none;
		box-shadow: none;
		appearance: none;
	}

	.gp-store-hero__more-btn:hover {
		color: rgba(255, 255, 255, 0.88);
		text-decoration: none;
		background: transparent;
	}

	.gp-store-hero__more-btn:focus,
	.gp-store-hero__more-btn:focus-visible,
	.gp-store-hero__more-btn:active {
		color: #fff;
		text-decoration: none;
		outline: none;
		box-shadow: none;
		background: transparent;
		border: 0;
	}

	.gp-store-hero__more-label {
		font-weight: 600;
	}

	.gp-store-hero__more-chevron {
		transition: transform 0.2s ease;
	}

	.gp-store-hero__more-btn[aria-expanded="true"] .gp-store-hero__more-chevron {
		transform: rotate(180deg);
	}

	.gp-store-hero__updated {
		font-size: 12px;
		line-height: 1.45;
	}

	.gp-store-hero__pipe--desktop,
	.gp-store-hero__fact--inline {
		display: none !important;
	}

	.gp-store-hero__coauthor-panel {
		grid-column: 1 / -1;
		grid-row: 2;
		display: none;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 10px;
		align-items: center;
		margin: 0;
	}

	.gp-store-hero__coauthor-panel:not([hidden]) {
		display: grid;
		margin-top: 8px;
	}

	.gp-store-hero__coauthor-panel[hidden] {
		display: none !important;
	}

	.gp-store-hero__coauthor-avatar {
		line-height: 0;
		flex-shrink: 0;
	}

	.gp-store-hero__byline--editor {
		margin: 0;
	}

	.gp-store-hero__meta.is-expanded .gp-store-hero__fact--mobile {
		grid-row: 3;
	}

	.gp-store-hero__fact--mobile {
		display: inline-flex;
		grid-column: 1 / -1;
		grid-row: 2;
		font-size: 10.5px;
		letter-spacing: 0.1em;
	}
}

@media (max-width: 380px) {
	.gp-store-hero__disclosure {
		font-size: 10px;
		max-width: 36%;
	}

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

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

	.gp-store-hero__avatar,
	.gp-store-hero__meta.has-coauthor .gp-store-hero__avatar-more {
		width: 30px !important;
		height: 30px !important;
	}

	.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 default GP heading styles inside offer cards */
.coupon-temp .gpc-card .headline {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* —— 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 .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;
}

.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) .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) .inside-article {
	padding-top: clamp(20px, 2.5vw, 28px);
}

.post-template-single-coupon-template .coupon-temp .post-content > .site-container {
	display: flex;
	gap: clamp(28px, 4vw, 50px);
	padding-top: clamp(20px, 2.5vw, 28px);
	padding-bottom: clamp(40px, 5vw, 56px);
}

/* Tablet + mobile: hide sidebar, full-width content */
@media (max-width: 1024px) {
	.post-template-single-coupon-template .coupon-temp .post-content > .site-container {
		padding-top: 20px;
	}

	.post-template-single-coupon-template .coupon-temp .post-content .sidebar {
		display: none;
	}

	.post-template-single-coupon-template .coupon-temp .post-content .content-block {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}
}

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

	.post-template-single-coupon-template .coupon-temp .post-content > .site-container {
		gap: 28px;
		padding-top: 16px;
	}
}
