.scs, .scs * { box-sizing: border-box; }
.scs {
	--scs-bg: #fff;
	--scs-fg: #1d2327;
	--scs-muted: #50575e;
	--scs-border: #dcdcde;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--scs-fg);
}
.scs a { color: var(--scs-color, #1f6feb); text-decoration: underline; }

/* Banner */
.scs-banner { position: fixed; z-index: 999999; }
.scs-box {
	background: var(--scs-bg);
	border: 1px solid var(--scs-border);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
	padding: 18px 20px;
}
.scs-pos-bottom { left: 0; right: 0; bottom: 0; }
.scs-pos-bottom .scs-box {
	max-width: 1100px; margin: 0 auto 12px; border-radius: 10px;
	display: flex; gap: 24px; align-items: center; justify-content: space-between;
	width: calc(100% - 24px);
}
.scs-pos-bottom-left, .scs-pos-bottom-right { bottom: 12px; max-width: 400px; width: calc(100% - 24px); }
.scs-pos-bottom-left { left: 12px; }
.scs-pos-bottom-right { right: 12px; }
.scs-pos-bottom-left .scs-box, .scs-pos-bottom-right .scs-box { border-radius: 10px; }

.scs-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--scs-fg); }
.scs-text { margin: 0; color: var(--scs-muted); }
.scs-content { flex: 1 1 auto; }

.scs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scs-pos-bottom .scs-actions { margin-top: 0; flex: 0 0 auto; }

/* Knapper: acceptér og afvis har samme størrelse og vægt */
.scs-btn {
	appearance: none; cursor: pointer; font: inherit; font-weight: 600;
	padding: 10px 16px; border-radius: 6px; border: 2px solid transparent;
	min-height: 42px; line-height: 1.2; white-space: nowrap;
}
.scs-btn-primary { background: var(--scs-color, #1f6feb); color: #fff; border-color: var(--scs-color, #1f6feb); }
.scs-btn-secondary { background: #1d2327; color: #fff; border-color: #1d2327; }
.scs-btn-outline { background: transparent; color: var(--scs-fg); border-color: var(--scs-border); }
.scs-btn:hover { filter: brightness(1.1); }
.scs-btn:focus-visible, .scs-close:focus-visible, .scs-float:focus-visible,
.scs-switch input:focus-visible + .scs-slider { outline: 3px solid #f0b429; outline-offset: 2px; }

/* Modal */
.scs-overlay {
	position: fixed; inset: 0; z-index: 1000000; background: rgba(0, 0, 0, .55);
	display: flex; align-items: center; justify-content: center; padding: 12px;
}
.scs-modal {
	background: var(--scs-bg); border-radius: 12px; width: 100%; max-width: 560px;
	max-height: calc(100vh - 24px); overflow-y: auto; padding: 22px; outline: none;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.scs-modal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.scs-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--scs-muted); padding: 0 4px; }
.scs-cats { margin-top: 16px; border-top: 1px solid var(--scs-border); }
.scs-cat { padding: 14px 0; border-bottom: 1px solid var(--scs-border); }
.scs-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scs-cat-label { font-weight: 700; }
.scs-cat-desc { margin: 6px 0 0; color: var(--scs-muted); font-size: 14px; }
.scs-always { font-size: 13px; font-weight: 600; color: #1a7f37; }

/* Toggle */
.scs-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.scs-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.scs-slider { position: absolute; inset: 0; background: #8c8f94; border-radius: 26px; transition: background .2s; }
.scs-slider::before {
	content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%; transition: transform .2s;
}
.scs-switch input:checked + .scs-slider { background: var(--scs-color, #1f6feb); }
.scs-switch input:checked + .scs-slider::before { transform: translateX(20px); }

/* Flydende knap */
.scs-float {
	position: fixed; left: 14px; bottom: 14px; z-index: 999998;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--scs-color, #1f6feb); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
}

@media (max-width: 720px) {
	.scs-pos-bottom .scs-box { flex-direction: column; align-items: stretch; gap: 12px; }
	.scs-pos-bottom .scs-actions { margin-top: 0; }
	.scs-actions .scs-btn { flex: 1 1 auto; }
	.scs-banner .scs-box { max-height: 80vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.scs-slider, .scs-slider::before { transition: none; }
}
