/* =============================================
   Виджет чат-бота RegionTehsnab
   Подключить: <link rel="stylesheet" href="/chat-widget/chat.css">
   ============================================= */

/* Всплывающий приветственный тизер-бабл */
.rts-proactive-bubble {
    position: fixed !important;
    bottom: 92px !important;
    right: 24px !important;
    max-width: 290px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 12px 14px 12px 14px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    z-index: 2147483646 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    display: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer !important;
    border-left: 4px solid #ef4444 !important;
}
.rts-proactive-bubble.visible {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
.rts-proactive-bubble::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    right: 32px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid #ffffff !important;
}
.rts-proactive-close {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
}
.rts-proactive-close:hover {
    color: #0f172a !important;
}
.rts-proactive-content strong {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f2744 !important;
    margin-bottom: 3px !important;
}
.rts-proactive-content p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #334155 !important;
}
.rts-bubble-typing {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}
.rts-bubble-typing span {
    animation: rtsBubbleDot 1.2s infinite ease-in-out !important;
    font-weight: 800 !important;
}
.rts-bubble-typing span:nth-child(2) { animation-delay: 0.2s !important; }
.rts-bubble-typing span:nth-child(3) { animation-delay: 0.4s !important; }
@keyframes rtsBubbleDot {
    0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

/* Кнопка-переключатель в цвет сайта с завораживающей неоново-красной пульсацией ободка */
#rts-chat-toggle {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    min-height: 56px !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #07162c 0%, #0f2744 40%, #1e3a8a 100%) !important;
    border: 2px solid #ef4444 !important;
    cursor: pointer !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.75), 0 8px 30px rgba(7, 22, 44, 0.7) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 18px 6px 6px !important;
    gap: 10px !important;
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, border-color 0.25s ease !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    animation: rtsRedNeonPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}
#rts-chat-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    right: -5px !important;
    bottom: -5px !important;
    border-radius: 34px !important;
    border: 2px solid #ff334b !important;
    opacity: 0.8 !important;
    animation: rtsHaloPulse 2s ease-in-out infinite !important;
    pointer-events: none !important;
}
#rts-chat-toggle:hover {
    transform: scale(1.06) translateY(-2px) !important;
    box-shadow: 0 0 32px rgba(255, 51, 75, 0.95), 0 14px 40px rgba(7, 22, 44, 0.85) !important;
}

@keyframes rtsRedNeonPulse {
    0% {
        border-color: #ef4444;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8), 0 0 14px rgba(239, 68, 68, 0.65), 0 8px 26px rgba(7, 22, 44, 0.65);
    }
    50% {
        border-color: #ff334b;
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 0 28px rgba(255, 51, 75, 0.95), 0 12px 34px rgba(239, 68, 68, 0.5);
    }
    100% {
        border-color: #ef4444;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8), 0 0 14px rgba(239, 68, 68, 0.65), 0 8px 26px rgba(7, 22, 44, 0.65);
    }
}

@keyframes rtsHaloPulse {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.35;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.9;
        filter: drop-shadow(0 0 10px #ff2233);
    }
}

.rts-toggle-avatar-wrap {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    flex-shrink: 0 !important;
}
.rts-toggle-avatar {
    font-size: 24px !important;
    line-height: 1 !important;
}
.rts-pulse-ring {
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    right: -5px !important;
    bottom: -5px !important;
    border-radius: 50% !important;
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.85) !important;
    animation: rtsRedPulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
    pointer-events: none !important;
}
@keyframes rtsRedPulseRing {
    0% { transform: scale(0.95); opacity: 0.95; box-shadow: 0 0 8px #ef4444; }
    50% { transform: scale(1.35); opacity: 0; box-shadow: 0 0 20px #ff334b; }
    100% { transform: scale(0.95); opacity: 0.95; box-shadow: 0 0 8px #ef4444; }
}
.rts-online-dot-mini {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 12px !important;
    height: 12px !important;
    background: #22c55e !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
}
.rts-toggle-label {
    display: flex !important;
    flex-direction: column !important;
    color: #fff !important;
    line-height: 1.2 !important;
}
.rts-toggle-sub {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #38bdf8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.rts-toggle-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

#rts-chat-toggle .rts-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #22c55e !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
}
#rts-chat-toggle .rts-badge.visible { display: flex !important; }

/* Окно чата */
#rts-chat-window {
    position: fixed !important;
    bottom: 90px !important;
    right: 24px !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 560px !important;
    max-height: calc(100vh - 120px) !important;
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 2147483647 !important;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#rts-chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Шапка */
.rts-header {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    color: #fff !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}
.rts-avatar {
    width: 40px !important;
    height: 40px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.rts-avatar .rts-online-dot {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 12px !important;
    height: 12px !important;
    background: #10b981 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
}
.rts-header-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}
.rts-header-title {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.rts-header-title strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}
.rts-verified-badge {
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.rts-header-info span {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.rts-status-dot {
    width: 6px !important;
    height: 6px !important;
    background: #34d399 !important;
    border-radius: 50% !important;
    display: inline-block !important;
}
.rts-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}
.rts-btn-header-reset {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 14px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}
.rts-btn-header-reset:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.03) !important;
}
.rts-btn-header-call {
    background: #10b981 !important;
    border: 1px solid #34d399 !important;
    color: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.rts-btn-header-call:hover {
    background: #059669 !important;
    transform: scale(1.08) !important;
}
.rts-close-btn {
    background: rgba(255, 255, 255, 0.18) !important;
    border: none !important;
    color: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.rts-close-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.05) !important;
}
.rts-close-btn svg {
    width: 16px !important;
    height: 16px !important;
    fill: #ffffff !important;
}

/* ========================================================
   ВЫДЕЛЕННАЯ ПАНЕЛЬ ПРЯМЫХ КОНТАКТОВ (ПОЗВОНИТЬ В ОТДЕЛ ПРОДАЖ)
   ======================================================== */
.rts-quick-contact-bar {
    display: flex !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    flex-shrink: 0 !important;
}
.rts-btn-contact {
    flex: 1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
    box-sizing: border-box !important;
}
.rts-btn-contact:hover {
    transform: translateY(-1px) !important;
}
.rts-btn-contact:active {
    transform: translateY(1px) !important;
}
.rts-btn-call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    position: relative !important;
}
.rts-btn-call:hover {
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.7), 0 6px 16px rgba(5, 150, 105, 0.5) !important;
    filter: brightness(1.08) !important;
}
.rts-btn-call .rts-contact-icon {
    display: inline-block !important;
    animation: rtsPhoneRing 2.4s ease-in-out infinite !important;
}
@keyframes rtsPhoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%, 30% { transform: rotate(-15deg) scale(1.15); }
    20%, 40% { transform: rotate(15deg) scale(1.15); }
    50% { transform: rotate(0deg) scale(1); }
}
.rts-contact-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
.rts-contact-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15 !important;
    text-align: left !important;
    overflow: hidden !important;
}
.rts-contact-text strong {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}
.rts-contact-text small {
    font-size: 10px !important;
    opacity: 0.9 !important;
    color: #f1f5f9 !important;
    white-space: nowrap !important;
}

/* ========================================================
   БЫСТРЫЕ КНОПКИ (CHIPS) С АДАПТИВНЫМ СКРОЛЛОМ
   ======================================================== */
.rts-chips-wrapper {
    position: relative !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}
.rts-chips-nav-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.15s ease !important;
    opacity: 0.85 !important;
    user-select: none !important;
}
.rts-chips-nav-btn:hover {
    opacity: 1 !important;
    background: #ffffff !important;
    color: #e11d48 !important;
    transform: translateY(-50%) scale(1.1) !important;
}
.rts-chips-nav-left { left: 4px !important; }
.rts-chips-nav-right { right: 4px !important; }

.rts-chips {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 30px 9px 30px !important;
    background: #f8fafc !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.rts-chips::-webkit-scrollbar {
    display: none !important;
}

.rts-chip {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    user-select: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
.rts-chip:hover {
    border-color: #e11d48 !important;
    color: #e11d48 !important;
    background: #fff1f2 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.15) !important;
}
.rts-chip-order {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%) !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
}
.rts-chip-menu {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}
.rts-chip-carb {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #15803d !important;
    font-weight: 600 !important;
}
.rts-chip-carb:hover {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #166534 !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.18) !important;
}
.rts-chip-16v {
    background: #fdf4ff !important;
    border-color: #f0abfc !important;
    color: #a21caf !important;
}
.rts-chip-8v {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

/* ========================================================
   МОДАЛЬНОЕ ОКНО УМНОГО КАТАЛОГА (#rts-catalog-modal)
   ======================================================== */
.rts-catalog-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 50 !important;
    display: none;
    align-items: flex-end !important;
    justify-content: center !important;
    animation: rtsFadeIn 0.2s ease !important;
}
.rts-catalog-modal-overlay.active {
    display: flex !important;
}
.rts-catalog-modal-card {
    background: #ffffff !important;
    width: 100% !important;
    max-height: 84% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 16px 14px 18px 14px !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    animation: rtsSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-sizing: border-box !important;
}
.rts-catalog-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.rts-catalog-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.rts-catalog-close {
    background: #f1f5f9 !important;
    border: none !important;
    color: #64748b !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
}
.rts-catalog-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}
.rts-catalog-tabs {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
}
.rts-catalog-tabs::-webkit-scrollbar { display: none !important; }
.rts-cat-tab {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.rts-cat-tab.active {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3) !important;
}
.rts-catalog-content {
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: 260px !important;
    padding-right: 2px !important;
}
.rts-cat-section-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 2px !important;
}
.rts-cat-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.rts-cat-card-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.rts-cat-card-btn:hover {
    background: #fff1f2 !important;
    border-color: #fca5a5 !important;
    transform: translateX(3px) !important;
}
.rts-cat-card-btn strong {
    font-size: 12.5px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
.rts-cat-card-btn small {
    font-size: 11px !important;
    color: #64748b !important;
    margin-top: 2px !important;
}


/* Сообщения */
.rts-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
    scroll-behavior: smooth;
}
.rts-messages::-webkit-scrollbar { width: 4px; }
.rts-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.rts-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: rtsMsgIn 0.2s ease;
    word-break: break-word;
}
@keyframes rtsMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rts-msg.client {
    background: #e63946;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.rts-msg.bot, .rts-msg.assistant {
    background: #fff;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.rts-msg.manager {
    background: #eaf2ff;
    color: #0c4a6e;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #b8daff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.rts-msg.manager {
    background: #fff3cd;
    color: #856404;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #ffc107;
}
.rts-msg a { color: #e63946; }
.rts-msg.bot a { color: #c1121f; }

/* Печатает... */
.rts-typing {
    display: none;
    align-self: flex-start;
    background: #fff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 10px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.rts-typing.visible { display: flex; gap: 4px; align-items: center; }
.rts-typing span {
    width: 7px; height: 7px;
    background: #aaa; border-radius: 50%;
    animation: rtsTyping 1.2s infinite;
}
.rts-typing span:nth-child(2) { animation-delay: 0.2s; }
.rts-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rtsTyping {
    0%,80%,100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-5px); opacity: 1; }
}

/* Поле ввода */
.rts-input-area {
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}
.rts-input-area textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    max-height: 90px;
    min-height: 38px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.2s;
}
.rts-input-area textarea:focus { border-color: #e63946; }
.rts-attach-btn {
    width: 38px; height: 38px;
    background: #f8f9fa;
    border: 1px solid #ddd; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #666;
}
.rts-attach-btn:hover { background: #fee2e2; border-color: #f87171; color: #ef4444; }
.rts-mic-btn {
    width: 38px; height: 38px;
    background: #f8f9fa;
    border: 1px solid #ddd; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.rts-mic-btn:hover { background: #eee; border-color: #bbb; }
.rts-mic-btn svg { width: 18px; height: 18px; fill: #666; }
.rts-mic-btn.listening {
    background: #e63946;
    border-color: #e63946;
    animation: rtsPulseMic 1.2s infinite;
}
.rts-mic-btn.listening svg { fill: #fff; }
@keyframes rtsPulseMic {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}
.rts-send-btn {
    width: 38px; height: 38px;
    background: #e63946;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}
.rts-send-btn:hover { background: #c1121f; transform: scale(1.05); }
.rts-send-btn:active { transform: scale(0.95); }
.rts-send-btn svg { width: 18px; height: 18px; fill: #fff; }

/* Приветствие */
/* Проактивный баббл (JivoSite style) */
.rts-proactive-bubble {
    position: fixed;
    bottom: 96px;
    right: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-width: 280px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 1px solid rgba(230,57,70,0.15);
}
.rts-proactive-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.rts-proactive-content strong {
    display: block;
    font-size: 13px;
    color: #e63946;
    margin-bottom: 2px;
}
.rts-proactive-content p {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}
.rts-proactive-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.rts-proactive-close:hover { color: #333; }

/* Быстрые чипсы-саджесты */
.rts-chips {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    scrollbar-width: none;
}
.rts-chips::-webkit-scrollbar { display: none; }
.rts-chip {
    white-space: nowrap;
    background: #f8f9fa;
    border: 1px solid #e63946;
    color: #e63946;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.rts-chip:hover {
    background: #e63946;
    color: #fff;
}

/* Онлайновые индикаторы */
.rts-avatar { position: relative; }
.rts-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #2dc653;
    border: 2px solid #e63946;
    border-radius: 50%;
}
.rts-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2dc653;
    border-radius: 50%;
    margin-right: 5px;
}

.rts-msg-time { font-size: 10px; color: #888; margin-top: 4px; text-align: right; }
.rts-msg.client .rts-msg-time { color: rgba(255,255,255,0.7); }

/* Промпт возобновления сессии */
.rts-session-prompt {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.rts-prompt-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}
.rts-prompt-text {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
}
.rts-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rts-btn-resume {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}
.rts-btn-resume:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,57,70,0.4);
}
.rts-btn-reset {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.rts-btn-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* =============================================
   Интерактивная мини-форма заказа в чате
   ============================================= */
.rts-order-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #e63946;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 8px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    font-size: 13px;
    color: #1e293b;
    animation: rtsMsgIn 0.25s ease;
}
.rts-order-card-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}
.rts-order-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rts-order-card-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.rts-order-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rts-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rts-form-row {
    display: flex;
    gap: 8px;
}
.rts-form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}
.rts-form-group label .rts-req {
    color: #e63946;
    font-weight: bold;
}
.rts-form-group label .rts-opt {
    font-size: 10px;
    color: #94a3b8;
    font-weight: normal;
}
.rts-order-form input[type="text"],
.rts-order-form input[type="tel"],
.rts-order-form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.15s, background 0.15s;
}
.rts-order-form input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.rts-channel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.rts-chan-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.rts-chan-chip input[type="radio"] {
    display: none;
}
.rts-chan-chip:has(input:checked),
.rts-chan-chip.active {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
    font-weight: 600;
}
.rts-btn-submit-order {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230,57,70,0.3);
    margin-top: 4px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    text-align: center;
}
.rts-btn-submit-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,57,70,0.4);
}
.rts-btn-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Проактивный баббл Анны */
.rts-proactive-bubble {
    position: fixed !important;
    bottom: 90px !important;
    right: 24px !important;
    max-width: 280px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.08) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 2147483646 !important;
    display: none;
    cursor: pointer !important;
    animation: rtsBubbleFade 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.rts-proactive-bubble.visible {
    display: block !important;
}
.rts-proactive-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 32px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    transform: rotate(45deg);
}
.rts-proactive-close {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
}
.rts-proactive-close:hover {
    color: #0f172a !important;
}
.rts-proactive-content strong {
    display: block !important;
    font-size: 13px !important;
    color: #0f172a !important;
    margin-bottom: 2px !important;
}
.rts-proactive-content p {
    margin: 0 !important;
    font-size: 12px !important;
    color: #475569 !important;
    line-height: 1.35 !important;
}
@keyframes rtsBubbleFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   ПОЛНАЯ БЛОКИРОВКА И СКРЫТИЕ JIVOSITE И УСТРАНЕНИЕ НАЛОЖЕНИЙ
   ======================================================== */
#jivo-iframe-container,
jdiv,
.jivo-iframe,
iframe[name^="jivo"],
iframe[id^="jivo"],
.jivo-c-mobile,
#jivo_mobile_widget,
#jivo_custom_widget,
.jivo-btn,
jivo-widget,
[class*="jivo"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -9999 !important;
}

/* Смещение других плавающих кнопок (WhatsApp, Viber, Tilda .t825), чтобы не перекрывать Анну */
.t825,
.t825__btn_wrapper,
.wa-chats-widget,
.chats-widget {
    bottom: 96px !important;
    z-index: 2147483640 !important;
}

/* Мобильная адаптация кнопки Анны */
@media (max-width: 768px) {
    #rts-chat-toggle {
        bottom: 16px !important;
        right: 16px !important;
        padding: 6px 14px 6px 6px !important;
        min-height: 50px !important;
        border-radius: 25px !important;
        box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5) !important;
    }
    
    .rts-toggle-avatar-wrap {
        width: 38px !important;
        height: 38px !important;
    }
    
    .rts-toggle-text strong {
        font-size: 13px !important;
    }
    
    .rts-toggle-text span {
        font-size: 10px !important;
    }
    
    .rts-proactive-bubble {
        bottom: 76px !important;
        right: 16px !important;
        max-width: 260px !important;
    }
    
    /* Сдвиг сторонних кнопок на мобильном */
    .t825,
    .t825__btn_wrapper,
    .wa-chats-widget,
    .chats-widget {
        bottom: 84px !important;
        right: 16px !important;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ВЫБОРА СПОСОБА ЗВОНКА (2 ВАРИАНТА: 8-800 / FREEPBX WEB-CALL) ===== */
.rts-call-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    animation: rtsModalFadeIn 0.22s ease-out forwards !important;
}
.rts-call-modal-overlay.active {
    display: flex !important;
}
@keyframes rtsModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.rts-call-modal-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.2) !important;
    width: 100% !important;
    max-width: 325px !important;
    padding: 22px 18px 18px 18px !important;
    box-sizing: border-box !important;
    position: relative !important;
    text-align: center !important;
}
.rts-call-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #64748b !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}
.rts-call-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.rts-call-modal-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
}
.rts-call-modal-subtitle {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.4 !important;
}
.rts-call-options-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.rts-call-option-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
.rts-call-option-phone {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}
.rts-call-option-phone:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5) !important;
    filter: brightness(1.06) !important;
}
.rts-call-option-web {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f2744 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}
.rts-call-option-web:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5), 0 0 12px rgba(59, 130, 246, 0.4) !important;
    filter: brightness(1.08) !important;
}
.rts-call-option-max {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
    border: 1px solid rgba(165, 180, 252, 0.3) !important;
}
.rts-call-option-max:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
    filter: brightness(1.08) !important;
}
.rts-call-opt-icon {
    font-size: 22px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}
.rts-call-opt-info {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
}
.rts-call-opt-info strong {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
}
.rts-call-opt-info small {
    font-size: 11px !important;
    opacity: 0.92 !important;
    color: #e2e8f0 !important;
}
.rts-call-security-badge {
    margin-top: 14px !important;
    font-size: 11px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}
.rts-weblink-active-status {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    margin-top: 10px !important;
    color: #065f46 !important;
    font-size: 12px !important;
    display: none;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
}

/* ========================================================
   СКРЫТИЕ СТАРОГО ДУБЛИРУЮЩЕГО И СЛОМАННОГО ВИДЖЕТА MAX НА САЙТЕ
   ======================================================== */
.messanger,
.messanger_active,
.messanger__item_max,
.messanger__item,
.messanger-button-mask,
.animation-pulse {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ========================================================
   ПЛАШКИ ДОВЕРИЯ В ШАПКЕ ЧАТА (TRUST BADGES)
   ======================================================== */
.rts-trust-badges-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    color: #475569 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.rts-trust-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.rts-trust-item strong {
    color: #0f2744 !important;
    font-weight: 700 !important;
}

/* ========================================================
   МОБИЛЬНЫЙ ПЛАВАЮЩИЙ КОНВЕРСИОННЫЙ БАР (MOBILE STICKY BAR)
   Для экранов смартфонов (max-width: 768px):
   - Прямой звонок 8-800 в 1 клик
   - Чат с Анной / Расчет доставки
   - Мессенджер MAX
   - Гарантия 12 мес / Предоплата всего 10%
   ======================================================== */
.rts-mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .rts-mobile-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(7, 22, 44, 0.95) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-top: 1.5px solid rgba(239, 68, 68, 0.45) !important;
        box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.45) !important;
        z-index: 2147483645 !important;
        flex-direction: column !important;
        padding: 5px 8px 7px 8px !important;
        box-sizing: border-box !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .rts-mobile-sticky-bar.hidden {
        transform: translateY(115%) !important;
        pointer-events: none !important;
    }

    .rts-msb-trust-strip {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 10.5px !important;
        color: #94a3b8 !important;
        margin-bottom: 5px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .rts-msb-trust-strip strong {
        color: #38bdf8 !important;
        font-weight: 700 !important;
    }
    .rts-msb-trust-strip span.rts-msb-dot {
        color: #ef4444 !important;
        font-weight: bold !important;
    }

    .rts-msb-actions {
        display: grid !important;
        grid-template-columns: 1fr 1.35fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .rts-msb-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 7px 4px !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        cursor: pointer !important;
        font-weight: 700 !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        text-align: center !important;
        border: none !important;
        transition: transform 0.15s ease !important;
    }
    .rts-msb-btn:active {
        transform: scale(0.96) !important;
    }

    .rts-msb-btn-call {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    .rts-msb-btn-call span.icon {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .rts-msb-btn-chat {
        background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.6) !important;
        font-size: 11.5px !important;
        position: relative !important;
    }
    .rts-msb-btn-chat span.icon {
        font-size: 15px !important;
        margin-bottom: 2px !important;
    }
    .rts-msb-pulse-dot {
        width: 7px !important;
        height: 7px !important;
        background: #22c55e !important;
        border-radius: 50% !important;
        position: absolute !important;
        top: 4px !important;
        right: 6px !important;
        box-shadow: 0 0 6px #22c55e !important;
    }

    .rts-msb-btn-max {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
        color: #ffffff !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
    }
    .rts-msb-btn-max span.icon {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    /* На мобильных стандартную круглую кнопку чата скрываем (управление через sticky bar) */
    #rts-chat-toggle {
        display: none !important;
    }

    .rts-proactive-bubble {
        bottom: 74px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        border-radius: 12px !important;
    }
    
    /* Обеспечиваем отступ снизу страницы, чтобы контент не перекрывался баром */
    body {
        padding-bottom: 68px !important;
    }
}

/* ===== RTS OMNITRACK & CLIENT DOSSIER 360° STYLES ===== */
.rts-header-client-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rts-header-client-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

.rts-transition-toast {
    position: absolute;
    top: 65px;
    left: 12px;
    right: 12px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: rtsSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.rts-transition-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rts-transition-toast-text {
    font-size: 12px;
    line-height: 1.4;
    color: #cbd5e1;
}
.rts-transition-toast-code {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    border: 1px dashed rgba(56, 189, 248, 0.5);
}
@keyframes rtsSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}




