/*
 * Soulbound Consent banner + settings dialog.
 * Colours come from the Elementor kit variables; the hex values are only
 * fallbacks for pages where the kit CSS is absent. Neutral greys match the
 * Legal Portal (snippet #2618). Accept and Reject share one class on purpose:
 * regulators expect them to be equally prominent.
 */
.sbc-banner,
.sbc-dialog {
	--sbc-bg: var(--e-global-color-primary, #212129);
	--sbc-green: var(--e-global-color-secondary, #6FFF6B);
	--sbc-blue: var(--e-global-color-accent, #71B9EF);
	--sbc-text: #C2C7D0;
	--sbc-strong: #FFFFFF;
	--sbc-line: #333B49;
	font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sbc-text);
	background: var(--sbc-bg);
	border: 1px solid var(--sbc-line);
	border-radius: 14px;
	box-sizing: border-box;
}

.sbc-banner *,
.sbc-dialog * {
	box-sizing: border-box;
}

.sbc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	max-width: 980px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

.sbc-banner[hidden] {
	display: none !important;
}

.sbc-banner p,
.sbc-dialog p {
	margin: 0;
	color: var(--sbc-text);
}

.sbc-banner__text {
	flex: 1 1 auto;
	min-width: 0;
}

.sbc-banner .sbc-title,
.sbc-dialog .sbc-title {
	color: var(--sbc-strong);
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 4px;
}

.sbc-banner a,
.sbc-dialog a {
	color: var(--sbc-blue);
	text-decoration: underline;
}

.sbc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 0 auto;
}

.sbc-btn {
	min-height: 44px;
	min-width: 120px;
	padding: 10px 18px;
	border: 2px solid var(--sbc-green);
	border-radius: 999px;
	background: var(--sbc-green);
	color: var(--sbc-bg);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.sbc-btn:hover {
	filter: brightness(1.08);
}

.sbc-btn--quiet {
	background: transparent;
	color: var(--sbc-strong);
	border-color: #6B7180;
}

.sbc-btn:focus-visible,
.sbc-close:focus-visible,
.sbc-switch:focus-visible,
.sbc-banner a:focus-visible,
.sbc-dialog a:focus-visible {
	outline: 3px solid var(--sbc-blue);
	outline-offset: 2px;
}

.sbc-dialog {
	width: calc(100% - 32px);
	max-width: 560px;
	padding: 0;
}

.sbc-dialog::backdrop {
	background: rgba(0, 0, 0, .6);
}

.sbc-dialog__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sbc-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sbc-close {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sbc-strong);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.sbc-cat {
	border-top: 1px solid var(--sbc-line);
	padding-top: 12px;
}

.sbc-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
}

.sbc-cat__name {
	color: var(--sbc-strong);
	font-weight: 600;
}

.sbc-cat__always {
	color: var(--sbc-green);
	font-size: 13px;
}

.sbc-switch {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
	margin: 0;
	border-radius: 999px;
	background: #3A4150;
	border: 1px solid #6B7180;
	cursor: pointer;
	transition: background .15s;
}

.sbc-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sbc-strong);
	transition: transform .15s;
}

.sbc-switch:checked {
	background: var(--sbc-green);
	border-color: var(--sbc-green);
}

.sbc-switch:checked::after {
	transform: translateX(20px);
	background: var(--sbc-bg);
}

.sbc-small {
	font-size: 13px;
}

@media (max-width: 767px) {
	.sbc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 12px;
		max-height: calc(100vh - 16px);
		overflow: auto;
	}

	.sbc-actions .sbc-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sbc-switch,
	.sbc-switch::after {
		transition: none;
	}
}
