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

.cookie-consent {
    --cookie-green: #174f46;
    --cookie-ink: #14201c;
    --cookie-muted: #59635f;
    --cookie-border: #d8dfdb;
    --cookie-surface: #fff;
    color: var(--cookie-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    z-index: 1100;
}

.cookie-consent__banner {
    align-items: center;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--cookie-border);
    border-radius: 18px;
    bottom: 20px;
    box-shadow: 0 18px 55px rgba(16, 36, 30, .18);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    left: 50%;
    max-width: 1120px;
    padding: 22px 24px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
}

.cookie-consent__copy {
    max-width: 680px;
}

.cookie-consent__copy h2,
.cookie-consent__dialog h2,
.cookie-consent__category h3 {
    color: var(--cookie-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

.cookie-consent__copy h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-consent__copy p,
.cookie-consent__dialog > p,
.cookie-consent__category p {
    color: var(--cookie-muted);
    line-height: 1.55;
    margin: 7px 0 0;
}

.cookie-consent a {
    color: var(--cookie-green);
    font-weight: 600;
}

.cookie-consent__actions,
.cookie-consent__dialog-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__button {
    appearance: none;
    border: 1px solid var(--cookie-green);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 42px;
    padding: 10px 17px;
}

.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible,
.cookie-preferences-link:focus-visible,
.cookie-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(23, 79, 70, .28);
    outline-offset: 3px;
}

.cookie-consent__button:disabled {
    cursor: wait;
    opacity: .6;
}

.cookie-consent__button--primary {
    background: var(--cookie-green);
    color: #fff;
}

.cookie-consent__button--secondary {
    background: var(--cookie-surface);
    color: var(--cookie-green);
}

.cookie-consent__button--text {
    background: transparent;
    border-color: transparent;
    color: var(--cookie-green);
    padding-inline: 8px;
}

.cookie-consent__backdrop {
    align-items: center;
    background: rgba(10, 24, 20, .38);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
}

.cookie-consent__dialog {
    background: var(--cookie-surface);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(9, 30, 24, .25);
    max-height: calc(100vh - 40px);
    max-width: 650px;
    overflow: auto;
    padding: 30px;
    position: relative;
    width: 100%;
}

.cookie-consent__dialog h2 {
    font-size: 1.7rem;
    font-weight: 600;
    padding-right: 36px;
}

.cookie-consent__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--cookie-muted);
    cursor: pointer;
    display: flex;
    font-size: 1.8rem;
    height: 40px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 16px;
    width: 40px;
}

.cookie-consent__category {
    align-items: center;
    border-top: 1px solid var(--cookie-border);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 20px;
}

.cookie-consent__category h3 {
    font-size: 1rem;
    font-weight: 600;
}

.cookie-consent__category p {
    font-size: .9rem;
}

.cookie-consent__switch {
    flex: 0 0 auto;
    position: relative;
}

.cookie-consent__switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.cookie-consent__switch span[aria-hidden] {
    background: #cbd2ce;
    border-radius: 999px;
    display: block;
    height: 26px;
    position: relative;
    transition: background-color .18s ease;
    width: 46px;
}

.cookie-consent__switch span[aria-hidden]::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .18s ease;
    width: 20px;
}

.cookie-consent__switch input:checked + span {
    background: var(--cookie-green);
}

.cookie-consent__switch input:checked + span::after {
    transform: translateX(20px);
}

.cookie-consent__switch input:disabled + span {
    opacity: .7;
}

.cookie-consent__dialog-actions {
    border-top: 1px solid var(--cookie-border);
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 22px;
}

.cookie-consent__policy-link {
    margin-left: auto;
}

.cookie-consent__error {
    color: #a72b2b;
    font-weight: 600;
}

.cookie-preferences-link {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.cookie-consent-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .cookie-consent__banner {
        align-items: stretch;
        bottom: 10px;
        flex-direction: column;
        gap: 16px;
        padding: 19px;
        width: calc(100% - 20px);
    }

    .cookie-consent__actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent__button--text {
        grid-column: 1 / -1;
    }

    .cookie-consent__dialog {
        padding: 24px 20px;
    }

    .cookie-consent__dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent__policy-link {
        margin: 4px 0 0;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent *,
    .cookie-consent *::before,
    .cookie-consent *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
