:root {
    --blue-deep:   #1a1208;
    --blue-mid:    #7a3d08;
    --blue-bright: #e8900a;
    --blue-pale:   #fef3e0;
    --white:       #ffffff;
    --slate:       #5c4228;
    --mist:        #c4956a;
    --line:        rgba(120, 70, 8, 0.12);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 1rem;
    pointer-events: none;
}

.cookie-consent-banner.is-visible {
    pointer-events: all;
}

.cookie-consent-shell {
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(8, 24, 44, 0.18);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-consent-banner.is-visible .cookie-consent-shell {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-main,
.cookie-consent-panel {
    padding: 1.4rem 1.5rem;
}

.cookie-consent-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.2rem;
    align-items: start;
}

.cookie-consent-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1;
}

.cookie-consent-copy {
    grid-column: 2;
}

.cookie-consent-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue-deep);
    margin-bottom: 0.45rem;
}

.cookie-consent-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--slate);
    font-weight: 300;
}

.cookie-consent-text a {
    color: var(--blue-bright);
    font-weight: 600;
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions,
.cookie-consent-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.cookie-consent-main .cookie-consent-actions {
    grid-column: 1 / -1;
}

.cookie-consent-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.72rem 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.cookie-consent-btn--primary {
    background: var(--blue-bright);
    color: var(--white);
}

.cookie-consent-btn--primary:hover {
    background: var(--blue-deep);
    transform: translateY(-1px);
}

.cookie-consent-btn--secondary {
    background: var(--white);
    color: var(--blue-deep);
    border-color: rgba(120, 70, 8, 0.22);
}

.cookie-consent-btn--secondary:hover {
    background: var(--blue-pale);
    border-color: var(--blue-bright);
}

.cookie-consent-panel-head {
    margin-bottom: 1rem;
}

.cookie-consent-panel-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 0.35rem;
}

.cookie-consent-panel-sub {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--slate);
    font-weight: 300;
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.cookie-consent-category {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.95rem 1rem;
    background: rgba(255, 251, 240, 0.55);
}

.cookie-consent-category-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-category-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 0.25rem;
}

.cookie-consent-category-description {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--slate);
    font-weight: 300;
}

.cookie-consent-always-on {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mist);
    white-space: nowrap;
    padding-top: 0.15rem;
}

.cookie-consent-examples {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    color: var(--slate);
    font-size: 0.78rem;
    line-height: 1.5;
}

.cookie-consent-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-consent-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-toggle-ui {
    width: 44px;
    height: 26px;
    background: rgba(196, 149, 106, 0.45);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
}

.cookie-consent-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(26, 18, 8, 0.18);
    transition: transform 0.2s;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-ui {
    background: var(--blue-bright);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-ui::after {
    transform: translateX(18px);
}

.cookie-consent-toggle input:focus-visible + .cookie-consent-toggle-ui {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
}

.footer-cookie-settings {
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--mist);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-cookie-settings:hover {
    color: var(--blue-bright);
}

.static-page .footer-cookie-settings {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 0.75rem;
    }

    .cookie-consent-main {
        grid-template-columns: 1fr;
    }

    .cookie-consent-copy {
        grid-column: 1;
    }

    .cookie-consent-main .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1 1 calc(50% - 0.35rem);
        text-align: center;
    }

    .cookie-consent-panel-actions {
        justify-content: stretch;
    }
}
