/* ---------- Coupon list ---------- */
.clx-group-title {
	display: flex; align-items: center; gap: 10px;
	margin: 1.8em 0 .8em; font-size: 1.25em; line-height: 1.4;
}
.clx-group-title::before {
	content: ''; flex: none; width: 5px; height: 1.1em; border-radius: 4px; background: var(--clx-accent, #6c3cf0);
}
.clx-group-title:first-of-type { margin-top: 0; }

.clx-coupons { display: grid; gap: 12px; margin: 0 0 1.5em; }
.clx-coupon[hidden], .clx-group-title[hidden], .clx-coupons[hidden] { display: none; }

/* ---------- Coupon card ---------- */
.clx-coupon {
	position: relative;
	display: grid;
	grid-template-columns: 104px 1fr auto;
	align-items: stretch;
	background: var(--clx-surface, #fff);
	border: 1px solid var(--clx-border, #e4e6eb);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.clx-coupon:hover { border-color: #cfc3ff; box-shadow: 0 6px 20px rgba(40, 20, 120, .06); }
.clx-coupon.is-exclusive { border-color: var(--clx-accent, #6c3cf0); }
.clx-coupon.is-target { box-shadow: 0 0 0 3px #ffd84d; border-color: #f5c400; }

/* Discount stub, with a "ticket" perforation on its inner edge */
.clx-badge {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 14px 8px; text-align: center;
	font-weight: 800; font-size: 1.3em; line-height: 1.15;
	color: var(--clx-accent, #6c3cf0);
	background: var(--clx-accent-soft, #f1ecff);
	border-inline-end: 2px dashed #d9ccff;
}
.clx-badge small { font-size: .55em; font-weight: 700; letter-spacing: .3px; color: var(--clx-muted, #5b6170); }

.clx-body { padding: 14px 16px; min-width: 0; }
.clx-title { margin: 0 0 6px; font-size: 1.02em; font-weight: 700; line-height: 1.5; }
.clx-tag {
	display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px; padding: 1px 9px;
	font-size: .72em; font-weight: 700; color: #fff;
	background: var(--clx-accent, #6c3cf0); border-radius: 99px;
}
.clx-desc { margin: 0 0 6px; font-size: .88em; line-height: 1.6; color: var(--clx-muted, #5b6170); }
.clx-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78em; color: var(--clx-muted, #5b6170); }
.clx-verified { color: #12804a; font-weight: 700; }
.clx-flags { letter-spacing: 2px; }

.clx-action { display: flex; align-items: center; padding: 14px 16px; padding-inline-start: 0; }

/* ---------- Buttons ---------- */
.clx-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 160px; min-height: 48px; padding: 0 16px;
	font: inherit; font-weight: 700; color: #fff; text-decoration: none;
	background: var(--clx-accent, #6c3cf0); border: 0; border-radius: 12px; cursor: pointer;
	transition: filter .15s ease, transform .1s ease;
}
.clx-btn:hover, .clx-btn:focus-visible { color: #fff; filter: brightness(1.08); }
.clx-btn:active { transform: scale(.98); }
.clx-codebox {
	display: flex; align-items: stretch; min-width: 220px;
	background: #fff; border: 2px dashed var(--clx-accent, #6c3cf0); border-radius: 14px; overflow: hidden;
}
.clx-codebox .clx-code {
	flex: 1; display: grid; place-items: center; padding: 0 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3em; font-weight: 800; letter-spacing: 2px;
	color: var(--clx-text, #1b1f27); user-select: all;
}
.clx-codebox .clx-btn { min-width: 0; border-radius: 0; }
.clx-btn.is-copied { background: #12804a; }
.clx-copied { font-size: .7em; font-weight: 600; color: #12804a; }

.clx-empty {
	padding: 22px; text-align: center; color: var(--clx-muted, #5b6170);
	background: #fff; border: 1px dashed var(--clx-border, #e4e6eb); border-radius: 16px;
}

/* ---------- Country filter ---------- */
.clx-country-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; }
.clx-country-filter button {
	padding: 7px 14px; font: inherit; font-size: .88em; font-weight: 600; color: var(--clx-text, #1b1f27);
	background: #fff; border: 1px solid var(--clx-border, #e4e6eb); border-radius: 99px; cursor: pointer;
}
.clx-country-filter button:hover { border-color: var(--clx-accent, #6c3cf0); }
.clx-country-filter button.is-active { color: #fff; background: var(--clx-text, #1b1f27); border-color: var(--clx-text, #1b1f27); }

/* ---------- Facts / related (also used without the theme template) ---------- */
.clx-status { margin: -.5em 0 1.2em; font-size: .9em; color: var(--clx-muted, #5b6170); }
.clx-status time { font-weight: 700; color: #12804a; }
.clx-facts table { width: 100%; margin: 0; border-collapse: collapse; border: 0; }
.clx-facts th, .clx-facts td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--clx-border, #e4e6eb); text-align: start; vertical-align: top; font-size: .9em; }
.clx-facts tr:last-child th, .clx-facts tr:last-child td { border-bottom: 0; }
.clx-facts th { width: 34%; padding-inline-end: 12px; color: var(--clx-muted, #5b6170); font-weight: 600; }
.clx-related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.clx-related a {
	display: inline-block; padding: 8px 12px; font-size: .9em; font-weight: 600; text-decoration: none; color: var(--clx-text, #1b1f27);
	background: var(--clx-muted-bg, #f6f7f9); border-radius: 10px;
}
.clx-related a:hover { color: var(--clx-accent, #6c3cf0); }

/* ---------- FAQ accordion ---------- */
.clx-faq-list { display: grid; gap: 10px; }
.clx-faq { background: #fff; border: 1px solid var(--clx-border, #e4e6eb); border-radius: 12px; }
.clx-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.clx-faq summary::-webkit-details-marker { display: none; }
.clx-faq summary::after { content: '+'; flex: none; font-size: 1.3em; font-weight: 400; color: var(--clx-accent, #6c3cf0); }
.clx-faq[open] summary::after { content: '−'; }
.clx-faq-a { padding: 0 16px 14px; color: var(--clx-muted, #5b6170); }
.clx-faq-a p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.clx-coupon { grid-template-columns: 84px 1fr; }
	.clx-badge { font-size: 1.1em; padding: 12px 6px; }
	.clx-body { padding: 12px 14px; }
	.clx-action { grid-column: 1 / -1; padding: 0 12px 12px; }
	.clx-btn { width: 100%; }
	.clx-codebox { width: 100%; min-width: 0; }
	.clx-codebox .clx-btn { width: auto; padding: 0 18px; }
}

/* ---------- Big code box (top of store page, ad landing) ---------- */
.clx-hero-code {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 18px 28px;
	margin: 16px 0 4px;
	padding: 26px 30px;
	color: #fff;
	background: linear-gradient(135deg, #5a2be0 0%, #7b45f5 55%, #9a5cff 100%);
	border-radius: 22px;
	box-shadow: 0 14px 40px rgba(92, 43, 224, .28);
}
.clx-hero-kicker { margin: 0 0 2px; font-size: 1em; font-weight: 600; opacity: .9; }
.clx-hero-offer { margin: 0 0 10px; font-size: 2.3em; font-weight: 800; line-height: 1.2; }
.clx-hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .9em; }
.clx-hero-points li { padding: 4px 12px; background: rgba(255, 255, 255, .16); border-radius: 99px; font-weight: 600; }
.clx-hero-points li.is-green { background: #e6fbef; color: #0f6d3e; }

.clx-hero-action { display: grid; gap: 12px; min-width: 300px; }
.clx-hero-box {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	width: 100%; padding: 14px 22px 10px;
	color: #1b1f27; background: #fff;
	border: 3px dashed #ffd84d; border-radius: 16px;
	cursor: pointer; font: inherit;
	animation: clx-pulse 2.2s ease-in-out infinite;
}
.clx-hero-box:hover, .clx-hero-box:focus, .clx-hero-box:active { color: #1b1f27; background: #fff; border-style: solid; }
.clx-hero-code-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 3.4em; font-weight: 800; line-height: 1.05; letter-spacing: 6px;
	color: #5a2be0;
}
.clx-hero-hint { font-size: .82em; font-weight: 700; color: #5b6170; }
.clx-hero-box.is-copied .clx-hero-hint { color: #12804a; }
.clx-hero-code.is-copied .clx-hero-box { animation: none; border-color: #22c55e; border-style: solid; }

.clx-hero-btn {
	width: 100%; min-height: 56px; font-size: 1.08em; font-weight: 800;
	color: #1b1f27 !important; background: #ffd84d !important; border: 0;
	box-shadow: 0 6px 0 #d9b21f;
}
.clx-hero-btn:hover { background: #ffe57a !important; }
.clx-hero-btn.is-copied { background: #22c55e !important; color: #fff !important; box-shadow: 0 6px 0 #15803d; }

@keyframes clx-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 216, 77, .7); }
	50% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(255, 216, 77, 0); }
}
@media (prefers-reduced-motion: reduce) { .clx-hero-box { animation: none; } }

@media (max-width: 760px) {
	.clx-hero-code { grid-template-columns: 1fr; padding: 20px 16px; text-align: center; gap: 14px; }
	.clx-hero-offer { font-size: 1.9em; }
	.clx-hero-points { justify-content: center; }
	.clx-hero-action { min-width: 0; }
	.clx-hero-code-value { font-size: 2.8em; letter-spacing: 4px; }
}
