/**
 * LASER BEND — стилизация виджета Yourgood (WhatsApp / Telegram)
 * Внешний вид в духе тёмного Apple-style сайта
 */

/* Плавающая кнопка — тёмное стекло вместо ярко-зелёной */
[class*="launcher"],
[class*="Launcher"],
[class*="floating"],
[class*="FloatingButton"],
[class*="widget-button"],
button[class*="whatsapp"],
a[class*="whatsapp"][class*="widget"],
div[class*="Widget"] > button,
div[class*="widget"] > a[role="button"] {
    background: linear-gradient(145deg, #1e1e22 0%, #0b0b0c 100%) !important;
    border: 1px solid rgba(255, 87, 34, 0.45) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

[class*="launcher"]:hover,
[class*="Launcher"]:hover,
[class*="floating"]:hover,
button[class*="whatsapp"]:hover {
    transform: scale(1.05) !important;
    border-color: rgba(255, 87, 34, 0.75) !important;
    box-shadow: 0 16px 48px rgba(255, 87, 34, 0.2) !important;
}

/* Окно виджета — тёмная тема */
[class*="modal"],
[class*="Modal"],
[class*="popup"],
[class*="Popup"],
[class*="panel"],
[class*="Panel"],
iframe[src*="yourgood"] {
    border-radius: 22px !important;
}

/* Типографика внутри виджета (если не в iframe) */
[class*="modal"] h1,
[class*="modal"] h2,
[class*="Modal"] h1,
[class*="widget"] h1,
[class*="widget"] h2,
[class*="Widget"] p {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #f5f5f7 !important;
}

/* Карточки QR и кнопок мессенджеров */
[class*="modal"] [class*="card"],
[class*="Modal"] [class*="Card"],
[class*="widget"] [class*="container"] {
    background: #161618 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
}

/* Кнопки WhatsApp / Telegram в попапе */
[class*="modal"] a[href*="whatsapp"],
[class*="modal"] button[class*="whatsapp"],
[class*="WhatsApp"] {
    background: linear-gradient(145deg, #ff5722 0%, #e64a19 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35) !important;
}

[class*="modal"] a[href*="t.me"],
[class*="modal"] button[class*="telegram"],
[class*="Telegram"] {
    background: linear-gradient(145deg, #0071e3 0%, #005bb5 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Блок с телефоном */
[class*="modal"] [class*="phone"],
[class*="phone"] a,
[class*="Phone"] {
    background: #1e1e22 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    color: #fff !important;
}

/* Скрыть брендинг «made in yourgood» — опционально, при необходимости */
[class*="made"],
[class*="branding"],
a[href*="yourgood.app"][target="_blank"]:not([href*="whatsapp"]):not([href*="t.me"]) {
    opacity: 0.35 !important;
    font-size: 10px !important;
}

/* Наша запасная кнопка (если виджет не подхватил стили) */
.lb-wa-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e1e22, #0b0b0c);
    border: 1px solid rgba(255, 87, 34, 0.5);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    color: #ff5722;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.lb-wa-fab:hover {
    transform: scale(1.06);
    border-color: #ff5722;
    color: #fff;
    background: linear-gradient(145deg, #ff5722, #e64a19);
}

.lb-wa-fab svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .lb-wa-fab {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}
