.cookie-consent,
.cookie-modal {
    font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #171717;
}

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

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #c40012;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.22);
}

.cookie-consent__box {
    width: min(100% - 32px, 1420px);
    min-height: 104px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
}

.cookie-consent__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
}

.cookie-consent__content p {
    margin: 0;
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.62;
}

.cookie-consent__content a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__actions,
.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cookie-button:hover {
    transform: translateY(-1px);
}

.cookie-button:focus-visible,
.cookie-modal__close:focus-visible,
.cookie-switch input:focus-visible + span,
.cookie-modal__notice a:focus-visible {
    outline: 3px solid rgba(196, 0, 18, 0.28);
    outline-offset: 3px;
}

.cookie-button--light {
    background: #ffffff;
    color: #c40012;
}

.cookie-button--outline {
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #ffffff;
}

.cookie-button--outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.62);
    backdrop-filter: blur(5px);
}

.cookie-modal__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal__eyebrow {
    margin: 0 0 8px !important;
    color: #c40012 !important;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-modal__panel h2 {
    margin: 0 50px 10px 0;
    color: #111111;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.cookie-modal__panel p,
.cookie-option p {
    margin: 0;
    color: #565b63;
    line-height: 1.6;
}

.cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 14px;
    background: #fafafa;
}

.cookie-option h3 {
    margin: 0 0 5px;
    color: #111111;
    font-size: 1.04rem;
}

.cookie-option--locked {
    background: #fff5f6;
    border-color: rgba(196, 0, 18, 0.20);
}

.cookie-badge {
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(196, 0, 18, 0.10);
    color: #a90010;
    font-size: 0.82rem;
    font-weight: 900;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

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

.cookie-switch span {
    width: 56px;
    height: 32px;
    border-radius: 999px;
    background: #d1d5db;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
    transition: background 0.18s ease;
}

.cookie-switch span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.24);
    transition: transform 0.18s ease;
}

.cookie-switch input:checked + span {
    background: #c40012;
}

.cookie-switch input:checked + span::before {
    transform: translateX(24px);
}

.cookie-modal__notice {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #f6f6f7;
}

.cookie-modal__notice strong {
    display: block;
    margin-bottom: 5px;
    color: #111111;
}

.cookie-modal__notice a {
    display: inline-flex;
    margin-top: 8px;
    color: #c40012;
    font-weight: 900;
}

.cookie-modal__actions {
    margin-top: 22px;
}

.cookie-button--modal-primary {
    background: #c40012;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(196, 0, 18, 0.24);
}

.cookie-button--modal-dark {
    background: #111111;
    color: #ffffff;
}

.cookie-button--modal-ghost {
    border-color: rgba(17, 17, 17, 0.14);
    background: #ffffff;
    color: #111111;
}

@media (max-width: 980px) {
    .cookie-consent__box {
        grid-template-columns: auto 1fr;
    }

    .cookie-consent__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .cookie-consent__actions .cookie-button {
        flex: 1 1 180px;
    }
}

@media (max-width: 580px) {
    .cookie-consent__box {
        width: min(100% - 20px, 1420px);
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .cookie-consent__icon {
        display: none;
    }

    .cookie-button,
    .cookie-consent__actions .cookie-button,
    .cookie-modal__actions .cookie-button {
        width: 100%;
        flex: 1 1 100%;
    }

    .cookie-option {
        grid-template-columns: 1fr;
    }

    .cookie-badge,
    .cookie-switch {
        justify-self: start;
    }
}
