/* Full-viewport shell = dim overlay + centered panel (matches design). */
.ssc-consent {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	padding: 24px 16px;
	background: rgba(12, 10, 9, 0.55);
	color: var(--ssc-banner-color, #0c0a09);
	font-family: inherit;
	transform: none !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
}

body.ssc-consent-open {
	overflow: hidden;
}

.ssc-consent__panel {
	position: relative;
	width: min(440px, 100%);
	outline: none;
	background-color: #ffffff !important;
	background-image: none !important;
	opacity: 1 !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border: none;
	border-radius: 24px;
	box-shadow:
		0 4px 6px rgba(12, 10, 9, 0.06),
		0 24px 64px rgba(12, 10, 9, 0.35);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 40px 36px 28px;
}

.ssc-consent__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: #ffffff;
}

.ssc-consent__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	color: #00C200;
}

.ssc-consent__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: currentColor;
}

.ssc-consent .ssc-consent__text h2 {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #0c0a09;
	text-wrap: balance;
}

.ssc-consent .ssc-consent__text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #57534e;
}

.ssc-consent .ssc-consent__text a {
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ssc-consent__settings {
	margin-top: 24px;
	border-top: 1px solid rgba(12, 10, 9, 0.12);
}

.ssc-consent__settings[hidden],
.ssc-consent__button[hidden] {
	display: none;
}

/* Settings mode: Save sits above Deny / Agree. */
.ssc-consent--settings .ssc-consent__actions .ssc-consent__button--accept:first-child {
	width: 100%;
}

.ssc-consent__actions {
	display: grid;
	gap: 14px;
	margin-top: 28px;
}

.ssc-consent__choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ssc-consent__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 24px;
	line-height: 1;
	opacity: 0.7;
}

.ssc-consent__close:hover {
	opacity: 1;
}

.ssc-consent .ssc-consent__id {
	margin: 12px 0 0;
	font-size: 11px;
	line-height: 1.4;
	opacity: 0.6;
	word-break: break-all;
}

.ssc-consent__button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 9999px;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	min-height: 48px;
	padding: 12px 22px;
	text-align: center;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 160ms ease;
}

/* Deny — solid black */
.ssc-consent__button--deny {
	background: #0c0a09;
	border: 1px solid #0c0a09;
	color: #ffffff;
}

.ssc-consent__button--deny:hover {
	background: #292524;
	border-color: #292524;
	color: #ffffff;
}

/* Accept / Save — brand green, dark text (matches design) */
.ssc-consent__button--accept,
.ssc-consent__button--choice {
	background: #00C200;
	border: 1px solid #00C200;
	color: #0c0a09;
}

.ssc-consent__button--accept:hover,
.ssc-consent__button--choice:hover {
	background: #00a800;
	border-color: #00a800;
	color: #0c0a09;
	opacity: 1;
}

/* Choose — text link under the two primary actions */
.ssc-consent__button--settings {
	justify-self: center;
	min-height: 0;
	padding: 4px 8px;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #0c0a09;
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ssc-consent__button--settings:hover {
	opacity: 0.7;
	background: transparent;
}

.ssc-consent__button:focus-visible,
.ssc-consent__close:focus-visible,
.ssc-consent-link:focus-visible,
.ssc-consent__text a:focus-visible {
	outline: 2px solid #00C200;
	outline-offset: 2px;
}

.ssc-consent__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(12, 10, 9, 0.12);
	cursor: pointer;
}

.ssc-consent__toggle:has(input:disabled) {
	cursor: default;
}

.ssc-consent__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ssc-consent__toggle-text {
	display: grid;
	gap: 4px;
}

.ssc-consent__toggle-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.ssc-consent__toggle-description {
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.8;
}

.ssc-consent__switch {
	position: relative;
	width: 46px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: rgba(12, 10, 9, 0.28);
	transition: background 160ms ease, opacity 160ms ease;
}

.ssc-consent__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ssc-toggle-handle, #ffffff);
	transition: transform 160ms ease, background 160ms ease;
}

.ssc-consent__toggle input:checked ~ .ssc-consent__switch {
	background: #00C200;
}

.ssc-consent__toggle input:checked ~ .ssc-consent__switch::after {
	background: var(--ssc-toggle-checked-handle, #ffffff);
	transform: translateX(20px);
}

.ssc-consent__toggle input:disabled ~ .ssc-consent__switch {
	opacity: 0.5;
}

.ssc-consent__toggle input:focus-visible ~ .ssc-consent__switch {
	outline: 2px solid #00C200;
	outline-offset: 2px;
}

/* Floating reopen chip — solid white, corner positioned */
.ssc-consent-link {
	appearance: none;
	position: fixed;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 0;
	padding: 10px 16px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 32px;
	cursor: pointer;
	background: #ffffff !important;
	border: 1px solid rgba(12, 10, 9, 0.12) !important;
	color: #0c0a09 !important;
	box-shadow: 0 8px 28px rgba(12, 10, 9, 0.28);
	opacity: 1 !important;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.ssc-consent-link:hover {
	background: #00C200 !important;
	border-color: #00C200 !important;
	color: #0c0a09 !important;
}

.ssc-consent-link--icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	background: #ffffff !important;
	color: #0c0a09 !important;
}

.ssc-consent-link--icon:hover {
	background: #00C200 !important;
	color: #0c0a09 !important;
}

.ssc-consent-link.ssc-consent--bottom-right {
	right: 16px;
	bottom: 16px;
}

.ssc-consent-link.ssc-consent--bottom-left {
	left: 16px;
	bottom: 16px;
}

.ssc-consent-link.ssc-consent--top-right {
	top: 16px;
	right: 16px;
}

.ssc-consent-link.ssc-consent--top-left {
	top: 16px;
	left: 16px;
}

.ssc-consent-link.ssc-consent--bottom {
	right: 50%;
	bottom: 16px;
	transform: translateX(50%);
}

.ssc-consent-link.ssc-consent--top {
	top: 16px;
	right: 50%;
	transform: translateX(50%);
}

@media (max-width: 640px) {
	.ssc-consent {
		padding: 16px 12px;
	}

	.ssc-consent__panel {
		max-height: calc(100vh - 32px);
		padding: 28px 22px 22px;
		border-radius: 20px;
	}

	.ssc-consent .ssc-consent__text h2 {
		font-size: 22px;
	}

	.ssc-consent__button {
		min-height: 46px;
		font-size: 14px;
	}

	.ssc-consent-link {
		max-width: calc(100vw - 20px);
	}

	.ssc-consent-link.ssc-consent--bottom-right,
	.ssc-consent-link.ssc-consent--bottom-left {
		right: auto;
		bottom: 10px;
		left: 10px;
	}

	.ssc-consent-link.ssc-consent--top-right,
	.ssc-consent-link.ssc-consent--top-left {
		top: 10px;
		right: auto;
		left: 10px;
	}

	.ssc-consent-link.ssc-consent--bottom {
		right: auto;
		bottom: 10px;
		left: 10px;
		transform: none;
	}

	.ssc-consent-link.ssc-consent--top {
		top: 10px;
		right: auto;
		left: 10px;
		transform: none;
	}
}
