/* Основная кнопка и контейнер */
.mfb-container { font-family: sans-serif; }
.mfb-container .mfb-main-btn {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.mfb-container .mfb-main-btn svg { width: 32px !important; height: 32px !important; display: block !important; }
.mfb-container .mfb-main-btn:hover { transform: scale(1.05); filter: brightness(0.85) !important; }

/* Всплывающее меню */
.mfb-popup {
    display: none; background: #fff; border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15); padding: 20px; width: 280px;
    position: absolute; box-sizing: border-box;
}
.mfb-popup.active { display: block !important; }
.mfb-popup.user-closed { display: none !important; }

.mfb-popup-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none;
    font-size: 24px; cursor: pointer; color: #999;
}
.mfb-popup h4 { margin: 0 0 15px 0; font-size: 16px; color: #333; }

/* Список мессенджеров */
.mfb-popup .mfb-list {
    list-style: none; margin: 0; padding: 0;
    overflow-x: hidden !important; scrollbar-width: none !important;
}
.mfb-popup .mfb-list::-webkit-scrollbar { display: none !important; }
.mfb-popup .mfb-list li { margin-bottom: 12px !important; }
.mfb-popup .mfb-list li:last-child { margin-bottom: 0 !important; }

.mfb-popup .mfb-list li a, 
.mfb-popup .mfb-list li button {
    display: flex !important; align-items: center !important; font-size: 16px !important;
    font-weight: 500 !important; text-decoration: none !important; color: #333 !important;
    background: transparent !important; border: none !important; padding: 0 !important;
    width: 100% !important; cursor: pointer !important;
}
.mfb-popup .mfb-list li a:hover, 
.mfb-popup .mfb-list li button:hover { opacity: 0.85; }

/* Круглые иконки */
.mfb-popup .mfb-list .mfb-icon-wrapper {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important;
    border-radius: 50% !important; margin-right: 15px !important; flex-shrink: 0 !important;
    padding: 0 !important; overflow: hidden !important;
}
.mfb-popup .mfb-list .mfb-icon-wrapper svg { width: 24px !important; height: 24px !important; display: block !important; }
.mfb-popup .mfb-list .mfb-icon-wrapper img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    display: block !important; border-radius: 50% !important; margin: 0 !important; padding: 0 !important;
}

/* Модальное окно заказа звонка */
.mfb-modal {
    display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; font-family: sans-serif;
}
.mfb-modal-content {
    background-color: #fff; padding: 30px; border-radius: 10px; width: 100%; max-width: 400px;
    position: relative; box-sizing: border-box; margin: auto;
}
.mfb-close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; }

#mfb-callback-form { display: flex; flex-direction: column; }
#mfb-callback-form label { margin-bottom: 5px; font-weight: bold; font-size: 14px; }
#mfb-callback-form input[type="tel"] {
    width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box;
}
#mfb-callback-form button[type="submit"] {
    padding: 12px; color: #fff; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; margin-top: 15px; width: 100%;
}

/* Чекбокс Политики конфиденциальности */
.mfb-policy-wrapper {
    font-size: 12px; margin-top: 5px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.3; color: #555;
}
.mfb-policy-wrapper input[type="checkbox"] {
    margin: 2px 0 0 0 !important; width: auto !important; cursor: pointer;
}
.mfb-response-msg { margin-top: 15px; font-size: 14px; text-align: center; }