#scc-root {
	--scc-bg: #fff;
	--scc-text: #141a17;
	--scc-primary-bg: #03392d;
	--scc-primary-text: #fff;
	--scc-secondary-bg: #e7ebe8;
	--scc-secondary-text: #141a17;
	font-size: 15px;
	line-height: 1.5;
}
#scc-root [hidden] { display: none !important; }

.scc-bar {
	position: fixed;
	z-index: 2147483000;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	box-sizing: border-box;
	padding: 16px max(24px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
	background: var(--scc-bg);
	color: var(--scc-text);
	box-shadow: 0 -2px 20px rgba(0, 0, 0, .18);
}
.scc-bar--top { top: 0; bottom: auto; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; box-shadow: 0 2px 20px rgba(0, 0, 0, .18); }
.scc-bar--box { left: 16px; right: auto; bottom: 16px; width: min(440px, calc(100vw - 32px)); padding: 20px; border-radius: 10px; box-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.scc-bar__message { flex: 1 1 420px; min-width: 0; }
.scc-bar__message a { color: inherit; text-decoration: underline; }
.scc-bar__actions, .scc-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.scc-btn {
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.scc-btn--primary { background: var(--scc-primary-bg); color: var(--scc-primary-text); }
.scc-btn--secondary { background: var(--scc-secondary-bg); color: var(--scc-secondary-text); }
.scc-btn:hover { filter: brightness(.93); }
.scc-btn:focus-visible, .scc-tab:focus-visible, .scc-modal__close:focus-visible, .scc-cat summary:focus-visible, .scc-switch input:focus-visible + .scc-switch__track {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.scc-modal {
	box-sizing: border-box;
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--scc-bg);
	color: var(--scc-text);
	overflow: hidden;
}
.scc-modal[open] { display: flex; flex-direction: column; }
.scc-modal::backdrop { background: rgba(0, 0, 0, .55); }
.scc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid rgba(127, 127, 127, .3); }
.scc-modal__head h2 { margin: 0; color: inherit; font: inherit; font-size: 20px; font-weight: 700; }
.scc-modal__close { width: 44px; height: 44px; margin: -8px -12px -8px 0; padding: 0; border: 0; background: none; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.scc-modal__body { flex: 1 1 auto; min-height: 0; padding: 18px 24px; overflow-y: auto; }
.scc-modal__intro { margin-bottom: 8px; }
.scc-modal__actions { justify-content: flex-end; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(127, 127, 127, .3); }

.scc-cat { padding: 14px 0; border-top: 1px solid rgba(127, 127, 127, .3); }
.scc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scc-cat__name { flex: 1 1 auto; font-weight: 700; cursor: pointer; }
.scc-cat__always { font-size: 13px; font-weight: 600; white-space: nowrap; }
.scc-cat__desc { margin-top: 4px; font-size: 14px; }
.scc-cat__cookies { margin-top: 8px; font-size: 14px; }
.scc-cat__cookies summary { cursor: pointer; font-weight: 600; }
.scc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.scc-switch { position: relative; flex: none; width: 44px; height: 24px; }
.scc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.scc-switch__track { position: absolute; inset: 0; border-radius: 24px; background: #8a938e; transition: background .15s; }
.scc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.scc-switch input:checked + .scc-switch__track { background: var(--scc-primary-bg); }
.scc-switch input:checked + .scc-switch__track::after { transform: translateX(20px); }

.scc-table-wrap { margin-top: 8px; overflow-x: auto; }
.scc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.scc-table th, .scc-table td { padding: 6px 10px 6px 0; border-bottom: 1px solid rgba(127, 127, 127, .3); text-align: left; vertical-align: top; }
.scc-table code { white-space: nowrap; }

.scc-tab {
	position: fixed;
	z-index: 2147482000;
	bottom: calc(env(safe-area-inset-bottom, 0px));
	min-height: 32px;
	padding: 6px 14px;
	border: 0;
	border-radius: 6px 6px 0 0;
	background: var(--scc-bg);
	color: var(--scc-text);
	font: inherit;
	font-size: 13px;
	box-shadow: 0 -1px 8px rgba(0, 0, 0, .2);
	cursor: pointer;
}
.scc-tab--right { right: 100px; }
.scc-tab--left { left: 100px; }

.scc-embed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 200px; padding: 24px; background: #e7ebe8; color: #141a17; text-align: center; }
iframe[data-scc-src][hidden] { display: none !important; }
.scc-embed p { margin: 0; }
.scc-embed button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 6px; background: #03392d; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 640px) {
	.scc-bar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
	.scc-bar__message { flex-basis: 100%; }
	.scc-bar__actions { width: 100%; }
	.scc-bar__actions .scc-btn { flex: 1 1 auto; }
	.scc-bar__actions [data-scc="accept"] { order: -1; flex-basis: 100%; }
	.scc-modal__actions .scc-btn { flex: 1 1 auto; }
	.scc-modal__actions [data-scc="accept"] { order: -1; flex-basis: 100%; }
	.scc-modal__head, .scc-modal__body, .scc-modal__actions { padding-left: 16px; padding-right: 16px; }
	.scc-modal__close { margin-right: -8px; }
	.scc-tab--right { right: 16px; }
	.scc-tab--left { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.scc-switch__track, .scc-switch__track::after { transition: none; }
}
@media print {
	#scc-root { display: none !important; }
}
