/* ============================================
           ВСЕ КЛАССЫ БАННЕРА С ПРЕФИКСОМ "cookie-"
   ============================================ */

/* Основной контейнер баннера - ПО УМОЛЧАНИЮ СКРЫТ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    max-width: 315px;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    
    /* Скрыт по умолчанию */
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Показанное состояние */
.cookie-banner.cookie-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Внутренний контейнер */
.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Текст баннера */
.cookie-banner-text {
    font-size: 11px;
    line-height: 1.5;
    color: #e5e7eb;
    text-align: center;
    margin: 0;
}
.cookie-banner-text a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}
.cookie-banner-text a:hover {
    color: #93bbfc;
}

/* Блок с кнопками */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Базовый стиль кнопок */
.cookie-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}
.cookie-btn:active {
    transform: scale(0.96);
}

/* Кнопка "Отклонить" */
.cookie-btn-decline {
    background: #374151;
    color: #d1d5db;
}
.cookie-btn-decline:hover {
    background: #4b5563;
}

/* Кнопка "Принять всё" */
.cookie-btn-accept {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.cookie-btn-accept:hover {
    background: #047857;
}

/* ===== Адаптивность для маленьких экранов ===== */
@media (max-width: 400px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        width: auto;
        border-radius: 12px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-btn {
/*
        width: 100%;
*/
        justify-content: center;
    }
}


/* ========== NAVIGATION PANEL ========== */
.fb-nav-panel {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 50;
    display: none;
}

@media (max-width: 768px) {
    .fb-nav-panel {
        display: block;
    }
    [data-artboard-recid="2244476841"], #rec2244477971, #rec2244440881, #rec2244484221 {
        display: none;
    }
}

.fb-nav-container {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(30, 41, 59, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: box-shadow 0.3s ease;
}

.fb-nav-container:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ========== LEFT SECTION ========== */
.fb-left-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    flex-shrink: 0;
}

/* ========== STATUS INDICATOR ========== */
.fb-status-indicator {
    position: relative;
    display: flex;
    height: 8px;
    width: 8px;
    flex-shrink: 0;
}

.fb-status-ping {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.4);
    animation: fb-ping 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fb-status-dot {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    height: 8px;
    width: 8px;
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

@keyframes fb-ping {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========== PHONE SECTION ========== */
.fb-phone-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fb-phone-link {
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
}

.fb-phone-link:hover {
    color: #34d399 !important;
}

.fb-online-status {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ========== RIGHT SECTION ========== */
.fb-right-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ========== CTA BUTTON ========== */
.fb-cta-button {
    background: #ef4444;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.fb-cta-button:hover {
    background: #dc2626;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.fb-cta-button:active {
    background: #b91c1c;
    transform: scale(0.96);
}

/* Button shine effect */
.fb-cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.fb-cta-button:hover::after {
    transform: translateX(100%);
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 480px) {
    .fb-nav-container {
        padding: 15px;
        gap: 6px;
    }
    
    .fb-left-section {
        padding-left: 4px;
        gap: 6px;
    }
    
    .fb-phone-link {
        font-size: 14px;
    }
    
    .fb-online-status {
        font-size: 11px;
    }
    
    .fb-cta-button {
        font-size: 10px;
        padding: 8px 12px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 380px) {
    .fb-phone-link {
        font-size: 12px;
    }
    
    .fb-online-status {
        font-size: 10px;
    }
    
    .fb-cta-button {
        font-size: 11px;
        padding: 6px 10px;
    }
}

.tn-form__submit-gradient {
    background-image: linear-gradient(0.5turn, rgba(36, 175, 98, 1) 0%, rgba(26, 140, 76, 1) 55%, rgba(26, 140, 76, 1) 93%, rgba(56, 195, 116, 1) 100%) !important;
    box-shadow: 0px 5px 0px 0px rgba(20, 120, 60, 1);
}
