/* ===== Баннер ===== */
.occ-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 32px;
    background: #fff;
    border-top: 1px solid #e3e6ea;
    color: #43506b;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -8px 24px rgba(74, 144, 217, 0.14);
}

.occ-banner-text {
    flex: 1;
    min-width: 240px;
}

.occ-banner-text a {
    color: #4a90d9;
    text-decoration: underline;
}

.occ-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #4a90d9;
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.occ-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ===== Кнопки (общие для баннера и модалки) ===== */
.occ-btn {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.occ-btn-outline {
    background: #f1f3f7;
    border: 1px solid transparent;
    color: #43506b;
}

.occ-btn-outline:hover {
    background: #e6e9ef;
}

.occ-btn-primary {
    background: #4a90d9;
    border: 1px solid #4a90d9;
    color: #fff;
}

.occ-btn-primary:hover {
    background: #3a7bc0;
    border-color: #3a7bc0;
}

.occ-btn-danger {
    background: #fff;
    border: 1px solid #d5d8dd;
    color: #b02a37;
}

.occ-btn-danger:hover {
    background: #fdecea;
    border-color: #f5c2c7;
}

/* ===== Модальное окно ===== */
.occ-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(20, 30, 50, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.occ-modal {
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #4a90d9;
    border-radius: 20px;
    color: #43506b;
    font-family: inherit;
    box-shadow: 0 20px 60px rgba(74, 144, 217, 0.25);
}

.occ-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #eef1f5;
}

.occ-modal-icon {
    font-size: 20px;
}

.occ-modal-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1e2a44;
}

.occ-modal-close {
    background: none;
    border: none;
    color: #9aa3b2;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.occ-modal-close:hover {
    color: #43506b;
}

.occ-modal-body {
    padding: 20px 24px;
}

.occ-modal-intro {
    font-size: 13px;
    color: #8a94a6;
    margin: 0 0 18px;
    line-height: 1.6;
}

/* ===== Категории ===== */
.occ-category {
    border-top: 1px solid #eef1f5;
    padding: 14px 0;
}

.occ-category-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.occ-category-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.occ-category-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e2a44;
}

.occ-category-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f1f3f7;
    color: #8a94a6;
}

.occ-category-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.occ-locked-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e7f6ec;
    color: #1e7e34;
    white-space: nowrap;
}

.occ-chevron {
    color: #b7bfcc;
    font-size: 12px;
    transition: transform 0.15s ease;
}

.occ-category-open .occ-chevron {
    transform: rotate(180deg);
}

.occ-category-body {
    display: none;
    padding-top: 12px;
}

.occ-category-open .occ-category-body {
    display: block;
}

.occ-category-description {
    font-size: 13px;
    color: #8a94a6;
    margin: 0 0 12px;
    line-height: 1.6;
}

.occ-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.occ-cookie-table th {
    text-align: left;
    padding: 6px 10px;
    color: #b7bfcc;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #eef1f5;
}

.occ-cookie-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f5f6f8;
    color: #5a6478;
    background: #fafbfc;
}

/* ===== Переключатель (toggle switch) ===== */
.occ-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.occ-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.occ-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d5d8dd;
    border-radius: 22px;
    transition: background 0.15s ease;
}

.occ-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.occ-switch input:checked + .occ-slider {
    background: #4a90d9;
}

.occ-switch input:checked + .occ-slider::before {
    transform: translateX(16px);
}

.occ-switch-disabled {
    cursor: not-allowed;
}

.occ-modal-footnote {
    font-size: 11px;
    color: #b7bfcc;
    margin: 16px 0 0;
    line-height: 1.6;
}

.occ-modal-footnote a {
    color: #4a90d9;
}

.occ-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #eef1f5;
}

.occ-modal-actions .occ-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
}

@media (min-width: 520px) {
    .occ-modal-actions {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .occ-modal-actions .occ-btn {
        font-size: 11px;
        padding: 10px 8px;
    }
}

/* ===== Плавающая иконка ===== */
.occ-floating-icon {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99997;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #4a90d9;
    color: #4a90d9;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(74, 144, 217, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.occ-floating-icon:hover {
    transform: scale(1.08);
    background: #f1f7fd;
}

@media (max-width: 640px) {
    .occ-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }

    .occ-banner-actions {
        width: 100%;
    }

    .occ-banner-actions .occ-btn {
        flex: 1;
    }
}
