/* Bonus code voucher in the comparison tables.
   Colours: slotfruit brand pink #a82a56 on white = 5.9:1, label #55555f on white = 7.1:1. */

.sf-bonus-code {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 8px;
	line-height: 1.4;
}

.sf-bonus-code-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #55555f;
}

.sf-bonus-code-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	font-family: "Courier New", ui-monospace, monospace;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: #a82a56;
	background: #fff;
	border: 2px dashed #a82a56;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sf-bonus-code-btn::before {
	content: "\2702";
	font-size: 0.95em;
	line-height: 1;
}

.sf-bonus-code-btn:hover,
.sf-bonus-code-btn:focus-visible {
	background: #a82a56;
	color: #fff;
}

.sf-bonus-code-btn:focus-visible {
	outline: 3px solid #24242b;
	outline-offset: 2px;
}

.sf-bonus-code-btn.is-copied {
	background: #2c6e49;
	border-color: #2c6e49;
	color: #fff;
}

.sf-bonus-code-done {
	font-size: 0.8rem;
	font-weight: 700;
	color: #2c6e49;
}

@media (max-width: 600px) {
	.sf-bonus-code-btn { font-size: 0.9rem; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.sf-bonus-code-btn { transition: none; }
}

/* --- In the CTA column, the voucher stacks under Visit Site --- */
.sf-prod-cta-cell .sf-bonus-code {
	justify-content: center;
	gap: 6px;
	margin: 10px 0 0;
}
.sf-prod-cta-cell .sf-bonus-code-label {
	font-size: 0.7rem;
}

/* --- T&C box: capped height, scrolls instead of pushing the page down --- */
.sf-prod-tnc {
	position: relative;
	max-height: 104px;
	overflow-y: auto;
	padding-right: 6px;
	/* thin scrollbar so the cap is visible without dominating */
	scrollbar-width: thin;
	scrollbar-color: #c3ccd7 transparent;
	overscroll-behavior: contain;
}
.sf-prod-tnc::-webkit-scrollbar { width: 6px; }
.sf-prod-tnc::-webkit-scrollbar-track { background: transparent; }
.sf-prod-tnc::-webkit-scrollbar-thumb {
	background: #c3ccd7;
	border-radius: 3px;
}
.sf-prod-tnc::-webkit-scrollbar-thumb:hover { background: #a3aebd; }

@media (max-width: 600px) {
	.sf-prod-tnc { max-height: 72px; }
	.sf-prod-cta-cell .sf-bonus-code { margin-top: 8px; }
}

/* voucher is now a link, not a button */
a.sf-bonus-code-btn { text-decoration: none; }
.sf-bonus-code-hint {
	font-size: 0.68rem;
	color: #55555f;
	white-space: nowrap;
}
.sf-bonus-code-btn.is-copied + .sf-bonus-code-done + .sf-bonus-code-hint { visibility: hidden; }


/* --- CTA column: the voucher alone. The dashed border and scissors already
   read as "code"; the link's aria-label and title carry the rest, so the
   stacked label and hint were three lines of text for one value. --- */
.sf-prod-cta-cell .sf-bonus-code {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
}
.sf-prod-cta-cell .sf-bonus-code-label,
.sf-prod-cta-cell .sf-bonus-code-hint {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sf-prod-cta-cell .sf-bonus-code-btn { font-size: 0.9rem; padding: 5px 12px; }
.sf-prod-cta-cell .sf-bonus-code-done { font-size: 0.7rem; }

/* AI Analyse sits between the offer and the compliance row.
   The offer headline carries 18px bottom margin + 10px padding, sized for the
   compliance row following it directly, so pull the button back up into that. */
.sf-prod-analyse {
	display: flex;
	justify-content: center;
	margin: -16px 0 6px;
}
@media (max-width: 600px) {
	.sf-prod-analyse { margin: -10px 0 6px; }
}
