/* Основной контейнер виджета */
.msg-icons-container {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 1 !important;
}

/* Темная тема */
.msg-icons-container.dark {
    color: #ffffff;
}

.msg-icons-container.dark .msg-messengers {
    background: #1f2937;
    border: 1px solid #374151;
}

.msg-icons-container.dark .msg-header {
    background: #111827;
    border-bottom: 1px solid #374151;
}

.msg-icons-container.dark .msg-title {
    color: #ffffff;
}

.msg-icons-container.dark .msg-close-btn {
    color: #9ca3af;
}

.msg-icons-container.dark .msg-close-btn:hover {
    background: #374151;
    color: #ffffff;
}

.msg-icons-container.dark .msg-icon {
    color: #d1d5db;
}

.msg-icons-container.dark .msg-icon:hover {
    background: #374151;
    color: #ffffff;
}

.msg-icons-container.dark .msg-footer {
    background: #111827;
    border-top: 1px solid #374151;
}

.msg-icons-container.dark .msg-powered-by {
    color: #9ca3af;
}

.msg-icons-container.dark .msg-powered-by a {
    color: #60a5fa;
}

.msg-icons-container.dark .msg-powered-by a:hover {
    color: #93c5fd;
}

/* Позиционирование */
.msg-icons-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.msg-icons-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.msg-icons-container.top-right {
    top: 20px;
    right: 20px;
}

.msg-icons-container.top-left {
    top: 20px;
    left: 20px;
}

/* Главная кнопка "Contact Us" */
.msg-main-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    min-width: 140px;
    justify-content: center;
}

/* Цвета кнопок */
.msg-main-button.blue {
    background: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.msg-main-button.blue:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.msg-main-button.green {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.msg-main-button.green:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.msg-main-button.red {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.msg-main-button.red:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.msg-main-button.purple {
    background: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.msg-main-button.purple:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.msg-main-button.orange {
    background: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.msg-main-button.orange:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.msg-main-button.pink {
    background: #ec4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.msg-main-button.pink:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.msg-main-button.teal {
    background: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.msg-main-button.teal:hover {
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.msg-main-button.indigo {
    background: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.msg-main-button.indigo:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Кнопка без текста (только иконка) */
.msg-main-button.icon-only {
    min-width: 50px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

/* Кнопка с текстом (прямоугольная) */
.msg-main-button.with-text {
    min-width: 140px;
    padding: 12px 16px;
    border-radius: 50px;
}

.msg-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.msg-main-button .msg-icon-emoji {
    font-size: 18px;
}

.msg-main-button .msg-text {
    font-size: 14px;
    font-weight: 600;
}

/* Контейнер с мессенджерами */
.msg-messengers {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    max-width: 300px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Контейнер для круглых иконок */
.msg-messengers.icon-only-mode {
    min-width: 200px;
    max-width: 250px;
    padding: 15px;
    text-align: center;
}

.msg-messengers.icon-only-mode .msg-icon {
    display: inline-flex;
    margin: 5px;
}

/* Заголовок */
.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.msg-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.msg-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.msg-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Иконки мессенджеров */
.msg-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Круглые иконки мессенджеров (без текста) */
.msg-icon.icon-only {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 5px;
    display: inline-flex;
}

.msg-icon.icon-only:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Прямоугольные иконки мессенджеров (с текстом) */
.msg-icon.with-text {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    justify-content: flex-start;
    background: none;
    box-shadow: none;
    margin: 0;
    display: flex;
}

.msg-icon.with-text:hover {
    background: #f8f9fa;
    transform: none;
}

.msg-icon:hover {
    background: #f8f9fa;
    color: #333;
}

.msg-icon i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Цвета иконок мессенджеров */
.msg-icon.whatsapp i {
    color: #25D366;
}

.msg-icon.telegram i {
    color: #0088cc;
}

.msg-icon.viber i {
    color: #7360f2;
}

.msg-icon.facebook i {
    color: #0084ff;
}

.msg-icon.instagram i {
    color: #E4405F;
}

.msg-icon.line i {
    color: #00B900;
}

.msg-icon.wechat i {
    color: #07C160;
}

.msg-icon.email i {
    color: #007bff;
}

.msg-icon.call i {
    color: #28a745;
}

.msg-icon.site_assistant i {
    color: #6f42c1;
}

/* Текст иконок */
.msg-text {
    font-size: 14px;
    font-weight: 500;
}

/* Футер */
.msg-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.msg-powered-by {
    font-size: 12px;
    color: #666;
}

.msg-powered-by a {
    color: #007bff;
    text-decoration: none;
}

.msg-powered-by a:hover {
    text-decoration: underline;
}

/* Модальное окно ассистента */
.msg-assistant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.msg-assistant-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.msg-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #6f42c1;
    color: white;
}

.msg-assistant-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.msg-assistant-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.msg-assistant-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.msg-assistant-body {
    padding: 20px;
}

.msg-assistant-body p {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 14px;
}

.msg-assistant-messages {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    background: #f8f9fa;
}

.msg-assistant-input {
    display: flex;
    gap: 8px;
}

.msg-assistant-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.msg-assistant-input input:focus {
    outline: none;
    border-color: #6f42c1;
}

.msg-assistant-input button {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.msg-assistant-input button:hover {
    background: #5a32a3;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-messengers {
    animation: slideIn 0.3s ease-out;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .msg-icons-container {
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        width: auto !important;
    }
    
    .msg-main-button {
        min-width: 50px !important;
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    .msg-main-button .msg-text {
        display: none !important;
    }
    
    .msg-messengers {
        min-width: 200px;
        max-width: 280px;
        right: 0;
        left: auto;
        position: absolute;
        bottom: 60px;
    }
    
    .msg-icon {
        padding: 12px 16px;
    }
    
    .msg-icon .msg-text {
        font-size: 14px;
    }
    
    .msg-header {
        padding: 12px 16px;
    }
    
    .msg-title {
        font-size: 14px;
    }
    
    .msg-footer {
        padding: 10px 16px;
    }
    
    .msg-assistant-content {
        width: 95%;
        max-width: 350px;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .msg-icons-container {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .msg-main-button {
        min-width: 120px;
        padding: 10px 14px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .msg-icons-container {
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .msg-main-button {
        width: 45px;
        height: 45px;
    }
    
    .msg-messengers {
        min-width: 180px;
        max-width: 250px;
        bottom: 55px;
    }
    
    .msg-icon {
        padding: 10px 14px;
    }
    
    .msg-icon .msg-text {
        font-size: 13px;
    }
    
    .msg-assistant-content {
        width: 98%;
        max-width: 320px;
    }
} 