:root {
    --sgc-primary: #2563eb;
    --sgc-primary-hover: #1d4ed8;
    --sgc-bg-dark: #0f172a;
    --sgc-bg-light: #ffffff;
    --sgc-text-main: #f8fafc;
    --sgc-text-muted: #cbd5e1;
    --sgc-text-dark: #0f172a;
    --sgc-border: #e2e8f0;
    --sgc-shadow: 0 18px 55px rgba(15, 23, 42, .22);
    --sgc-radius: 18px;
    --sgc-transition: 180ms ease;
}

#gdpr-cc-banner,
#gdpr-cc-modal,
#gdpr-cc-launcher {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#gdpr-cc-banner *,
#gdpr-cc-modal *,
#gdpr-cc-launcher * { box-sizing: inherit; }

#gdpr-cc-banner[hidden],
#gdpr-cc-modal[hidden],
#gdpr-cc-launcher[hidden] { display: none !important; }

#gdpr-cc-banner {
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--sgc-text-main);
    background: var(--sgc-bg-dark);
    border-top: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 -14px 45px rgba(15,23,42,.18);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity var(--sgc-transition), transform 260ms ease;
}

#gdpr-cc-banner.active { opacity: 1; transform: translateY(0); }
#gdpr-cc-banner.gdpr-cc-position-top { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid rgba(255,255,255,.13); transform: translateY(-100%); }
#gdpr-cc-banner.gdpr-cc-position-top.active { transform: translateY(0); }
#gdpr-cc-banner.gdpr-cc-position-left,
#gdpr-cc-banner.gdpr-cc-position-right { top: 50%; bottom: auto; right: auto; width: min(420px, 100%); border: 1px solid rgba(255,255,255,.13); border-radius: 0 var(--sgc-radius) var(--sgc-radius) 0; transform: translate(-100%, -50%); }
#gdpr-cc-banner.gdpr-cc-position-right { left: auto; right: 0; border-radius: var(--sgc-radius) 0 0 var(--sgc-radius); transform: translate(100%, -50%); }
#gdpr-cc-banner.gdpr-cc-position-left.active,
#gdpr-cc-banner.gdpr-cc-position-right.active { transform: translate(0, -50%); }

.gdpr-cc-container { width: min(1240px, 100%); margin: 0 auto; padding: 26px clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.gdpr-cc-copy { max-width: 780px; }
.gdpr-cc-eyebrow { color: #93c5fd; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.gdpr-cc-copy h2 { margin: 0 0 8px; color: var(--sgc-text-main); font-size: clamp(18px, 2vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
.gdpr-cc-copy p { margin: 0; color: var(--sgc-text-muted); font-size: 14px; line-height: 1.6; }
.gdpr-cc-copy a, .gdpr-cc-footer-links a { color: #bfdbfe; text-underline-offset: 3px; }
.gdpr-cc-ai-note { margin-top: 10px !important; font-size: 12px !important; }
.gdpr-cc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.gdpr-cc-btn { min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 750; transition: background var(--sgc-transition), border-color var(--sgc-transition), transform var(--sgc-transition); }
.gdpr-cc-btn:focus-visible, .gdpr-cc-launcher:focus-visible, .gdpr-cc-close-modal:focus-visible, .gdpr-cc-category input:focus-visible + .sgc-slider { outline: 3px solid #93c5fd; outline-offset: 3px; }
.gdpr-cc-btn:hover { transform: translateY(-1px); }
.gdpr-cc-accept-all, .gdpr-cc-save-preferences { color: #fff; background: var(--sgc-primary); }
.gdpr-cc-accept-all:hover, .gdpr-cc-save-preferences:hover { background: var(--sgc-primary-hover); }
.gdpr-cc-settings-btn { color: var(--sgc-text-main); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.gdpr-cc-settings-btn:hover { background: rgba(255,255,255,.15); }
.gdpr-cc-reject-all { color: var(--sgc-text-main); background: transparent; border-color: rgba(255,255,255,.35); }
.gdpr-cc-reject-all:hover { background: rgba(255,255,255,.08); }

.gdpr-cc-launcher { position: fixed; top: 50%; right: 0; z-index: 999998; width: 46px; height: 52px; padding: 0; border: 1px solid var(--sgc-border); border-right: 0; border-radius: 14px 0 0 14px; color: var(--sgc-text-dark); background: #fff; box-shadow: var(--sgc-shadow); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-50%); transition: color var(--sgc-transition), width var(--sgc-transition), background var(--sgc-transition); }
.gdpr-cc-launcher:hover { width: 52px; color: var(--sgc-primary); background: #f8fafc; }
.gdpr-cc-launcher-icon { display: block; font-size: 21px; line-height: 1; }

#gdpr-cc-modal { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,42,.64); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--sgc-transition); }
#gdpr-cc-modal.active { opacity: 1; }
.gdpr-cc-modal-content { position: relative; width: min(720px, 100%); max-height: min(88vh, 820px); overflow-y: auto; padding: clamp(24px, 5vw, 46px); color: var(--sgc-text-dark); background: var(--sgc-bg-light); border-radius: 22px; box-shadow: var(--sgc-shadow); transform: translateY(12px) scale(.98); transition: transform 240ms ease; }
#gdpr-cc-modal.active .gdpr-cc-modal-content { transform: translateY(0) scale(1); }
.gdpr-cc-modal-content .gdpr-cc-eyebrow { color: var(--sgc-primary); }
.gdpr-cc-modal-content h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.03em; }
.gdpr-cc-modal-content > p, .gdpr-cc-help { color: #475569; line-height: 1.6; }
.gdpr-cc-close-modal { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 10px; color: #475569; background: transparent; cursor: pointer; font-size: 30px; line-height: 1; }
.gdpr-cc-close-modal:hover { background: #f1f5f9; color: var(--sgc-text-dark); }
.gdpr-cc-category { margin-top: 12px; padding: 17px 18px; border: 1px solid var(--sgc-border); border-radius: 14px; background: #f8fafc; }
.gdpr-cc-category label { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.gdpr-cc-category .cat-label { display: block; font-weight: 800; }
.gdpr-cc-category .cat-description { display: block; margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.45; }
.sgc-switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; }
.sgc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgc-slider { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background var(--sgc-transition); }
.sgc-slider::before { position: absolute; content: ""; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.25); transition: transform var(--sgc-transition); }
.sgc-switch input:checked + .sgc-slider { background: var(--sgc-primary); }
.sgc-switch input:checked + .sgc-slider::before { transform: translateX(20px); }
.sgc-switch input:disabled + .sgc-slider { opacity: .58; cursor: not-allowed; }
.gdpr-cc-declaration-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--sgc-border); }
.gdpr-cc-declaration-section h3 { margin: 0 0 4px; font-size: 18px; }
.gdpr-cc-help { margin: 0 0 12px; font-size: 13px; }
.gdpr-cc-cookie-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gdpr-cc-cookie-table th, .gdpr-cc-cookie-table td { padding: 10px; text-align: left; vertical-align: top; border: 1px solid var(--sgc-border); }
.gdpr-cc-cookie-table th { color: #334155; background: #f8fafc; }
.gdpr-cc-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }
.gdpr-cc-footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--sgc-border); font-size: 13px; }
.gdpr-cc-footer-links a { color: var(--sgc-primary); }
.gdpr-cc-revoke-btn { border: 1px solid var(--sgc-primary); border-radius: 9px; padding: 9px 14px; color: var(--sgc-primary); background: #fff; cursor: pointer; font-weight: 700; }

@media (max-width: 760px) {
    .gdpr-cc-container { align-items: stretch; flex-direction: column; gap: 18px; }
    .gdpr-cc-actions { justify-content: stretch; }
    .gdpr-cc-actions .gdpr-cc-btn { flex: 1 1 30%; }
    #gdpr-cc-banner.gdpr-cc-position-left, #gdpr-cc-banner.gdpr-cc-position-right { top: auto; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 0; transform: translateY(100%); }
    #gdpr-cc-banner.gdpr-cc-position-left.active, #gdpr-cc-banner.gdpr-cc-position-right.active { transform: translateY(0); }
}

@media (max-width: 480px) {
    .gdpr-cc-container { padding: 22px 18px; }
    .gdpr-cc-actions { flex-direction: column-reverse; }
    .gdpr-cc-actions .gdpr-cc-btn { width: 100%; }
    .gdpr-cc-modal-actions { flex-direction: column-reverse; }
    .gdpr-cc-modal-actions .gdpr-cc-btn { width: 100%; }
    .gdpr-cc-launcher { width: 44px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
