/* ===========================================================================
   Cookie consent banner
   Square surfaces, pill buttons — consistent with the site radius policy.
   =========================================================================== */

.cookie-consent {
    position: fixed;
    left: clamp(1rem, 3vw, 1.75rem);
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 200;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__panel {
    pointer-events: auto;
    width: min(560px, 100%);
    max-height: min(80vh, 44rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border, #d7ded9);
    box-shadow: 0 30px 80px rgba(8, 24, 19, 0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 240ms ease, transform 240ms ease;
}

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

.cookie-consent__eyebrow {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-primary, #0c3b2e);
    margin-bottom: 0.5rem;
}

.cookie-consent__title {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f1a16;
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #5b6b65;
}

.cookie-consent__links {
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5B6B65;
}

.cookie-consent__links a {
    color: var(--color-primary, #0c3b2e);
    text-decoration: underline;
}

/* --- Category options ---------------------------------------------------- */

.cookie-consent__options {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border, #d7ded9);
}

.cookie-option {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--color-border, #d7ded9);
    background: #f6f8f6;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.cookie-option:hover {
    border-color: var(--color-primary, #0c3b2e);
    background: #fff;
}

.cookie-option.is-locked {
    cursor: default;
    opacity: 0.85;
}

.cookie-option.is-locked:hover {
    border-color: var(--color-border, #d7ded9);
    background: #f6f8f6;
}

.cookie-option input {
    margin-top: 0.15rem;
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
    accent-color: var(--color-primary, #0c3b2e);
}

.cookie-option__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f1a16;
}

.cookie-option__label em {
    font-style: normal;
    font-size: 0.575rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5b6b65;
    background: #e5eae7;
    padding: 0.15rem 0.4rem;
}

.cookie-option__desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #5b6b65;
}

/* --- Actions ------------------------------------------------------------- */

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-btn {
    flex: 1 1 auto;
    min-width: 8.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cookie-btn[hidden] {
    display: none;
}

.cookie-btn--primary {
    background: var(--color-primary, #0c3b2e);
    color: #fff;
}

.cookie-btn--primary:hover {
    background: var(--color-primary-deep, #07261e);
}

.cookie-btn--ghost {
    background: #fff;
    border-color: var(--color-border, #d7ded9);
    color: #0f1a16;
}

.cookie-btn--ghost:hover {
    border-color: var(--color-primary, #0c3b2e);
    color: var(--color-primary, #0c3b2e);
}

.cookie-btn--quiet {
    flex: 1 1 100%;
    background: transparent;
    color: #5b6b65;
    text-decoration: underline;
    letter-spacing: 0.08em;
}

.cookie-btn--quiet:hover {
    color: var(--color-primary, #0c3b2e);
}

.cookie-btn:focus-visible {
    outline: 3px solid var(--color-secondary, #d9f25e);
    outline-offset: 2px;
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 640px) {
    .cookie-consent {
        left: 0;
        right: 0;
        bottom: 0;
    }

    .cookie-consent__panel {
        width: 100%;
        max-height: 85vh;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 1.35rem;
    }

    .cookie-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__panel {
        transition: none;
    }
}
