.scc-banner,
.scc-modal__dialog,
.scc-manage-button {
	color: var(--scc-text, #f9fafb);
	font: inherit;
}

.scc-banner {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	width: min(1040px, calc(100% - 32px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 22px;
	border-radius: 18px;
	background: var(--scc-bg, #111827);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
	z-index: 99999;
}

.scc-banner[hidden],
.scc-modal[hidden],
.scc-manage-button[hidden] {
	display: none !important;
}

.scc-banner--top {
	top: 24px;
}

.scc-banner--bottom {
	bottom: 24px;
}

body.admin-bar .scc-banner--top {
	top: 56px;
}

.scc-banner__content {
	flex: 1 1 auto;
}

.scc-banner__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.scc-banner__message {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.scc-banner__message a {
	color: var(--scc-text, #f9fafb);
	text-decoration: underline;
}

.scc-banner__actions,
.scc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex-shrink: 0;
}

.scc-banner__button {
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.scc-banner__button:hover,
.scc-banner__button:focus,
.scc-manage-button:hover,
.scc-manage-button:focus,
.scc-modal__close:hover,
.scc-modal__close:focus {
	transform: translateY(-1px);
	opacity: 0.95;
}

.scc-banner__button--accept {
	background: var(--scc-accept-bg, #22c55e);
	color: var(--scc-accept-text, #052e16);
}

.scc-banner__button--settings,
.scc-manage-button {
	background: var(--scc-settings-bg, #1d4ed8);
	color: var(--scc-settings-text, #ffffff);
}

.scc-banner__button--secondary,
.scc-modal__actions .scc-banner__button--secondary {
	background: var(--scc-secondary-bg, #374151);
	color: var(--scc-secondary-text, #f9fafb);
}

.scc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.scc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.56);
}

.scc-modal__dialog {
	position: relative;
	width: min(720px, calc(100% - 32px));
	margin: min(10vh, 72px) auto 0;
	padding: 28px;
	border-radius: 22px;
	background: var(--scc-bg, #111827);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.scc-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--scc-text, #f9fafb);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.scc-modal__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff !important;
}

.scc-modal__description {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.9;
}

.scc-modal__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
}

.scc-modal__policy-link {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.scc-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.scc-category:last-of-type {
	margin-bottom: 8px;
}

.scc-category__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
}

.scc-category__description {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.9;
}

.scc-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 56px;
	height: 32px;
	flex-shrink: 0;
}

.scc-toggle input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.scc-toggle__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.24);
	transition: background 0.18s ease;
}

.scc-toggle__slider::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform 0.18s ease;
}

.scc-toggle input:checked + .scc-toggle__slider {
	background: var(--scc-accept-bg, #22c55e);
}

.scc-toggle input:checked + .scc-toggle__slider::before {
	transform: translateX(24px);
}

.scc-toggle input:disabled + .scc-toggle__slider {
	opacity: 0.8;
	cursor: not-allowed;
}

.scc-manage-button {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	border: 0;
	border-radius: 999px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.scc-modal-open {
	overflow: hidden;
}

@media screen and (max-width: 782px) {
	body.admin-bar .scc-banner--top {
		top: 70px;
	}

	.scc-banner {
		width: calc(100% - 24px);
		padding: 18px;
		flex-direction: column;
		align-items: stretch;
	}

	.scc-banner__actions,
	.scc-modal__actions {
		width: 100%;
	}

	.scc-modal__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.scc-modal__policy-link {
		align-self: flex-start;
	}

	.scc-banner__button,
	.scc-manage-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.scc-banner__button,
	.scc-modal__actions .scc-banner__button {
		flex: 1 1 100%;
	}

	.scc-modal__dialog {
		width: calc(100% - 24px);
		margin-top: 24px;
		padding: 22px;
	}

	.scc-category {
		align-items: flex-start;
	}

	.scc-manage-button {
		right: 12px;
		bottom: 12px;
	}
}
