#callback-widget {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
}


/* -----------------------------------------------------
   КНОПКА-ТРИГГЕР (Navbar Desktop + Mobile)
   ----------------------------------------------------- */
.cb-trigger {
    width: 32px;
    height: 32px;

    background: #b4b3b38d;
    border-radius: 50%;
    border: 2px solid #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    margin-left: 8px;

    pointer-events: auto;

    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    animation: cb-shake 3s infinite;
}

/* ИКОНКА ТРУБКИ (Line Awesome) */
.cb-trigger i {
    font-size: 17px;
    color: red !important; /* 🔴 ВСЕГДА КРАСНАЯ */
    line-height: 1;
    display: block;
}


/* -----------------------------------------------------
   АНИМАЦИЯ ТРЯСКИ
   ----------------------------------------------------- */
@keyframes cb-shake {
    0%   { transform: translateY(0) rotate(0deg); }
    5%   { transform: translateY(-2px) rotate(-10deg); }
    10%  { transform: translateY(2px) rotate(10deg); }
    15%  { transform: translateY(-2px) rotate(-8deg); }
    20%  { transform: translateY(2px) rotate(8deg); }
    25%  { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(0) rotate(0deg); }
}


/* -----------------------------------------------------
   ПАНЕЛЬ ВИДЖЕТА (ПО ЦЕНТРУ ЭКРАНА)
   ----------------------------------------------------- */
.cb-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 280px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;

    display: none;
    pointer-events: auto;

    z-index: 1000000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* Показ панели */
.cb-panel.cb-open {
    display: block;
}


/* -----------------------------------------------------
   ВНУТРЕННОСТИ ПАНЕЛИ
   ----------------------------------------------------- */
.cb-panel h4 {
    color: #000 !important;
    font-size: 18px;
    margin-bottom: 12px;
}

.cb-panel input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;

    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cb-panel button {
    width: 100%;
    padding: 10px;

    background: #4b4b4b;
    border: none;
    font-size: 17px;
    color: #ffffff;

    border-radius: 6px;
    cursor: pointer;
}

.cb-msg {
    margin-top: 10px;
    color: green;
    font-size: 14px;
}


/* ==============================
   MOBILE: phone + callback button
   ============================== */
@media (max-width: 1199px) {

    .mobile-phone-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        margin: 10px 0;
    }

    .mobile-phone-text {
        font-size: 1.1em;
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-cb-trigger {
        width: 28px;
        height: 28px;
        margin-left: 0;
        animation: none; /* убираем тряску на мобиле */
    }

    .mobile-cb-trigger i {
        font-size: 15px;
    }
}


