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

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.36);
    pointer-events: auto;
}

.cookie-consent__panel {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 34rem;
    margin-left: auto;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
    pointer-events: auto;
}

.cookie-consent__summary,
.cookie-consent__settings {
    padding: 1.25rem;
}

.cookie-consent__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(58, 138, 33);
}

.cookie-consent__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
}

.cookie-consent__text {
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-consent__actions--settings {
    margin-top: 1.25rem;
}

.cookie-consent__button,
.cookie-consent__manage {
    appearance: none;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cookie-consent__button:hover,
.cookie-consent__manage:hover {
    transform: translateY(-1px);
}

.cookie-consent__button--primary {
    border: 1px solid rgb(58, 138, 33);
    background: rgb(58, 138, 33);
    color: #ffffff;
    padding: 0.95rem 1.2rem;
}

.cookie-consent__button--secondary {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.95rem 1.2rem;
}

.cookie-consent__button--ghost {
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    padding: 0.95rem 0.15rem;
}

.cookie-consent__setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-consent__setting:last-of-type {
    border-bottom: 0;
}

.cookie-consent__setting h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.cookie-consent__setting p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
}

.cookie-consent__badge {
    flex-shrink: 0;
    border-radius: 999px;
    background: #ecfccb;
    color: #3f6212;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}

.cookie-consent__checkbox {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    accent-color: rgb(58, 138, 33);
}

.cookie-consent__manage {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    padding: 0.8rem 1rem;
}

@media (max-width: 640px) {
    .cookie-consent__panel {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__button,
    .cookie-consent__manage {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cookie-consent__setting {
        align-items: flex-start;
    }

    .cookie-consent__checkbox,
    .cookie-consent__badge {
        margin-top: 0.2rem;
    }

    .cookie-consent__manage {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
    }
}
