/**
 * GP Coupons — base layout, offer cards, and store page styles.
 */

:root {
	--primary: #e23e57;
	--text: #4f4f4f;
}

html {
	scroll-behavior: smooth;
}

.site-container {
	max-width: var(--gpc-max, 100%);
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--gpc-gutter, clamp(16px, 4.5vw, 20px));
	box-sizing: border-box;
}

.desc {
	font-size: 16px;
	line-height: 1.65;
	font-weight: 400;
	color: var(--text);
}

/* —— Rank Math FAQ block (editorial content) —— */

.rank-math-list {
	margin-bottom: 40px;
}

.rank-math-list-item {
	background: #fff;
	padding: 15px 20px 2px;
	box-shadow:
		0 0 8px #d1d8dd,
		0 0 40px #fff;
	margin-bottom: 1rem;
	border-radius: 5px;
}

.rank-math-list-item .rank-math-question {
	font-size: 22px;
	font-weight: 600;
	border-bottom: 1px solid #f0f4f8;
	padding-bottom: 0.825rem;
	margin-top: 5px;
	margin-bottom: 0.825rem;
	position: relative;
	padding-right: 40px;
	text-align: left;
}

.rank-math-list-item .rank-math-answer p {
	font-size: 15px;
	line-height: 27px;
}

/* —— Rank Math breadcrumbs (blog + store pages) —— */

.rank-math-breadcrumb {
	margin-top: 20px;
}

.rank-math-breadcrumb p,
.rank-math-breadcrumb .breadcrumb-list {
	margin-bottom: 0;
	font-size: 17px;
}

.rank-math-breadcrumb .breadcrumb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.rank-math-breadcrumb .breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.rank-math-breadcrumb .separator {
	margin: 0 5px;
}

.rank-math-breadcrumb p a {
	text-decoration: none;
}

.single-post .rank-math-breadcrumb {
	margin-bottom: 10px;
	margin-top: 0;
}

.single-post .rank-math-breadcrumb p {
	font-size: 15px;
}

/* —— Coupon store template shell —— */

.post-template-single-coupon-template {
	background: #fff;
}

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

.gp-has-store-hero .site-content {
	display: block;
}

/* —— Post content layout —— */

.coupon-temp .post-content {
	background: #fafafa;
}

.coupon-temp .post-content .site-container {
	display: flex;
	gap: 50px;
}

.coupon-temp .post-content .sidebar {
	flex: 0 0 clamp(220px, 20%, 280px);
	min-width: 0;
}

.coupon-temp .post-content .content-block {
	flex: 1;
}

.coupon-temp .post-content .coupon-stats {
	font-size: 16px;
	color: #444;
}

.coupon-temp .post-content .coupon-block {
	margin-top: 0;
	margin-bottom: 0;
}

.post-content .content-block .entry-content {
	margin-top: 50px;
}

.post-content .gp-store-editorial-wrap .entry-content {
	margin-top: 0;
}

/* —— Tab switcher —— */

.tab-switcher .tab-content {
	display: none;
	height: 0;
	visibility: hidden;
}

.tab-switcher .tab-content.active {
	display: block;
	height: initial;
	visibility: initial;
}

/* —— Sidebar blocks —— */

.coupon-temp .sidebar .block {
	background: #fff;
	border-radius: 10px;
	padding: 25px;
	border: 1px solid #e7e7e7;
	margin-bottom: 20px;
}

.coupon-temp .sidebar .block:last-child {
	margin-bottom: 0;
	position: sticky;
	top: 30px;
}

.coupon-temp .sidebar .block .title {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--headline, #252525);
	margin: 0 0 20px;
}

.coupon-temp .sidebar .block ul {
	margin: 0;
}

.coupon-temp .sidebar .block ul li {
	list-style: none;
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.coupon-temp .block ul li,
.coupon-temp .block ul li a {
	display: block;
	color: var(--text);
	font-size: 16px;
	line-height: 1.6;
}

.coupon-temp .sidebar .block ul li a:hover {
	color: var(--primary);
}

/* —— Table of contents —— */

.gpc-toc {
	margin-bottom: 20px;
}

.gpc-toc__inner {
	padding: 0;
}

.gpc-toc__title {
	display: block;
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.35;
}

.gpc-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gpc-toc__item {
	display: block;
	margin-bottom: 6px;
}

.gpc-toc__link {
	font-size: 16px;
	line-height: 1.55;
	color: var(--headline, #252525);
	font-weight: 400;
	text-decoration: none;
}

.gpc-toc__link:hover {
	color: var(--primary);
	text-decoration: none;
}

.gpc-toc__item.active > .gpc-toc__link {
	color: var(--primary);
}

.coupon-temp .sidebar .gpc-toc nav,
.coupon-temp .sidebar .gpc-toc__inner {
	max-height: 600px;
	overflow: auto;
}

.gpc-toc--inline {
	display: none;
	margin-bottom: 28px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
}

.gpc-offers-heading {
	margin: 0 0 16px;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.25;
	color: var(--headline, #252525);
}

.coupon-temp .gpc-offers .wrapper {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.coupon-temp .gpc-offers .tabs-wrapper {
	margin-bottom: 24px;
}

.coupon-temp .gpc-offers .tab-content.active {
	margin-top: 0;
}

.coupon-temp .gpc-offers .coupon-block {
	padding-top: 4px;
}

/* Native list semantics without visual list styling. */
.coupon-temp .gpc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.coupon-temp .gpc-list__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-store-editorial-wrap {
	margin-top: clamp(28px, 4vw, 40px);
}

/* WCAG 1.4.1 — in-content links must not rely on colour alone. */
.coupon-temp .gp-store-editorial a:not(.button):not([class*="btn"]) {
	text-decoration: underline;
}

.gpc-card__missing-url {
	margin: 0;
	font-size: 13px;
	color: #666;
}

.gpc-deal-btn--disabled {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.55;
	cursor: not-allowed;
}

.gpc-modal__error {
	margin: 0 0 12px;
	color: #b42318;
	font-size: 14px;
}

/* Legacy Easy TOC plugin markup (when present in content) */

.coupon-temp .sidebar #ez-toc-container {
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 0;
}

.coupon-temp .sidebar #ez-toc-container nav {
	max-height: 600px;
	overflow: auto;
}

.coupon-temp .toc #ez-toc-container ul li {
	display: block;
	margin-bottom: 6px;
}

.coupon-temp .toc #ez-toc-container ul li a {
	font-size: 16px;
	line-height: 1.55;
	color: var(--headline, #252525);
	font-weight: 400;
}

.coupon-temp .toc #ez-toc-container ul li a:hover {
	color: var(--primary);
	text-decoration: none;
}

.coupon-temp .toc #ez-toc-container ul li ul {
	margin: 10px 0 0 0;
}

.coupon-temp .toc #ez-toc-container ul > li.active > a {
	color: var(--primary);
}

.coupon-temp .toc #ez-toc-container .ez-toc-heading-level-2 ul {
	margin-left: 10px;
}

.coupon-temp .toc #ez-toc-container .ez-toc-title {
	display: block;
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.35;
}

.post-template-single-coupon-template .entry-content .gpc-toc--inline,
.post-template-single-coupon-template .entry-content #ez-toc-container {
	display: none;
}

.entry-content #ez-toc-container {
	margin-bottom: 30px;
	padding: 40px;
}

.entry-content #ez-toc-container .ez-toc-title-container {
	text-align: center;
	margin-bottom: 18px;
}

.entry-content #ez-toc-container p.ez-toc-title {
	text-align: center;
	font-weight: 700;
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.4;
}

.entry-content #ez-toc-container ul li ul {
	margin-top: 10px;
	position: relative;
	overflow: visible;
}

.entry-content #ez-toc-container li ul li:before {
	content: "»";
	color: #1066a7;
	position: absolute;
	left: -18px;
	font-size: 19px;
}

.entry-content #ez-toc-container ul li {
	margin-bottom: 6px;
}

.entry-content #ez-toc-container ul li a {
	font-size: 18px;
	line-height: 1.7;
	font-weight: 400;
}

/* —— Responsive —— */

@media (min-width: 768px) {
	.entry-content #ez-toc-container .ez-toc-list {
		column-count: 2;
		column-gap: 60px;
		column-rule: 1px solid #ddd;
	}
}

@media (max-width: 1350px) {
	.rank-math-breadcrumb {
		padding: 0 20px;
	}

	.single-post .rank-math-breadcrumb {
		padding: 0;
	}
}

/* Sidebar hidden on tablet/mobile — show inline TOC in editorial */
@media (max-width: 1024px) {
	.post-template-single-coupon-template .entry-content .gpc-toc--inline {
		display: block;
	}

	.entry-content .gpc-toc--inline {
		padding: 20px;
	}

	.entry-content #ez-toc-container {
		padding: 20px;
	}

	.entry-content #ez-toc-container .ez-toc-title-container {
		margin-bottom: 15px;
	}

	.entry-content #ez-toc-container ul li a {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.rank-math-list-item .rank-math-question {
		font-size: 20px;
		padding-right: 0;
	}

	.post-content .content-block .entry-content,
	.post-content .gp-store-editorial-wrap .entry-content {
		margin-top: 0;
	}
}

@media (min-width: 451px) {
	.rank-math-list {
		margin-bottom: 30px;
	}

	.rank-math-list-item .rank-math-question:after {
		content: "?";
		position: absolute;
		right: 0;
		top: 0;
		width: 30px;
		line-height: 30px;
		text-align: center;
		color: #bec8d4;
		font-size: 19px;
		background: #f0f4f8;
		border-radius: 40px;
	}
}

/* === Offer cards === */
/**
 * GP Coupons — offer card styles.
 *
 * Self-contained `.gpc-*` namespace. Scoped under `.coupon-temp` for cascade control.
 */

.coupon-temp {
	--gpc-blue: #2563eb;
	--gpc-blue-dark: #1d4ed8;
	--gpc-green: #16a34a;
	/* Coupon reveal / deal CTA — hero-green tones with AA-compliant white text */
	--gpc-mask-green: #1a715d;
	--gpc-mask-green-hover: #124a3e;
	--gpc-ink: #111827;
	--gpc-muted: #6b7280;
	--gpc-line: #e5e7eb;
	--gpc-red: #e5484d;
	/* Readable type scale */
	--gpc-text-xs: 13px;
	--gpc-text-sm: 14px;
	--gpc-text-base: 15px;
	--gpc-text-md: 16px;
	--gpc-text-lg: 18px;
	--gpc-text-xl: 20px;
	/* CTA / mask sizing */
	--gpc-cta-h: 44px;
	--gpc-mask-cut: 3rem;
	--gpc-mask-btn-fs: 15px;
	--gpc-mask-hint-fs: 20px;
}

.coupon-temp .gpc-card[hidden] {
	display: none !important;
}

/* ---------- Tab switcher (pills) ---------- */

.coupon-temp .tab-switcher .tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	gap: 10px;
}

.coupon-temp .tab-switcher .tabs button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-height: 44px;
	font-size: var(--gpc-text-base);
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 24px;
	border-radius: 999px;
	border: 1px solid var(--gpc-line);
	color: #4b5563;
	background: #fff;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.coupon-temp .tab-switcher .tabs button.active,
.coupon-temp .tab-switcher .tabs button:hover {
	color: #fff;
	background: var(--gpc-blue);
	border-color: var(--gpc-blue);
}

.coupon-temp .tab-switcher .tabs button:focus-visible {
	outline: 2px solid var(--gpc-blue-dark);
	outline-offset: 2px;
}

/* Tablet + mobile: equal-width tabs, no horizontal scroll */
@media (max-width: 1024px) {
	.coupon-temp .tab-switcher .tabs {
		display: flex;
		width: 100%;
		gap: 8px;
	}

	.coupon-temp .tab-switcher .tabs button {
		flex: 1 1 0;
		min-width: 0;
		padding: 10px 8px;
		font-size: var(--gpc-text-sm);
	}
}

@media (max-width: 480px) {
	.coupon-temp .tab-switcher .tabs {
		gap: 6px;
	}

	.coupon-temp .tab-switcher .tabs button {
		font-size: var(--gpc-text-xs);
		padding: 10px 6px;
	}
}

/* ---------- Card shell ---------- */

.coupon-temp .gpc-card {
	display: block;
	position: relative;
	background: #fff;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	box-shadow: none;
	padding: 14px 18px;
	margin: 0 0 14px;
	transition: box-shadow 0.2s ease;
}

.coupon-temp .gpc-card.has-details {
	padding-bottom: 20px;
	margin-bottom: 18px;
}

.coupon-temp .gpc-card:hover {
	box-shadow: 0 6px 20px rgba(17, 24, 39, 0.07);
}

.coupon-temp .gpc-card.is-top-pick {
	padding-top: 26px;
	border-color: #bfdbfe;
}

.coupon-temp .gpc-card__ribbon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gpc-blue);
	color: #fff;
	font-size: var(--gpc-text-xs);
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 5px 16px 5px 6px;
	border-radius: 0 0 12px 12px;
	z-index: 3;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.coupon-temp .gpc-card__ribbon-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	color: var(--gpc-blue);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.coupon-temp .gpc-card__ribbon-label {
	padding-right: 2px;
}

.coupon-temp .gpc-card__rank {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid #374151;
	background: #fff;
	color: #111827;
	font-size: var(--gpc-text-sm);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	line-height: 1;
}

.coupon-temp .gpc-card__inner {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 210px;
	gap: 20px;
	align-items: stretch;
}

/* ---------- Left: brand ---------- */

.coupon-temp .gpc-card__brand {
	position: relative;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 100%;
	padding-top: 6px;
}

.coupon-temp .gpc-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 2px 0;
}

.coupon-temp .gpc-card__logo img {
	display: block;
	max-width: 140px;
	max-height: 46px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.coupon-temp .gpc-card__logo-text {
	font-size: var(--gpc-text-md);
	font-weight: 800;
	color: var(--gpc-ink);
	line-height: 1.25;
	word-break: break-word;
}

.coupon-temp .gpc-card__used {
	margin: 0;
	font-size: var(--gpc-text-xs);
	line-height: 1.45;
	color: var(--gpc-muted);
	max-width: 160px;
}

.coupon-temp .gpc-card__more {
	position: absolute;
	bottom: -14px;
	left: 28px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef2fc;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	font-size: var(--gpc-text-sm);
	font-weight: 600;
	color: var(--gpc-blue);
	z-index: 4;
	white-space: nowrap;
}

.coupon-temp .gpc-card__more svg {
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.coupon-temp .gpc-card__more.active svg {
	transform: rotate(180deg);
}

/* ---------- Middle: body ---------- */

.coupon-temp .gpc-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	padding: 4px 0;
}

.coupon-temp .gpc-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 0;
}

.coupon-temp .gpc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--gpc-text-sm);
	font-weight: 600;
	line-height: 1;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid transparent;
	letter-spacing: 0.01em;
}

.coupon-temp .gpc-badge svg {
	flex-shrink: 0;
}

.coupon-temp .gpc-badge--exclusive {
	background: #fef3d7;
	color: #b45309;
	border-color: #f6dfa6;
}

.coupon-temp .gpc-badge--verified {
	background: #dcfce7;
	color: #15803d;
	border-color: #b6f0c7;
}

.coupon-temp .gpc-badge--expired {
	background: #f3f4f6;
	color: #6b7280;
	border-color: #e5e7eb;
}

/* Expired offers: muted, no hover lift, plain button */
.coupon-temp .gpc-card.is-expired {
	opacity: 0.85;
}

.coupon-temp .gpc-card.is-expired .gpc-card__discount {
	color: #9ca3af;
}

.coupon-temp .gpc-card.is-expired .gpc-mask {
	border-color: #d1d5db;
}

.coupon-temp .gpc-card.is-expired .gpc-mask__btn {
	background: #9ca3af;
}

.coupon-temp .gpc-card.is-expired .gpc-mask:hover .gpc-mask__btn {
	background: #6b7280;
}

.coupon-temp .gpc-card.is-expired .gpc-deal-btn {
	background: #9ca3af;
}

.coupon-temp .gpc-card.is-expired .gpc-deal-btn:hover {
	background: #6b7280;
}

.coupon-temp .gpc-card__title.headline {
	font-size: var(--gpc-text-md);
	font-weight: 700;
	line-height: 1.35;
	color: var(--gpc-ink);
	margin: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.coupon-temp .gpc-card__title.headline a {
	color: inherit;
	text-decoration: none;
}

.coupon-temp .gpc-card__title.headline a:hover {
	color: var(--gpc-blue);
}

.coupon-temp .gpc-card__meta {
	margin: 6px 0 0;
	font-size: var(--gpc-text-sm);
	color: #5f6772;
	line-height: 1.4;
}

.coupon-temp .gpc-card__meta .gpc-card__last-tried {
	font-weight: 600;
	color: #4b5563;
}

.coupon-temp .gpc-card__meta .num {
	font-weight: 600;
	color: #4b5563;
}

.coupon-temp .gpc-card__votes {
	display: flex;
	align-items: center;
	gap: 10px 14px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.coupon-temp .gpc-card__votes .title {
	flex: 0 1 auto;
	font-size: var(--gpc-text-sm);
	font-weight: 500;
	color: #374151;
}

.coupon-temp .gpc-card__votes button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 2px 0;
	cursor: pointer;
	font-size: var(--gpc-text-sm);
	font-weight: 600;
	color: var(--gpc-muted);
	transition: opacity 0.2s ease;
}

.coupon-temp .gpc-card__votes .thumbs-up {
	color: var(--gpc-green);
}

.coupon-temp .gpc-card__votes .thumbs-down {
	color: #ef4444;
}

.coupon-temp .gpc-card__votes button:hover {
	opacity: 0.75;
}

.coupon-temp .gpc-card__votes button.active {
	opacity: 0.5;
}

/* ---------- Right: action ---------- */

.coupon-temp .gpc-card__action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	text-align: center;
	padding-left: 18px;
	border-left: 2px dashed #d1d5db;
	min-width: 0;
	align-self: stretch;
}

.coupon-temp .gpc-card__discount {
	margin: 0 0 10px;
	padding: 0;
	background: none;
	border-radius: 0;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--gpc-green);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.coupon-temp .gpc-card__discount span {
	display: inline;
	font-size: 24px;
	font-weight: 800;
	color: var(--gpc-green);
	margin-left: 0.15em;
	vertical-align: baseline;
}

.coupon-temp .tab-switcher .tabs-wrapper {
	position: static;
	top: auto;
	z-index: auto;
	margin-top: 0;
	margin-bottom: 24px;
	background: transparent;
}

/* Coupon code mask — diagonal green overlay + striped reveal */
.coupon-temp .gpc-card .gpc-mask {
	position: relative;
	display: block;
	width: 100%;
	height: var(--gpc-cta-h);
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	overflow: hidden;
	background-color: #fff;
	background-image: repeating-linear-gradient(
		135deg,
		#ececec 0,
		#ececec 1px,
		transparent 1px,
		transparent 6px
	);
}

.coupon-temp .gpc-card .gpc-mask__reveal {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 16px 0 50%;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

.coupon-temp .gpc-card .gpc-mask__hint {
	font-family: inherit;
	font-size: var(--gpc-mask-hint-fs);
	font-weight: 700;
	line-height: 1;
	color: #1f2937;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

.coupon-temp .gpc-card .gpc-mask__btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 1rem;
	border: 0;
	background: var(--gpc-mask-green);
	color: #fff;
	font-size: var(--gpc-mask-btn-fs);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	z-index: 2;
	clip-path: polygon(
		0 0,
		calc(100% - var(--gpc-mask-cut)) 0,
		100% 100%,
		0 100%
	);
	transition:
		background 0.2s ease,
		clip-path 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.coupon-temp .gpc-card .gpc-mask:hover .gpc-mask__btn {
	background: var(--gpc-mask-green-hover);
	clip-path: polygon(
		0 0,
		calc(100% - 3.75rem) 0,
		100% 100%,
		0 100%
	);
}

.coupon-temp .gpc-card .gpc-mask:hover .gpc-mask__hint {
	color: #111;
}

.coupon-temp .gpc-card .gpc-mask.is-copied .gpc-mask__btn {
	background: var(--gpc-mask-green-hover, #124a3e);
}

.coupon-temp .gpc-card .gpc-mask:active .gpc-mask__btn {
	transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
	.coupon-temp .gpc-card .gpc-mask__btn {
		transition: background 0.2s ease;
	}
}

/* Deal CTA — same footprint as coupon mask, solid green */
.coupon-temp .gpc-card .gpc-deal-wrap {
	width: 100%;
}

.coupon-temp .gpc-card .gpc-deal-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--gpc-cta-h);
	margin: 0;
	padding: 0 1rem;
	border: 1px solid #124a3e;
	border-radius: 6px;
	background: var(--gpc-mask-green, #1a715d);
	color: #fff;
	font-size: var(--gpc-mask-btn-fs);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.coupon-temp .gpc-card .gpc-deal-btn:hover {
	background: var(--gpc-mask-green-hover, #124a3e);
	color: #fff;
}

.coupon-temp .gpc-card .gpc-deal-btn:active {
	transform: scale(0.99);
}

.coupon-temp .gpc-timer {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	justify-content: center;
	width: 100%;
}

.coupon-temp .gpc-timer span {
	flex: 0 0 auto;
	min-width: 48px;
	background: var(--gpc-red);
	color: #fff;
	padding: 8px 7px;
	border-radius: 6px;
	font-size: var(--gpc-text-xs);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-align: center;
}

.coupon-temp .gpc-card:has(.gpc-card__rank) .gpc-card__brand {
	padding-top: 22px;
}

.coupon-temp .gpc-card.is-top-pick .gpc-card__brand {
	padding-top: 6px;
}

.coupon-temp .gpc-card:has(.gpc-card__rank) .gpc-card__body {
	padding-top: 4px;
}

.coupon-temp .gpc-card.is-top-pick .gpc-card__body {
	padding-top: 2px;
}

/* ---------- Expandable details ---------- */

.coupon-temp .gpc-card__details {
	display: none;
	border-top: 1px dashed #d1d5db;
	margin-top: 18px;
	padding-top: 18px;
	font-size: var(--gpc-text-base);
	line-height: 1.65;
	color: #4b5563;
}

.coupon-temp .gpc-card__details.active {
	display: block;
}

.coupon-temp .gpc-card__details p {
	margin: 0 0 12px;
}

.coupon-temp .gpc-card__details ul {
	margin: 0 0 12px 18px;
}

/* ---------- Reveal popup (code modal) ---------- */

.gpc-modal {
	--gpc-mask-green: #1a715d;
	--gpc-mask-green-hover: #124a3e;
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gpc-modal[hidden] {
	display: none !important;
}

.gpc-modal.active {
	display: flex;
}

.gpc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.gpc-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	padding: 40px 40px 32px;
	text-align: center;
}

.gpc-modal__close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
}

.gpc-modal__close:hover {
	color: #111827;
}

.gpc-modal__logo {
	margin-bottom: 18px;
}

.gpc-modal__logo img {
	max-width: 160px;
	max-height: 46px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gpc-modal__title {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
	color: #111827;
	margin: 0 0 16px;
}

.gpc-modal__paste {
	font-size: 15px;
	color: #4b5563;
	margin: 0 0 14px;
}

.gpc-modal__store {
	color: #2563eb;
	font-weight: 700;
	text-decoration: none;
}

.gpc-modal__code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 2px dashed #b8cdb4;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 0 0 18px;
	background: #f8faf7;
}

.gpc-modal__code-val {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #111827;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gpc-modal__copy {
	flex-shrink: 0;
	background: var(--gpc-mask-green, #1a715d);
	color: #fff;
	border: 0;
	border-radius: 5px;
	padding: 10px 18px;
	font-size: var(--gpc-text-base);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gpc-modal__copy:hover {
	background: var(--gpc-mask-green-hover, #124a3e);
}

.gpc-modal__copy:focus-visible {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

.gpc-modal__redeem {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 18px;
	border-radius: 5px;
	margin: 0 0 18px;
	transition: background 0.2s ease;
}

.gpc-modal__redeem:hover {
	background: #dbeafe;
	color: #1e40af;
}

.gpc-modal__redeem--deal {
	background: var(--gpc-mask-green, #1a715d);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gpc-modal__redeem--deal:hover {
	background: var(--gpc-mask-green-hover, #124a3e);
	color: #fff;
}

.gpc-modal__votes {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 22px;
}

.gpc-modal__votes .title {
	font-size: var(--gpc-text-base);
	color: #374151;
}

.gpc-modal__votes button {
	display: inline-flex;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 4px;
}

.gpc-modal__votes .thumbs-up {
	color: #16a34a;
}

.gpc-modal__votes .thumbs-down {
	color: #f97316;
}

.gpc-modal__votes button.active {
	opacity: 0.5;
}

.gpc-modal__details {
	text-align: left;
	border-top: 1px solid #eef0f3;
	padding-top: 18px;
}

.gpc-modal__details-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #111827;
}

.gpc-modal__details-body {
	font-size: 14.5px;
	line-height: 1.65;
	color: #4b5563;
}

.gpc-modal__details-body p {
	margin: 0 0 10px;
}

@media (max-width: 767px) {
	.gpc-modal__box {
		padding: 32px 22px 24px;
	}

	.gpc-modal__title {
		font-size: 20px;
	}

	.gpc-modal__code {
		flex-direction: column;
		align-items: stretch;
	}

	.gpc-modal__copy {
		width: 100%;
		padding: 12px 18px;
	}
}

/* Offer stats card (above table of contents) */
.coupon-temp .sidebar .gpc-offer-stats.block {
	margin-bottom: 20px;
}

/* Store rating vote widget */
.coupon-temp .gpc-store-rating {
	scroll-margin-top: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 22px 24px;
}

.coupon-temp .gpc-store-rating:focus {
	outline: none;
}

.coupon-temp .gpc-store-rating:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.3);
	outline-offset: 3px;
}

.coupon-temp .sidebar .gpc-store-rating.block {
	margin-bottom: 20px;
}

.coupon-temp .gpc-store-rating--mobile {
	display: none;
	margin-top: 32px;
}

.coupon-temp .gpc-store-rating__title {
	margin: 0 0 14px;
	font-size: var(--gpc-text-lg);
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.coupon-temp .gpc-store-rating__stars {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.coupon-temp .gpc-store-rating__star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c5cad1;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}

.coupon-temp .gpc-store-rating__star:hover,
.coupon-temp .gpc-store-rating__star:focus-visible {
	color: #f5b800;
	transform: scale(1.05);
}

.coupon-temp .gpc-store-rating__star.is-active {
	color: #f5b800;
}

.coupon-temp .gpc-store-rating__star:focus-visible {
	outline: 2px solid var(--gpc-blue);
	outline-offset: 2px;
}

.coupon-temp .gpc-store-rating__stars.is-locked .gpc-store-rating__star {
	cursor: default;
	transform: none;
}

.coupon-temp .gpc-store-rating__feedback {
	margin: 0 0 12px;
	font-size: var(--gpc-text-base);
	line-height: 1.45;
	color: #374151;
}

.coupon-temp .gpc-store-rating__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.coupon-temp .gpc-store-rating .gpc-rating-pill {
	background: #ffe066;
	color: #3d3d3d;
}

.coupon-temp .gpc-store-rating .gpc-rating-votes {
	font-size: var(--gpc-text-base);
	font-weight: 600;
	color: #374151;
}

.coupon-temp .gpc-store-rating .gpc-rating-votes--empty {
	color: #6b7280;
	font-weight: 500;
}

.coupon-temp .sidebar .toc.block {
	position: sticky;
	top: 30px;
}

.coupon-temp .gpc-offer-stats {
	padding: 22px 24px;
}

.coupon-temp .gpc-offer-stats__list {
	margin: 0;
	padding: 0;
}

.coupon-temp .gpc-offer-stats__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 12px;
	margin-bottom: 14px;
}

.coupon-temp .gpc-offer-stats__row:last-of-type {
	margin-bottom: 0;
}

.coupon-temp .gpc-offer-stats__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	font-size: var(--gpc-text-md);
	line-height: 1.4;
	color: #374151;
}

.coupon-temp .gpc-offer-stats__icon {
	flex-shrink: 0;
	color: #c85a45;
}

.coupon-temp .gpc-offer-stats__value {
	margin: 0;
	font-size: var(--gpc-text-md);
	font-weight: 700;
	color: #111827;
	text-align: right;
	line-height: 1.35;
}

.coupon-temp .gpc-offer-stats__divider {
	height: 1px;
	background: #e5e7eb;
	margin: 18px 0;
}

.coupon-temp .gpc-offer-stats__today {
	text-align: center;
}

.coupon-temp .gpc-offer-stats__today-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
}

.coupon-temp .gpc-offer-stats__people {
	color: #374151;
}

.coupon-temp .gpc-offer-stats__today-num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: #111827;
}

.coupon-temp .gpc-offer-stats__today-text {
	margin: 0;
	font-size: var(--gpc-text-base);
	line-height: 1.5;
	color: #374151;
}

@media (max-width: 1024px) {
	.coupon-temp .gpc-store-rating--mobile {
		display: block;
	}
}

@media (max-width: 767px) {
	.coupon-temp .gpc-store-rating {
		padding: 20px;
	}

	.coupon-temp .gpc-store-rating__star {
		width: 40px;
		height: 40px;
	}

	.coupon-temp .gpc-store-rating__star-icon {
		width: 24px;
		height: 24px;
	}

	.coupon-temp .gpc-offer-stats {
		padding: 18px 20px;
	}

	.coupon-temp .gpc-offer-stats__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.coupon-temp .gpc-offer-stats__value {
		justify-content: flex-start;
		text-align: left;
	}

	.coupon-temp .gpc-offer-stats__today-num {
		font-size: 24px;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.coupon-temp .gpc-card__inner {
		grid-template-columns: 138px minmax(0, 1fr) 190px;
		gap: 16px;
	}

	.coupon-temp .gpc-card__logo img {
		max-width: 128px;
		max-height: 44px;
	}

	.coupon-temp .gpc-card__discount {
		font-size: 22px;
	}

	.coupon-temp .gpc-card__discount span {
		font-size: 22px;
	}
}

@media (max-width: 900px) {
	.coupon-temp .gpc-card__inner {
		grid-template-columns: 126px minmax(0, 1fr) 176px;
		gap: 14px;
	}

	.coupon-temp .gpc-card__action {
		padding-left: 14px;
	}

	.coupon-temp .gpc-card__logo img {
		max-width: 118px;
		max-height: 42px;
	}
}

@media (max-width: 767px) {
	.coupon-temp {
		--gpc-cta-h: 48px;
		--gpc-mask-cut: 3.125rem;
		--gpc-mask-btn-fs: 14px;
		--gpc-mask-hint-fs: 18px;
	}

	.coupon-temp .coupon-block .gpc-card,
	.coupon-temp .gpc-card {
		padding: 16px 16px 22px;
		margin-bottom: 28px;
		overflow: visible;
	}

	.coupon-temp .gpc-card.is-top-pick {
		padding-top: 44px;
	}

	.coupon-temp .gpc-card:has(.gpc-card__rank):not(.is-top-pick) {
		padding-top: 38px;
	}

	.coupon-temp .gpc-card.has-details {
		padding-bottom: 18px;
		margin-bottom: 36px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.coupon-temp .gpc-card.has-details .gpc-card__inner,
	.coupon-temp .gpc-card.has-details .gpc-card__details {
		align-self: stretch;
		width: 100%;
	}

	.coupon-temp .gpc-card__inner {
		grid-template-columns: 1fr;
		gap: 0;
		width: 100%;
	}

	.coupon-temp .gpc-card__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 10px;
		padding: 0 0 14px;
		margin-bottom: 14px;
		border-bottom: 1px dashed #d1d5db;
		min-height: 0;
	}

	.coupon-temp .gpc-card:has(.gpc-card__rank) .gpc-card__brand,
	.coupon-temp .gpc-card.is-top-pick .gpc-card__brand {
		padding-top: 0;
	}

	.coupon-temp .gpc-card__logo {
		width: 100%;
		min-height: 48px;
		justify-content: center;
		padding: 0;
	}

	.coupon-temp .gpc-card__logo img {
		max-height: 56px;
		max-width: min(200px, 100%);
		width: auto;
		height: auto;
		margin: 0 auto;
	}

	.coupon-temp .gpc-card__logo-text {
		font-size: var(--gpc-text-base);
		text-align: center;
		max-width: 100%;
	}

	.coupon-temp .gpc-card__used {
		max-width: 100%;
		margin: 0;
		font-size: var(--gpc-text-sm);
		line-height: 1.5;
		text-align: center;
	}

	.coupon-temp .gpc-card__body {
		padding: 0 0 14px;
		margin-bottom: 14px;
		border-bottom: 1px dashed #d1d5db;
		min-width: 0;
	}

	.coupon-temp .gpc-card:has(.gpc-card__rank) .gpc-card__body,
	.coupon-temp .gpc-card.is-top-pick .gpc-card__body {
		padding-top: 0;
	}

	.coupon-temp .gpc-card__badges {
		gap: 6px;
	}

	.coupon-temp .gpc-card__badges .gpc-badge {
		font-size: var(--gpc-text-xs);
		padding: 5px 10px;
	}

	.coupon-temp .gpc-card__votes {
		gap: 8px 12px;
		flex-wrap: nowrap;
	}

	.coupon-temp .gpc-card__votes .title {
		flex: 0 1 auto;
		min-width: 0;
	}

	.coupon-temp .gpc-card__votes button {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.coupon-temp .gpc-card__action {
		padding: 12px 0 0;
		border-left: 0;
		border-top: 0;
		align-items: stretch;
		width: 100%;
	}

	/* Title already shows the offer — keep CTA area focused on code/deal */
	.coupon-temp .gpc-card__discount {
		display: none;
	}

	.coupon-temp .gpc-card .gpc-mask {
		width: 100%;
		max-width: 100%;
	}

	.coupon-temp .gpc-card .gpc-mask:hover .gpc-mask__btn,
	.coupon-temp .gpc-card .gpc-mask.is-copied .gpc-mask__btn {
		clip-path: polygon(
			0 0,
			calc(100% - 3.5rem) 0,
			100% 100%,
			0 100%
		);
	}

	.coupon-temp .gpc-card .gpc-mask__reveal {
		padding-right: 14px;
	}

	.coupon-temp .gpc-card .gpc-deal-wrap {
		width: 100%;
	}

	.coupon-temp .gpc-card__more {
		position: relative;
		left: auto;
		bottom: auto;
		transform: none;
		display: inline-flex;
		justify-content: center;
		width: fit-content;
		max-width: calc(100% - 32px);
		margin: 16px auto 0;
	}

	.coupon-temp .gpc-card__rank {
		top: 10px;
		left: 10px;
		width: 26px;
		height: 26px;
		font-size: var(--gpc-text-xs);
	}

	.coupon-temp .gpc-card__ribbon {
		max-width: calc(100% - 32px);
	}

	.coupon-temp .gpc-timer {
		justify-content: center;
		flex-wrap: wrap;
	}

	.coupon-temp .gpc-timer span {
		min-width: 42px;
	}
}

@media (max-width: 480px) {
	.coupon-temp {
		--gpc-mask-cut: 3rem;
		--gpc-mask-hint-fs: 17px;
		--gpc-mask-btn-fs: 13.5px;
	}

	.coupon-temp .coupon-block .gpc-card,
	.coupon-temp .gpc-card {
		padding: 14px 14px 18px;
	}

	.coupon-temp .gpc-card.is-top-pick {
		padding-top: 40px;
	}

	.coupon-temp .gpc-card__logo img {
		max-height: 52px;
		max-width: min(180px, 100%);
	}

	.coupon-temp .gpc-card__used {
		font-size: var(--gpc-text-sm);
	}

	.coupon-temp .gpc-card__title.headline {
		font-size: var(--gpc-text-base);
	}

	.coupon-temp .gpc-card__votes .title {
		flex: 1 1 100%;
	}

	.coupon-temp .gpc-card .gpc-mask:hover .gpc-mask__btn,
	.coupon-temp .gpc-card .gpc-mask.is-copied .gpc-mask__btn {
		clip-path: polygon(
			0 0,
			calc(100% - 3.375rem) 0,
			100% 100%,
			0 100%
		);
	}
}
