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

.cookie-banner {
    position: fixed;
    z-index: 1200;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.cookie-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
    border: 2px solid #1d1d1b;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}

.cookie-banner__eyebrow {
    margin: 0 0 5px;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4f8e28;
}

.cookie-banner__title {
    margin: 0 0 5px;
    font: 800 clamp(1.05rem, 1.8vw, 1.3rem)/1.2 var(--font-display, inherit);
    color: #1d1d1b;
}

.cookie-banner__text {
    max-width: 760px;
    margin: 0;
    color: #4b4b48;
    font-size: .92rem;
    line-height: 1.5;
}

.cookie-banner__text a,
.cookie-panel a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-action {
    min-height: 42px;
    padding: 10px 16px;
    border: 2px solid #1d1d1b;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cookie-action:hover,
.cookie-action:focus-visible {
    transform: translateY(-1px);
}

.cookie-action--primary {
    background: #76D63B;
}

.cookie-action--decision {
    background: #fff;
    border-color: #1d1d1b;
}

.cookie-action--decision:hover,
.cookie-action--decision:focus-visible {
    background: #f3f3ee;
}

.cookie-action--text {
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-panel {
    position: fixed;
    z-index: 1250;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 15, 14, .58);
}

.cookie-panel__dialog {
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border: 2px solid #1d1d1b;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.cookie-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #deded8;
}

.cookie-panel__header h2,
.cookie-panel__header p {
    margin: 0;
}

.cookie-panel__header p {
    margin-top: 7px;
    color: #62625e;
    font-size: .92rem;
    line-height: 1.45;
}

.cookie-panel__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 2px solid #1d1d1b;
    border-radius: 50%;
    background: #fff;
    font: 800 1.15rem/1 inherit;
    cursor: pointer;
}

.cookie-panel__body {
    padding: 8px 22px 4px;
}

.cookie-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid #e5e5df;
}

.cookie-choice:last-child {
    border-bottom: 0;
}

.cookie-choice h3,
.cookie-choice p {
    margin: 0;
}

.cookie-choice h3 {
    font-size: 1rem;
}

.cookie-choice p {
    margin-top: 5px;
    color: #62625e;
    font-size: .88rem;
    line-height: 1.45;
}

.cookie-choice__status {
    align-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef0e9;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: start;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-toggle__track {
    position: relative;
    width: 48px;
    height: 28px;
    border: 2px solid #1d1d1b;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.cookie-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1d1d1b;
    transition: transform .18s ease, background .18s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
    background: #76D63B;
}

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

.cookie-toggle input:focus-visible + .cookie-toggle__track {
    outline: 3px solid rgba(118, 214, 59, .38);
    outline-offset: 2px;
}

.cookie-panel__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 17px 22px 22px;
    border-top: 1px solid #deded8;
}

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

.cookie-panel-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner__inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 17px;
        border-radius: 16px;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .cookie-action {
        flex: 1 1 30%;
        min-width: 100px;
    }

    .cookie-panel {
        padding: 10px;
    }

    .cookie-panel__dialog {
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .cookie-panel__footer .cookie-action {
        flex: 1 1 46%;
    }
}
