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

.sa-cookie-root[hidden] {
    display: none !important;
}

.sa-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99996;
}

.sa-cookie-banner,
.sa-cookie-modal,
.sa-cookie-floating {
    font-family: inherit;
}

.sa-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99997;
}

.sa-cookie-banner__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 20px;
    padding: 22px 24px;
    border-radius: 22px;
    background: var(--sa-cookie-bg, #0f172a);
    color: var(--sa-cookie-text, #ffffff);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.sa-cookie-banner__title {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.sa-cookie-policy {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
}

.sa-cookie-policy h2,
.sa-cookie-policy h3,
.sa-cookie-policy h4 {
    color: #0f172a;
}

.sa-cookie-policy p,
.sa-cookie-policy li {
    color: #475569;
    line-height: 1.7;
}

.sa-cookie-policy__group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.sa-cookie-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--sa-cookie-text, #ffffff);
    opacity: 0.92;
}

.sa-cookie-banner__policy {
    display: inline-block;
    margin-top: 12px;
    color: #99f6e4;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.sa-cookie-banner__actions,
.sa-cookie-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.sa-cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

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

.sa-cookie-btn--primary {
    background: var(--sa-cookie-button, #14b8a6);
    color: var(--sa-cookie-button-text, #032724);
}

.sa-cookie-btn--secondary {
    background: #ffffff;
    border-color: #dbe4ee;
    color: #0f172a;
}

.sa-cookie-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--sa-cookie-text, #ffffff);
}

.sa-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sa-cookie-modal__dialog {
    width: min(640px, 100%);
    max-height: min(75vh, 680px);
    overflow: auto;
    border-radius: 24px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
}

.sa-cookie-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.sa-cookie-modal__head h2 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.1;
}

.sa-cookie-modal__head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.sa-cookie-modal__close {
    appearance: none;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.sa-cookie-modal__body {
    padding: 24px;
    display: grid;
    gap: 14px;
}

.sa-cookie-group {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.sa-cookie-group__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.sa-cookie-group__top h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.15;
}

.sa-cookie-group__top p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.sa-cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.sa-cookie-group__list {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d8dee6;
}

.sa-cookie-group__list strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

.sa-cookie-group__list ul {
    margin: 0;
    padding-left: 18px;
    color: #334155;
}

.sa-cookie-group__list li {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.sa-cookie-modal__actions {
    padding: 18px 24px 24px;
    border-top: 1px solid #e5e7eb;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sa-cookie-floating {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99995;
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: var(--sa-cookie-bg, #0f172a);
    color: var(--sa-cookie-text, #ffffff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .sa-cookie-banner__inner {
        grid-template-columns: 1fr;
    }

    .sa-cookie-modal {
        padding: 12px;
    }

    .sa-cookie-group__top {
        flex-direction: column;
    }

    .sa-cookie-modal__actions {
        justify-content: stretch;
    }

    .sa-cookie-modal__actions .sa-cookie-btn {
        width: 100%;
    }
}
