﻿/* Banner */
.cookie-banner {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    width: min(340px, calc(100vw - 36px));
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 16px 16px 14px;
}

    .cookie-banner.is-hidden {
        display: none;
    }

    .cookie-banner h5 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 700;
    }

    .cookie-banner p {
        margin: 0 0 10px;
        font-size: 13px;
        line-height: 1.5;
        color: rgba(0,0,0,.72);
    }

    .cookie-banner .cc-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .cookie-banner .cc-link {
        font-size: 13px;
        text-decoration: underline;
        cursor: pointer;
        color: inherit;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .cookie-banner .cc-btn {
        font-size: 13px;
        border: 0;
        border-radius: 8px;
        padding: 10px 12px;
        cursor: pointer;
        background: #111;
        color: #fff;
    }

/* Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

    .cookie-modal.is-open {
        display: block;
    }

    .cookie-modal .cc-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.45);
    }

    .cookie-modal .cc-dialog {
        position: relative;
        width: min(720px, calc(100vw - 36px));
        margin: 8vh auto 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0,0,0,.25);
        padding: 18px 18px 14px;
    }

    .cookie-modal .cc-header {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .cookie-modal .cc-title {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
    }

    .cookie-modal .cc-close {
        border: 0;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        padding: 4px 6px;
    }

    .cookie-modal .cc-desc {
        margin: 0 0 14px;
        font-size: 13px;
        line-height: 1.6;
        color: rgba(0,0,0,.72);
    }

.cc-acc {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    overflow: hidden;
}

.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 12px;
    background: #fafafa;
}

    .cc-row + .cc-row {
        border-top: 1px solid rgba(0,0,0,.08);
        background: #fff;
    }

    .cc-row .cc-left {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .cc-row .cc-name {
        font-weight: 700;
        font-size: 14px;
    }

    .cc-row .cc-note {
        font-size: 12px;
        color: rgba(0,0,0,.65);
    }

.cc-pill {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.75);
}

/* Simple toggle */
.cc-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

    .cc-switch input {
        width: 44px;
        height: 24px;
        appearance: none;
        background: rgba(0,0,0,.15);
        border-radius: 999px;
        position: relative;
        outline: none;
        cursor: pointer;
    }

        .cc-switch input::after {
            content: "";
            width: 18px;
            height: 18px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            top: 3px;
            left: 3px;
            transition: transform .18s ease;
            box-shadow: 0 3px 10px rgba(0,0,0,.18);
        }

        .cc-switch input:checked {
            background: #2a7d2e;
        }

            .cc-switch input:checked::after {
                transform: translateX(20px);
            }

.cookie-modal .cc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
}

.cookie-modal .cc-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
}

    .cookie-modal .cc-btn.secondary {
        background: rgba(0,0,0,.06);
    }

    .cookie-modal .cc-btn.primary {
        background: #2a7d2e;
        color: #fff;
    }
