/*
 * KB&A Cookie Consent - front-end styles
 * Brand palette pulled from the site's active Electro theme skin:
 * gold #fed700 / charcoal #333e48, set as CSS custom properties so a
 * future rebrand only needs the values below to change.
 */
#kba-cc-root {
	--kba-gold: #fed700;
	--kba-gold-dark: #eac600;
	--kba-gold-deep: #a78e00;
	--kba-ink: #1b2128;
	--kba-charcoal: #333e48;
	--kba-line: #e9e6dc;
	--kba-text-on-dark: #eef0f2;
	--kba-text-muted-on-dark: #b7bec4;
	--kba-text-on-light: #3c4650;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
#kba-cc-root *,
#kba-cc-root *::before,
#kba-cc-root *::after {
	box-sizing: border-box;
}

/* ---------- Banner ---------- */
.kba-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: var(--kba-ink);
	border-top: 3px solid var(--kba-gold);
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}
.kba-cc-banner[hidden] {
	display: none;
}
.kba-cc-banner-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.kba-cc-eyebrow {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kba-gold);
}
.kba-cc-copy {
	flex: 1 1 420px;
	min-width: 260px;
}
.kba-cc-msg {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--kba-text-on-dark);
}
.kba-cc-msg a {
	color: var(--kba-gold);
	text-decoration: underline;
	font-weight: 600;
}
.kba-cc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.kba-cc-btn {
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	padding: 12px 18px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.12s ease, opacity 0.12s ease;
}
.kba-cc-btn:hover {
	transform: translateY(-1px);
}
.kba-cc-btn:active {
	transform: translateY(0);
}
.kba-cc-btn-solid {
	background: var(--kba-gold);
	border: 1px solid var(--kba-gold);
	color: var(--kba-ink);
}
.kba-cc-btn-solid:hover {
	background: var(--kba-gold-dark);
	border-color: var(--kba-gold-dark);
}
.kba-cc-btn-outline {
	background: transparent;
	border: 1px solid var(--kba-gold);
	color: var(--kba-gold);
}
.kba-cc-btn-outline:hover {
	background: rgba(254, 215, 0, 0.1);
}
.kba-cc-btn-ghost {
	background: transparent;
	border: 1px solid transparent;
	color: var(--kba-text-muted-on-dark);
	text-decoration: underline;
	padding-left: 8px;
	padding-right: 8px;
}
.kba-cc-btn-ghost:hover {
	color: var(--kba-text-on-dark);
}
.kba-cc-modal .kba-cc-btn-ghost {
	color: #8a939b;
}
.kba-cc-modal .kba-cc-btn-ghost:hover {
	color: var(--kba-text-on-light);
}

.kba-cc-reopen-link {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Modal ---------- */
.kba-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.kba-cc-modal[hidden] {
	display: none;
}
.kba-cc-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 20, 24, 0.6);
}
.kba-cc-modal-panel {
	position: relative;
	background: #fff;
	color: var(--kba-text-on-light);
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border-radius: 12px;
	border-top: 4px solid var(--kba-gold);
	padding: 32px 28px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.kba-cc-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f3f1e9;
	color: var(--kba-charcoal);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}
.kba-cc-modal-close:hover {
	background: #eee9d6;
}
.kba-cc-modal h2 {
	margin: 0 0 10px;
	font-family: 'Roboto Slab', serif;
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--kba-charcoal);
}
.kba-cc-modal-intro {
	margin: 0 0 20px;
	font-size: 0.88rem;
	line-height: 1.65;
	color: #5b6672;
}
.kba-cc-modal-intro a {
	color: var(--kba-gold-deep);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(167, 142, 0, 0.35);
}

.kba-cc-cat {
	padding: 14px 0;
	border-top: 1px solid var(--kba-line);
}
.kba-cc-cat:first-of-type {
	border-top: 1px solid var(--kba-line);
}
.kba-cc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.kba-cc-cat-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--kba-charcoal);
}
.kba-cc-cat-desc {
	margin: 6px 0 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: #6b7480;
}

/* Toggle switch */
.kba-cc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: 0 0 auto;
}
.kba-cc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.kba-cc-slider {
	position: absolute;
	inset: 0;
	background: #d8d4c4;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.kba-cc-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.kba-cc-switch input:checked + .kba-cc-slider {
	background: var(--kba-gold);
}
.kba-cc-switch input:checked + .kba-cc-slider::before {
	transform: translateX(18px);
}
.kba-cc-switch-locked .kba-cc-slider {
	cursor: not-allowed;
	opacity: 0.85;
}

.kba-cc-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--kba-line);
}
.kba-cc-modal-actions .kba-cc-btn-ghost {
	margin-right: auto;
}

/* ---------- Floating reopen button ---------- */
.kba-cc-fab {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 999998;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--kba-gold);
	color: var(--kba-ink);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.kba-cc-fab[hidden] {
	display: none;
}
.kba-cc-fab:hover {
	background: var(--kba-gold-dark);
}

/* ---------- Small screens ---------- */
@media (max-width: 680px) {
	.kba-cc-banner-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 18px 18px 20px;
	}
	.kba-cc-actions {
		justify-content: stretch;
	}
	.kba-cc-actions .kba-cc-btn {
		flex: 1 1 auto;
		text-align: center;
	}
	.kba-cc-modal-panel {
		padding: 26px 20px 20px;
	}
}
