/*
 * Cookie Banner Custom Styles for UPGRADE Theme
 * Стилизация плагина CookieYes под дизайн сайта
 * Шрифт: Raleway
 * Стиль: Минималистичный с backdrop-blur эффектами
 * 
 * ВАЖНО: Стилизация для классов cky-* (новая версия плагина)
 */

/* ============================================
   COOKIE BANNER - Основной баннер
   ============================================ */

.cky-consent-container {
    font-family: 'Raleway', sans-serif !important;
}

.cky-consent-bar {
    font-family: 'Raleway', sans-serif !important;
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    backdrop-filter: blur(32px) !important;
    border-radius: 48px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
}

.cky-notice {
    font-family: 'Raleway', sans-serif !important;
}

/* Заголовок баннера */
.cky-title {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #0F172A !important;
    margin-bottom: 0.75rem !important;
}

/* Описание в баннере */
.cky-notice-des,
.cky-notice-des p {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.938rem !important;
    line-height: 1.6 !important;
    color: #0F172A !important;
}

.cky-notice-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

/* ============================================
   КНОПКИ В БАННЕРЕ
   ============================================ */

.cky-notice-btn-wrapper {
    display: flex !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
}

/* Все кнопки - базовые стили */
.cky-consent-container .cky-consent-bar .cky-notice-btn-wrapper .cky-btn,
button.cky-btn[data-cky-tag],
.cky-btn {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 32px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border-style: solid !important;
    border-width: 2px !important;
}

/* Кнопка Accept All - градиентная */
.cky-consent-container .cky-consent-bar button.cky-btn-accept[data-cky-tag="accept-button"],
.cky-consent-bar .cky-btn-accept,
button.cky-btn-accept[aria-label="Accept All"],
.cky-btn.cky-btn-accept {
    background: linear-gradient(90deg, #2ED7AF 0%, #2D6FFF 50%, #A259FF 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(45, 111, 255, 0.2) !important;
}

.cky-consent-container .cky-consent-bar button.cky-btn-accept[data-cky-tag="accept-button"]:hover,
.cky-consent-bar .cky-btn-accept:hover,
button.cky-btn-accept[aria-label="Accept All"]:hover,
.cky-btn.cky-btn-accept:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(45, 111, 255, 0.35) !important;
    opacity: 0.95 !important;
}

/* Кнопки Customize и Reject - с обводкой */
.cky-consent-container .cky-consent-bar button.cky-btn-customize[data-cky-tag="settings-button"],
.cky-consent-bar .cky-btn-customize,
button.cky-btn-customize[aria-label="Customise"],
.cky-btn.cky-btn-customize {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #E2E8F0 !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

.cky-consent-container .cky-consent-bar button.cky-btn-reject[data-cky-tag="reject-button"],
.cky-consent-bar .cky-btn-reject,
button.cky-btn-reject[aria-label="Reject All"],
.cky-btn.cky-btn-reject {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #E2E8F0 !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

.cky-consent-container .cky-consent-bar button.cky-btn-customize[data-cky-tag="settings-button"]:hover,
.cky-consent-bar .cky-btn-customize:hover,
button.cky-btn-customize[aria-label="Customise"]:hover,
.cky-btn.cky-btn-customize:hover,
.cky-consent-container .cky-consent-bar button.cky-btn-reject[data-cky-tag="reject-button"]:hover,
.cky-consent-bar .cky-btn-reject:hover,
button.cky-btn-reject[aria-label="Reject All"]:hover,
.cky-btn.cky-btn-reject:hover {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* ============================================
   OVERLAY - Тёмный фон за модальным окном
   ============================================ */

.cky-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.3s ease !important;
}

/* ============================================
   MODAL / PREFERENCE CENTER - Модальное окно
   ============================================ */

.cky-modal {
    font-family: 'Raleway', sans-serif !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out !important;
    padding: 20px !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    transform: none !important;
}

.cky-modal.cky-modal-open {
    opacity: 1 !important;
    visibility: visible !important;
}

.cky-preference-center {
    font-family: 'Raleway', sans-serif !important;
    background: #FFFFFF !important;
    border-radius: 48px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    max-width: 900px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    margin: 0 auto !important;
    /* Сбрасываем любые смещения от плагина */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ - центрирование */
.cky-modal.cky-modal-open { 
    display: grid !important; 
    place-items: center !important; 
}

/* ПРИНУДИТЕЛЬНОЕ центрирование через атрибутные селекторы */
.cky-modal[style] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    padding: 20px !important;
    margin: 0 !important;
    transform: none !important;
}

.cky-preference-center[style] {
    position: relative !important;
    margin: 0 auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    border-radius: 48px !important;
    transform: none !important;
    max-width: 900px !important;
    width: 100% !important;
}

/* ДОПОЛНИТЕЛЬНОЕ принудительное центрирование */
body .cky-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    padding: 20px !important;
    margin: 0 !important;
    transform: none !important;
}

body .cky-preference-center {
    position: relative !important;
    margin: 0 auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 900px !important;
    width: 100% !important;
}

/* Заголовок модального окна */
.cky-preference-header {
    padding: 1.5rem 2rem !important;
    border-bottom: 1px solid #E2E8F0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #F8FAFC !important;
}

.cky-preference-title {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #0F172A !important;
}

/* Кнопка закрытия */
.cky-btn-close {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(226, 232, 240, 0.4) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.cky-btn-close:hover {
    background: rgba(203, 213, 225, 0.6) !important;
    transform: rotate(90deg) !important;
}

.cky-btn-close img {
    width: 16px !important;
    height: 16px !important;
    filter: brightness(0) !important;
    opacity: 0.7 !important;
}

/* ============================================
   КОНТЕНТ МОДАЛЬНОГО ОКНА
   ============================================ */

.cky-preference-body-wrapper {
    overflow-y: auto !important;
    flex: 1 !important;
    padding: 2rem !important;
}

.cky-preference-content-wrapper,
.cky-preference-content-wrapper p {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.938rem !important;
    line-height: 1.6 !important;
    color: #0F172A !important;
    margin-bottom: 1.5rem !important;
}

/* Кнопка Show More */
.cky-show-desc-btn {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important;
    color: #2D6FFF !important;
    text-decoration: underline !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: 0.25rem !important;
}

.cky-show-desc-btn:hover {
    color: #A259FF !important;
}

/* ============================================
   ACCORDION - Аккордеоны с категориями
   ============================================ */

.cky-accordion-wrapper {
    margin-top: 1.5rem !important;
}

.cky-accordion {
    margin-bottom: 0.75rem !important;
    border-radius: 32px !important;
    overflow: hidden !important;
    border: 1px solid #E2E8F0 !important;
}

.cky-accordion-item {
    background: #F8FAFC !important;
    transition: all 0.3s ease !important;
}

.cky-accordion-header-wrapper {
    padding: 1rem 1.25rem !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.cky-accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.cky-accordion-btn {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #0F172A !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    padding: 0 !important;
    flex: 1 !important;
}

/* Chevron иконка */
.cky-accordion-chevron {
    margin-right: 1rem !important;
    transition: transform 0.3s ease !important;
}

.cky-accordion-chevron i {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 5px 0 5px 8px !important;
    border-color: transparent transparent transparent #2D6FFF !important;
    transition: transform 0.3s ease !important;
}

.cky-accordion[aria-expanded="true"] .cky-accordion-chevron i {
    transform: rotate(90deg) !important;
}

/* Always Active badge */
.cky-always-active {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    color: #64748B !important;
    background: rgba(100, 116, 139, 0.1) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 40px !important;
}

/* Описание категории */
.cky-accordion-header-des,
.cky-accordion-header-des p {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #64748B !important;
    margin: 0 !important;
}

/* Тело аккордеона */
.cky-accordion-body {
    padding: 0 1.25rem 1rem 1.25rem !important;
    background: #FFFFFF !important;
}

/* Таблица с cookies */
.cky-audit-table {
    font-family: 'Raleway', sans-serif !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 24px !important;
    padding: 1rem !important;
}

.cky-empty-cookies-text {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    color: #64748B !important;
    text-align: center !important;
    margin: 0 !important;
}

/* ============================================
   SWITCHES / TOGGLES - Переключатели
   ============================================ */

/* ПРИНУДИТЕЛЬНО показываем переключатели */
.cky-switch {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    margin-left: 1rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.cky-switch input[type="checkbox"] {
    opacity: 0 !important;
    width: 44px !important;
    height: 24px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Ползунок переключателя */
.cky-switch::before {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #E2E8F0 !important;
    transition: 0.4s !important;
    border-radius: 34px !important;
    content: '' !important;
    z-index: 1 !important;
}

/* Круг внутри переключателя */
.cky-switch::after {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: 0.4s !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 2 !important;
}

/* Когда переключатель включен */
.cky-switch input:checked + *::before,
.cky-switch input:checked ~ *::before,
.cky-switch:has(input:checked)::before {
    background: linear-gradient(90deg, #2ED7AF 0%, #2D6FFF 100%) !important;
}

.cky-switch input:checked + *::after,
.cky-switch input:checked ~ *::after,
.cky-switch:has(input:checked)::after {
    transform: translateX(20px) !important;
}

/* Альтернативный способ для старых браузеров */
.cky-switch.active::before {
    background: linear-gradient(90deg, #2ED7AF 0%, #2D6FFF 100%) !important;
}

.cky-switch.active::after {
    transform: translateX(20px) !important;
}

/* ============================================ МОБИЛЬНАЯ АДАПТАЦИЯ ============================================ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .cky-consent-bar {
        border-radius: 40px !important;
        padding: 1.5rem !important;
        margin: 1rem !important;
    }
    
    .cky-preference-center {
        border-radius: 40px !important;
        margin: 1rem !important;
        max-height: 85vh !important;
    }
    
    .cky-accordion {
        border-radius: 24px !important;
    }
    
    .cky-btn {
        border-radius: 24px !important;
        padding: 0.625rem 1.25rem !important;
        font-size: 0.8125rem !important;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .cky-consent-bar {
        border-radius: 32px !important;
        padding: 1.25rem !important;
        margin: 0.75rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    }
    
    .cky-notice-btn-wrapper {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .cky-btn {
        border-radius: 24px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .cky-preference-center {
        border-radius: 32px !important;
        margin: 0.75rem !important;
        width: calc(100% - 1.5rem) !important;
        max-height: 80vh !important;
    }
    
    .cky-preference-header {
        padding: 1.25rem 1.5rem !important;
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .cky-preference-title {
        font-size: 0.9rem !important;
        text-align: left !important;
        flex: 1 !important;
    }
    
    .cky-btn-close {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    
    .cky-preference-body-wrapper {
        padding: 1.5rem !important;
    }
    
    .cky-accordion {
        border-radius: 24px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .cky-accordion-header-wrapper {
        padding: 0.875rem 1rem !important;
    }
    
    .cky-accordion-header {
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .cky-accordion-btn {
        font-size: 0.9375rem !important;
    }
    
    .cky-accordion-header-des {
        margin-top: 0.5rem !important;
    }
    
    .cky-prefrence-btn-wrapper {
        padding: 1rem !important;
        gap: 0.75rem !important;
        flex-direction: column !important;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .cky-consent-bar {
        border-radius: 24px !important;
        padding: 1rem !important;
        margin: 0.5rem !important;
    }
    
    .cky-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .cky-notice-des, .cky-notice-des p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .cky-preference-center {
        border-radius: 24px !important;
        margin: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        max-height: 85vh !important;
    }
    
    .cky-preference-center[style] {
        border-radius: 8px !important;
    }
    
    .cky-preference-header {
        padding: 1rem 1.25rem !important;
    }
    
    .cky-preference-title {
        font-size: 0.9rem !important;
    }
    
    .cky-btn-close img {
        width: 14px !important;
        height: 14px !important;
    }
    
    .cky-preference-body-wrapper {
        padding: 1.25rem !important;
    }
    
    .cky-accordion {
        border-radius: 16px !important;
    }
    
    .cky-accordion-header-wrapper {
        padding: 0.75rem 0.875rem !important;
    }
    
    .cky-accordion-btn {
        font-size: 0.875rem !important;
    }
    
    .cky-accordion-header-des, .cky-accordion-header-des p {
        font-size: 0.8125rem !important;
    }
    
    .cky-btn {
        border-radius: 20px !important;
        padding: 0.75rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }
    
    .cky-prefrence-btn-wrapper {
        padding: 0.875rem !important;
        gap: 0.625rem !important;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }
    
    /* Улучшаем переключатели на маленьких экранах */
    .cky-switch {
        width: 40px !important;
        height: 22px !important;
    }
    
    .cky-switch input[type="checkbox"] {
        width: 40px !important;
        height: 22px !important;
    }
    
    .cky-switch::after {
        height: 16px !important;
        width: 16px !important;
        left: 3px !important;
        bottom: 3px !important;
    }
    
    .cky-switch input:checked + *::after,
    .cky-switch input:checked ~ *::after,
    .cky-switch:has(input:checked)::after,
    .cky-switch.active::after {
        transform: translateX(18px) !important;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .cky-preference-center {
        max-height: 95vh !important;
        margin: 0.5rem !important;
    }
    
    .cky-preference-header {
        padding: 1rem 1.5rem !important;
    }
    
    .cky-preference-body-wrapper {
        padding: 1rem 1.5rem !important;
    }
    
    .cky-prefrence-btn-wrapper {
        padding: 0.75rem 1rem !important;
    }
}

/* ============================================
   FOOTER МОДАЛЬНОГО ОКНА - Кнопки внизу
   ============================================ */

.cky-footer-wrapper {
    border-top: 1px solid #E2E8F0 !important;
    background: #F8FAFC !important;
    padding: 1.5rem 2rem !important;
    position: relative !important;
}

.cky-footer-shadow {
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    right: 0 !important;
    height: 20px !important;
    pointer-events: none !important;
}

.cky-prefrence-btn-wrapper {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}

/* Кнопки в футере модального окна */
.cky-modal .cky-preference-center .cky-footer-wrapper .cky-prefrence-btn-wrapper .cky-btn,
.cky-prefrence-btn-wrapper button.cky-btn[data-cky-tag],
.cky-prefrence-btn-wrapper .cky-btn {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 32px !important;
    border-style: solid !important;
    border-width: 2px !important;
}

/* Accept All в модальном окне - градиентная */
.cky-modal .cky-preference-center .cky-prefrence-btn-wrapper button.cky-btn-accept[data-cky-tag="detail-accept-button"],
.cky-prefrence-btn-wrapper button.cky-btn-accept[aria-label="Accept All"],
.cky-prefrence-btn-wrapper .cky-btn.cky-btn-accept {
    background: linear-gradient(90deg, #2ED7AF 0%, #2D6FFF 50%, #A259FF 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(45, 111, 255, 0.2) !important;
}

.cky-modal .cky-preference-center .cky-prefrence-btn-wrapper button.cky-btn-accept[data-cky-tag="detail-accept-button"]:hover,
.cky-prefrence-btn-wrapper button.cky-btn-accept[aria-label="Accept All"]:hover,
.cky-prefrence-btn-wrapper .cky-btn.cky-btn-accept:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(45, 111, 255, 0.35) !important;
    opacity: 0.95 !important;
}

/* Reject All и Save Preferences - с обводкой */
.cky-modal .cky-preference-center .cky-prefrence-btn-wrapper button.cky-btn-reject[data-cky-tag="detail-reject-button"],
.cky-prefrence-btn-wrapper button.cky-btn-reject[aria-label="Reject All"],
.cky-prefrence-btn-wrapper .cky-btn.cky-btn-reject,
.cky-modal .cky-preference-center .cky-prefrence-btn-wrapper button.cky-btn-preferences[data-cky-tag="detail-save-button"],
.cky-prefrence-btn-wrapper button.cky-btn-preferences[aria-label="Save My Preferences"],
.cky-prefrence-btn-wrapper .cky-btn.cky-btn-preferences {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #E2E8F0 !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

.cky-modal .cky-preference-center .cky-prefrence-btn-wrapper button.cky-btn-reject[data-cky-tag="detail-reject-button"]:hover,
.cky-prefrence-btn-wrapper button.cky-btn-reject[aria-label="Reject All"]:hover,
.cky-prefrence-btn-wrapper .cky-btn.cky-btn-reject:hover,
.cky-modal .cky-preference-center .cky-prefrence-btn-wrapper button.cky-btn-preferences[data-cky-tag="detail-save-button"]:hover,
.cky-prefrence-btn-wrapper button.cky-btn-preferences[aria-label="Save My Preferences"]:hover,
.cky-prefrence-btn-wrapper .cky-btn.cky-btn-preferences:hover {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* ============================================
   ПЛАВАЮЩАЯ КНОПКА "REVISIT CONSENT" - СКРЫВАЕМ
   ============================================ */

.cky-btn-revisit-wrapper,
.cky-revisit-bottom-left,
.cky-revisit-bottom-right,
.cky-revisit-top-left,
.cky-revisit-top-right,
[data-cky-tag="revisit-consent"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================
   RESPONSIVE - Мобильная адаптация
   ============================================ */

@media (max-width: 991px) {
    .cky-consent-bar {
        border-radius: 3vw !important;
        padding: 1.5rem !important;
        margin: 1rem !important;
    }
    
    .cky-preference-center {
        width: 95% !important;
        max-height: 95vh !important;
        border-radius: 48px !important;
    }
    
    .cky-preference-header {
        padding: 1.25rem 1.5rem !important;
    }
    
    .cky-preference-title {
        font-size: 1.25rem !important;
    }
    
    .cky-preference-body-wrapper {
        padding: 1.5rem !important;
    }
    
    .cky-footer-wrapper {
        padding: 1.25rem 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .cky-consent-bar {
        font-size: 14px !important;
        padding: 1.25rem !important;
    }
    
    .cky-title {
        font-size: 1.1rem !important;
    }
    
    .cky-notice-des,
    .cky-notice-des p {
        font-size: 0.875rem !important;
    }
    
    .cky-notice-btn-wrapper {
        flex-direction: column !important;
    }
    
    .cky-btn {
        width: 100% !important;
        font-size: 0.813rem !important;
        padding: 0.625rem 1rem !important;
        border-radius: 2vw !important;
    }
    
    .cky-preference-center {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
    }
    
    .cky-preference-header {
        padding: 1rem !important;
    }
    
    .cky-preference-title {
        font-size: 1.1rem !important;
    }
    
    .cky-preference-body-wrapper {
        padding: 1rem !important;
    }
    
    .cky-prefrence-btn-wrapper {
        flex-direction: column !important;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn {
        width: 100% !important;
    }
    
    .cky-footer-wrapper {
        padding: 1rem !important;
    }
    
    .cky-accordion-header-wrapper {
        padding: 0.875rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .cky-btn-close {
        width: 36px !important;
        height: 36px !important;
    }
    
    .cky-btn-close img {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ============================================
   ПЛАВНЫЕ АНИМАЦИИ
   ============================================ */

/* Появление баннера */
.cky-consent-container {
    animation: slideInUp 0.5s ease-out !important;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%) !important;
        opacity: 0 !important;
    }
    to {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* Появление модального окна */
.cky-modal.cky-modal-open {
    animation: fadeIn 0.2s ease-out !important;
}

@keyframes fadeIn {
    from {
        opacity: 0 !important;
    }
    to {
        opacity: 1 !important;
    }
}

.cky-preference-center {
    animation: scaleIn 0.3s ease-out !important;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95) !important;
        opacity: 0 !important;
    }
    to {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

/* ============================================
   SCROLLBAR - Скроллбар в модальном окне
   ============================================ */

.cky-preference-body-wrapper::-webkit-scrollbar {
    width: 8px !important;
}

.cky-preference-body-wrapper::-webkit-scrollbar-track {
    background: #F1F5F9 !important;
    border-radius: 10px !important;
}

.cky-preference-body-wrapper::-webkit-scrollbar-thumb {
    background: #CBD5E1 !important;
    border-radius: 10px !important;
}

.cky-preference-body-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94A3B8 !important;
}

/* ============================================
   ACCESSIBILITY - Доступность
   ============================================ */

.cky-btn:focus,
.cky-btn-close:focus,
.cky-accordion-btn:focus {
    outline: 3px solid rgba(45, 111, 255, 0.3) !important;
    outline-offset: 2px !important;
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    .cky-consent-bar {
        border: 2px solid #0F172A !important;
    }
    
    .cky-btn {
        border: 2px solid currentColor !important;
    }
    
    .cky-preference-center {
        border: 2px solid #0F172A !important;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ============================================ */

/* Позиционирование баннера */
.cky-box-bottom-right {
    bottom: 20px !important;
    right: 20px !important;
    max-width: 450px !important;
}

.cky-box-bottom-left {
    bottom: 20px !important;
    left: 20px !important;
    max-width: 450px !important;
}

.cky-box-top-right {
    top: 20px !important;
    right: 20px !important;
    max-width: 450px !important;
}

.cky-box-top-left {
    top: 20px !important;
    left: 20px !important;
    max-width: 450px !important;
}

/* Ссылки в тексте */
.cky-notice-des a,
.cky-preference-content-wrapper a,
.cky-accordion-header-des a {
    font-family: 'Raleway', sans-serif !important;
    color: #2D6FFF !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.cky-notice-des a:hover,
.cky-preference-content-wrapper a:hover,
.cky-accordion-header-des a:hover {
    color: #A259FF !important;
}

/* Улучшение читаемости */
.cky-notice-des,
.cky-preference-content-wrapper,
.cky-accordion-header-des {
    letter-spacing: 0.01em !important;
}