body .cookie-consent {
    --cookie-surface: #ffffff;
    --cookie-text: #16202a;
    --cookie-muted: #65717d;
    --cookie-line: rgba(22, 32, 42, .11);
    --cookie-accent: #eb9525;
    --cookie-accent-strong: #d77d0a;
    position: relative;
    z-index: 10000;
}

html.cookie-consent-open {
    overflow: hidden;
}

body .cookie-consent .cookie-consent__banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid var(--cookie-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 70px rgba(16, 24, 40, .18);
    backdrop-filter: blur(18px);
}

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

body .cookie-consent .cookie-consent__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--cookie-accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .cookie-consent .cookie-consent__copy h2,
body .cookie-consent .cookie-consent__modal h2 {
    margin: 0;
    color: var(--cookie-text);
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.15;
}

body .cookie-consent .cookie-consent__copy p,
body .cookie-consent .cookie-consent__intro,
body .cookie-consent .cookie-consent__category p {
    color: var(--cookie-muted);
    line-height: 1.55;
}

body .cookie-consent .cookie-consent__copy p {
    margin: 8px 0 0;
    max-width: 760px;
    font-size: 14px;
}

body .cookie-consent .cookie-consent__copy a,
body .cookie-consent .cookie-consent__policy-link {
    color: var(--cookie-accent-strong);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body .cookie-consent .cookie-consent__actions,
body .cookie-consent .cookie-consent__modal-actions > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

body .cookie-consent .cookie-consent__button,
body .cookie-preferences-link {
    font: inherit;
}

body .cookie-consent .cookie-consent__button {
    min-height: 44px;
    border-radius: 13px;
    padding: 10px 16px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body .cookie-consent .cookie-consent__button:hover {
    transform: translateY(-1px);
}

body .cookie-consent .cookie-consent__button--primary {
    color: #fff;
    background: var(--cookie-accent);
    box-shadow: 0 8px 22px rgba(235, 149, 37, .22);
}

body .cookie-consent .cookie-consent__button--primary:hover {
    background: var(--cookie-accent-strong);
}

body .cookie-consent .cookie-consent__button--secondary {
    color: var(--cookie-text);
    background: #f3f5f7;
    border-color: rgba(22, 32, 42, .07);
}

body .cookie-consent .cookie-consent__button--ghost {
    color: var(--cookie-muted);
    background: transparent;
    border-color: var(--cookie-line);
}

body .cookie-consent .cookie-consent__backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(14, 20, 27, .58);
    backdrop-filter: blur(8px);
}

body .cookie-consent .cookie-consent__modal {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 28px;
    border-radius: 26px;
    background: var(--cookie-surface);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .25);
}

body .cookie-consent .cookie-consent__modal-head,
body .cookie-consent .cookie-consent__modal-actions,
body .cookie-consent .cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

body .cookie-consent .cookie-consent__close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--cookie-line);
    border-radius: 50%;
    background: #fff;
    color: var(--cookie-muted);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

body .cookie-consent .cookie-consent__intro {
    margin: 18px 0 20px;
    font-size: 14px;
}

body .cookie-consent .cookie-consent__categories {
    display: grid;
    gap: 12px;
}

body .cookie-consent .cookie-consent__category {
    padding: 18px;
    border: 1px solid var(--cookie-line);
    border-radius: 18px;
    background: #fafbfc;
}

body .cookie-consent .cookie-consent__category h3 {
    margin: 0;
    color: var(--cookie-text);
    font-size: 16px;
}

body .cookie-consent .cookie-consent__category p {
    margin: 5px 0 0;
    font-size: 13px;
}

body .cookie-consent .cookie-consent__always-on {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef7ef;
    color: #2e6d38;
    font-size: 12px;
    font-weight: 800;
}

body .cookie-consent .cookie-consent__category--toggle {
    cursor: pointer;
}

body .cookie-consent .cookie-consent__switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
}

body .cookie-consent .cookie-consent__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body .cookie-consent .cookie-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cdd3d8;
    transition: background .2s ease;
}

body .cookie-consent .cookie-consent__switch span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}

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

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

body .cookie-consent .cookie-consent__switch input:focus-visible + span,
body .cookie-consent .cookie-consent__button:focus-visible,
body .cookie-consent .cookie-consent__close:focus-visible,
body .cookie-preferences-link:focus-visible {
    outline: 3px solid rgba(235, 149, 37, .32);
    outline-offset: 3px;
}

body .cookie-consent .cookie-consent__modal-actions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--cookie-line);
}

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

@media (max-width: 820px) {
    body .cookie-consent .cookie-consent__banner {
        grid-template-columns: 1fr;
        gap: 18px;
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 20px;
        border-radius: 20px;
    }

    body .cookie-consent .cookie-consent__actions,
    body .cookie-consent .cookie-consent__modal-actions > div {
        justify-content: stretch;
    }

    body .cookie-consent .cookie-consent__actions .cookie-consent__button {
        flex: 1 1 160px;
    }

    body .cookie-consent .cookie-consent__modal {
        padding: 22px 18px;
        border-radius: 22px;
    }

    body .cookie-consent .cookie-consent__modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body .cookie-consent .cookie-consent__modal-actions .cookie-consent__button {
        flex: 1 1 0;
    }
}

@media (max-width: 520px) {
    body .cookie-consent .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body .cookie-consent .cookie-consent__button {
        width: 100%;
    }

    body .cookie-consent .cookie-consent__category {
        align-items: flex-start;
    }
}

body .footer .footer-privacy-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

body .footer .footer-privacy-links a,
body .footer .footer-privacy-links .cookie-preferences-link {
    color: inherit;
    font-size: inherit;
}
