.sb-cookie-hidden {
    display: none !important;
}

.sb-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    color: #1e2a36;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

.sb-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.sb-cookie-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.sb-cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sb-cookie-btn {
    border: 1px solid #1e2a36;
    background: #ffffff;
    color: #1e2a36;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sb-cookie-btn:hover {
    background: #f0f4f8;
}

.sb-cookie-btn:focus-visible {
    outline: 2px solid #86b7fe;
    outline-offset: 2px;
}

.sb-cookie-btn--primary {
    background: #1e2a36;
    color: #ffffff;
}

.sb-cookie-btn--primary:hover {
    background: #121a22;
}

.sb-cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sb-cookie-modal {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    color: #1e2a36;
    border-radius: 6px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.sb-cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sb-cookie-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.sb-cookie-close {
    border: 0;
    background: transparent;
    color: #1e2a36;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.sb-cookie-close:focus-visible {
    outline: 2px solid #86b7fe;
    outline-offset: 2px;
}

.sb-cookie-modal__body {
    padding: 16px 20px 8px;
}

.sb-cookie-modal__intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
}

.sb-cookie-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fbfdff;
}

.sb-cookie-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sb-cookie-item__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.sb-cookie-item__desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.sb-cookie-switch {
    position: relative;
    width: 48px;
    height: 28px;
    display: inline-block;
}

.sb-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sb-cookie-slider {
    position: absolute;
    inset: 0;
    background: #c0c8d0;
    border-radius: 30px;
    transition: 0.2s;
}

.sb-cookie-slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}

.sb-cookie-switch input:checked + .sb-cookie-slider {
    background: #1e2a36;
}

.sb-cookie-switch input:checked + .sb-cookie-slider:before {
    transform: translateX(20px);
}

.sb-cookie-switch input:disabled + .sb-cookie-slider {
    opacity: 0.75;
    cursor: not-allowed;
}

.sb-cookie-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .sb-cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sb-cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .sb-cookie-modal {
        max-height: 95vh;
    }

    .sb-cookie-modal__actions {
        justify-content: stretch;
    }

    .sb-cookie-modal__actions .sb-cookie-btn {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .sb-cookie-banner {
        background: #0f1720;
        color: #e6edf4;
        border-top-color: rgba(255, 255, 255, 0.15);
    }

    .sb-cookie-btn {
        border-color: #d1dae3;
        color: #d1dae3;
        background: #0f1720;
    }

    .sb-cookie-btn:hover {
        background: #1a2733;
    }

    .sb-cookie-btn--primary {
        background: #d1dae3;
        color: #0f1720;
        border-color: #d1dae3;
    }

    .sb-cookie-btn--primary:hover {
        background: #edf4fa;
    }

    .sb-cookie-modal {
        background: #0f1720;
        color: #e6edf4;
    }

    .sb-cookie-close {
        color: #e6edf4;
    }

    .sb-cookie-item {
        background: #15202b;
        border-color: rgba(255, 255, 255, 0.15);
    }

    .sb-cookie-slider {
        background: #556270;
    }

    .sb-cookie-switch input:checked + .sb-cookie-slider {
        background: #d1dae3;
    }
}

html[dir="rtl"] .sb-cookie-banner__inner,
html[dir="rtl"] .sb-cookie-modal,
html[dir="rtl"] .sb-cookie-modal__header,
html[dir="rtl"] .sb-cookie-item__top,
html[dir="rtl"] .sb-cookie-modal__body {
    direction: rtl;
    text-align: right;
}
