.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--ep-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cookie-banner__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--ep-primary-800), var(--ep-accent-700));
    border-radius: 14px;
}

.cookie-banner__text strong {
    display: block;
    color: var(--ep-text-strong);
    font-weight: 800;
    margin-bottom: 4px;
}

.cookie-banner__text p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.5;
}

.cookie-banner__text a {
    display: inline-block;
    margin-top: 6px;
    color: var(--ep-accent-700);
    font-weight: 700;
}

.cookie-banner__actions,
.cookie-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: 800 0.9rem var(--font-ui);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ep-primary-800), var(--ep-accent-700));
}

.cookie-btn--light {
    color: var(--ep-primary-900);
    background: var(--ep-surface-muted);
}

.cookie-btn--ghost {
    color: var(--ep-muted);
    background: transparent;
}

.cookie-btn--ghost-dark {
    color: var(--ep-primary-900);
    background: var(--ep-surface-muted);
}

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

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

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 21, 37, 0.62);
}

.cookie-modal__card {
    position: relative;
    width: min(100%, 560px);
    background: var(--ep-surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--ep-muted);
    background: var(--ep-surface-muted);
    cursor: pointer;
}

.cookie-modal__tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    color: var(--ep-accent-800);
    background: var(--ep-accent-50);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cookie-modal__card h2 {
    margin: 0 0 10px;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
}

.cookie-modal__card p {
    color: var(--ep-muted);
    line-height: 1.6;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--ep-border-soft);
}

.cookie-option strong,
.cookie-option span {
    display: block;
}

.cookie-option strong {
    color: var(--ep-text-strong);
}

.cookie-option span {
    color: var(--ep-muted);
    font-size: 0.92rem;
}

.cookie-required {
    color: var(--ep-success) !important;
    font-weight: 800;
    white-space: nowrap;
}

.cookie-option input {
    width: 22px;
    height: 22px;
    accent-color: var(--ep-accent-700);
}

@media (max-width: 760px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .cookie-btn {
        flex: 1;
    }

    .cookie-option {
        align-items: flex-start;
        flex-direction: column;
    }
}