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

.cookie-settings-launcher[hidden],
.cookie-consent-backdrop[hidden],
.cookie-consent-banner[hidden],
.cookie-preferences[hidden] {
    display: none !important;
}

.cookie-settings-launcher {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1400;
    border: 1px solid rgba(34, 34, 34, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: #222;
    border-radius: 999px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(20, 20, 20, 0.14);
    backdrop-filter: blur(10px);
}

.cookie-settings-launcher:hover,
.cookie-settings-launcher:focus-visible {
    background: #fff;
}

.cookie-settings-launcher__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2a2a2a;
}

.cookie-settings-launcher__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1490;
    background: rgba(17, 17, 17, 0.48);
}

.cookie-consent-banner,
.cookie-preferences {
    position: fixed;
    z-index: 1500;
    background: #fff;
    color: #222;
    border: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 28px 60px rgba(17, 17, 17, 0.22);
}

.cookie-consent-banner {
    right: 18px;
    bottom: 18px;
    width: min(440px, calc(100vw - 36px));
    border-radius: 22px;
    padding: 20px;
}

.cookie-consent-banner__content h2,
.cookie-preferences h2 {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.cookie-consent-banner__content p,
.cookie-preferences__intro,
.cookie-category p {
    font-size: 14px;
    line-height: 1.55;
    color: #4c5566;
}

.cookie-consent-banner__content a {
    color: #1d5f15;
}

.cookie-consent-banner__actions,
.cookie-preferences__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
}

.cookie-consent-banner__actions > .cookie-btn,
.cookie-preferences__actions > .cookie-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 13px 14px;
    font-size: 13px;
    line-height: 1.25;
}

.cookie-consent-banner__actions > .cookie-icon-btn {
    align-self: center;
    flex-shrink: 0;
}

.cookie-btn {
    appearance: none;
    border-radius: 14px;
    padding: 14px 18px;
    min-height: 48px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.cookie-btn--primary {
    background: #222;
    color: #fff;
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
    background: #111;
}

.cookie-btn--secondary,
.cookie-btn--ghost {
    background: #fff;
    color: #222;
    border-color: rgba(34, 34, 34, 0.18);
}

.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus-visible,
.cookie-btn--ghost:hover,
.cookie-btn--ghost:focus-visible {
    border-color: rgba(34, 34, 34, 0.32);
    background: #f7f8fa;
}

.cookie-icon-btn {
    appearance: none;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    border: 1px solid rgba(34, 34, 34, 0.18);
    background: #fff;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-icon-btn:hover,
.cookie-icon-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 34, 34, 0.32);
    background: #f7f8fa;
}

.cookie-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.cookie-preferences {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(700px, calc(100vw - 32px));
    border-radius: 24px;
    padding: 26px;
}

.cookie-preferences__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.cookie-preferences__header h2 {
    margin-bottom: 4px;
}

.cookie-preferences__intro {
    margin-top: 0;
}

.cookie-preferences__eyebrow {
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cookie-preferences__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #445063;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e6e9ef;
    border-radius: 18px;
    padding: 18px;
    margin-top: 14px;
}

.cookie-category h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.cookie-category__status {
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(114, 213, 91, 0.12);
    color: #27621c;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    white-space: nowrap;
}

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

.cookie-toggle__track {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d7dce5;
    position: relative;
    transition: background-color 0.18s ease;
}

.cookie-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
    background: #72D55B;
}

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

.cookie-toggle__label {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

@media (max-width: 720px) {
    .cookie-settings-launcher {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: max-content;
        max-width: calc(100vw - 24px);
        justify-content: center;
    }

    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: 70px;
        width: auto;
        padding: 18px;
    }

    .cookie-preferences {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 20px;
    }

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

    .cookie-toggle {
        justify-content: space-between;
    }

    .cookie-consent-banner__actions {
        flex-wrap: nowrap;
    }

    .cookie-consent-banner__actions > .cookie-btn,
    .cookie-preferences__actions > .cookie-btn {
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
        line-height: 1.2;
    }

    .cookie-consent-banner__actions .cookie-icon-btn {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}
