#ccrf-banner {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999999;
    background: var(--ccrf-banner-bg, #fff);
    border-top: 3px solid var(--ccrf-border-color, #393185);
    color: var(--ccrf-text-color, #000);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);

    /* Размытие того, что видно СКВОЗЬ баннер (только в границах баннера) */
    -webkit-backdrop-filter: blur(var(--ccrf-backdrop-blur, 0px));
    backdrop-filter: blur(var(--ccrf-backdrop-blur, 0px));
}

#ccrf-banner *,
#ccrf-banner *::before,
#ccrf-banner *::after { box-sizing: border-box; }

#ccrf-banner .ccrf-banner__content {
    max-width: 1200px; margin: 0 auto; padding: 20px 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
#ccrf-banner .ccrf-banner__title { margin: 0 0 6px; font-size: 17px; color: var(--ccrf-text-color); }
#ccrf-banner .ccrf-banner__text-wrap { flex: 1 1 420px; }
#ccrf-banner .ccrf-banner__text { margin: 0 0 6px; white-space: pre-line; }
#ccrf-banner .ccrf-banner__link { color: var(--ccrf-link-color, #393185); text-decoration: underline; }
#ccrf-banner .ccrf-banner__buttons { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

.ccrf-btn {
    padding: 12px 24px; font-size: 15px; font-weight: 600; line-height: 1;
    border: none; border-radius: 0; cursor: pointer; text-align: center;
    white-space: nowrap; transition: filter .15s; text-decoration: none;
    -webkit-appearance: none; appearance: none;
}
.ccrf-btn:hover { filter: brightness(.9); }
.ccrf-btn--accept { background: var(--ccrf-accept-bg, #95C77B); color: var(--ccrf-accept-color, #fff); }
.ccrf-btn--reject { background: var(--ccrf-reject-bg, #393185); color: var(--ccrf-reject-color, #fff); }
.ccrf-btn--customize {
    background: transparent; color: var(--ccrf-text-color, #000);
    border: 2px solid var(--ccrf-border-color, #393185);
}
.ccrf-btn--save { background: var(--ccrf-accept-bg, #95C77B); color: #fff; width: 100%; padding: 14px; }

.ccrf-modal { display: none; position: fixed; inset: 0; z-index: 1000000; }
.ccrf-modal.is-open { display: flex; align-items: center; justify-content: center; }
.ccrf-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ccrf-modal__content {
    position: relative; background: #fff; max-width: 640px; width: 92%;
    max-height: 85vh; overflow-y: auto; padding: 24px; border-radius: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.2); color: #000;
}
.ccrf-modal__content h2 { margin-top: 0; }
.ccrf-modal__categories { margin: 16px 0; }
.ccrf-category { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.ccrf-category__label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.ccrf-category__label input[type="checkbox"] { width: 18px; height: 18px; }
.ccrf-category__desc { margin: 4px 0 0 26px; font-size: 14px; color: #555; }
.ccrf-category__note { margin: 4px 0 0 26px; font-size: 13px; color: #888; font-style: italic; }
.ccrf-modal__actions { margin-top: 20px; }
.ccrf-modal__close {
    position: absolute; top: 8px; right: 12px; background: none; border: none;
    font-size: 28px; cursor: pointer; line-height: 1; color: #666; padding: 4px 8px;
}

/* Стили для текста согласия */
.ccrf-consent-text-modal h2,
.ccrf-consent-page-text h2 { margin-top: 0; font-size: 20px; }
.ccrf-consent-text-modal h3,
.ccrf-consent-page-text h3 { margin: 20px 0 8px; font-size: 16px; }
.ccrf-consent-text-modal p,
.ccrf-consent-page-text p { margin: 8px 0; line-height: 1.6; }
.ccrf-consent-text-modal ul,
.ccrf-consent-page-text ul { margin: 8px 0 12px; padding-left: 22px; }
.ccrf-consent-text-modal li,
.ccrf-consent-page-text li { margin-bottom: 4px; }
.ccrf-consent-page-text { max-width: 800px; }

/* Таблица в тексте согласия */
.ccrf-consent-text-modal table,
.ccrf-consent-page-text table {
    width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px;
}
.ccrf-consent-text-modal table th,
.ccrf-consent-text-modal table td,
.ccrf-consent-page-text table th,
.ccrf-consent-page-text table td {
    border: 1px solid #d0d0d0; padding: 8px 10px; text-align: left; vertical-align: top;
}
.ccrf-consent-text-modal table thead th,
.ccrf-consent-page-text table thead th {
    background: #f2f2f2; font-weight: 600;
}

/* Гарантированное скрытие баннера */
#ccrf-banner[hidden],
#ccrf-banner.ccrf-hidden {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 600px) {
    #ccrf-banner .ccrf-banner__content { flex-direction: column; align-items: stretch; padding: 16px; }
    #ccrf-banner .ccrf-banner__buttons { flex-direction: column; width: 100%; }
    .ccrf-btn { width: 100%; padding: 14px 20px; }
    .ccrf-modal__content { width: 96%; padding: 16px; }
}