#cookie-consent-root {
    --cc-bg: #fff;
    --cc-text: #172033;
    --cc-muted: #566176;
    --cc-border: #dce1e9;
    --cc-primary: #2457d6;
    --cc-radius: 14px;

    color: var(--cc-text);
    font: 14px/1.5 system-ui, sans-serif;
}

#cookie-consent-root {
    --cc-bg: #122036;
    --cc-text: #ffffff;
    --cc-muted: #566176;
    --cc-border: #41464d;
    --cc-primary: #c9a66b;
}

#cookie-consent-root *,
#cookie-consent-root *::before,
#cookie-consent-root *::after {
    box-sizing: border-box;
}

#cc-banner,
#cc-preferences {
    position: fixed;
    z-index: 2147483647;
    bottom: 20px;
    left: 20px;
    width: min(560px, calc(100vw - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    background: var(--cc-bg);
    color: var(--cc-text);
    box-shadow: 0 12px 48px rgb(0 0 0 / 18%);
}

#cc-preferences {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 32px));
}

#cc-banner h2,
#cc-preferences h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

#cc-banner p,
#cc-preferences p {
    margin: 0 0 16px;
    color: var(--cc-muted);
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

#cookie-consent-root button {
    padding: 10px;
    border: 1px solid var(--cc-border);
    border-radius: 43px;
    background: inherit;
    color: var(--cc-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 600;
}

.cc-actions button {
    padding: 10px 14px;
}

#cookie-consent-root button svg {}

#cc-settings-trigger {
    background-color: var(--accent-color) !important;
}

#cookie-consent-root button.cc-primary {
    border-color: var(--cc-primary);
    background: var(--cc-primary);
    color: #fff;
}

#cookie-consent-root button:focus-visible,
#cookie-consent-root a:focus-visible,
#cookie-consent-root input:focus-visible {
    outline: 3px solid #7ba2ff;
    outline-offset: 3px;
}

.cc-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cc-border);
}

.cc-category label {
    font-weight: 600;
}

.cc-category small {
    display: block;
    color: var(--cc-muted);
    font-weight: 400;
}

.cc-category input {
    width: 20px;
    height: 20px;
    accent-color: var(--cc-primary);
}

.cc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.cc-links a {
    color: var(--cc-primary);
}

#cc-settings-trigger {
    position: fixed;
    z-index: 2147483646;
    bottom: 10px;
    left: 10px;
    padding: 10px 14px;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--cc-text);
    font: 13px/1.4 system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
}

.cc-backdrop {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    background: rgb(15 23 42 / 48%);
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    #cc-banner {
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 85dvh;
        border-radius: 14px 14px 0 0;
    }

    .cc-actions {
        flex-direction: column;
    }

    .cc-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Custom consent toggles */
#cookie-consent-root .cc-category input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    margin: 0;
    border: 1px solid #85888d;
    border-radius: 999px;
    background: #61656e;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

#cookie-consent-root .cc-category input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
    transition: transform 180ms ease;
}

#cookie-consent-root .cc-category input[type="checkbox"]:checked {
    background: var(--cc-primary);
    border-color: var(--cc-primary);
}

#cookie-consent-root .cc-category input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

#cookie-consent-root .cc-category input[type="checkbox"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#cookie-consent-root .cc-category input[type="checkbox"]:focus-visible {
    outline: 3px solid #7ba2ff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    #cookie-consent-root .cc-category input[type="checkbox"],
    #cookie-consent-root .cc-category input[type="checkbox"]::before {
        transition: none;
    }
}