
    /* ===== CHAT BUTTON ===== */  
.chat-button {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;
    background: #1e87f0;
    color: #fff;

    border-radius: 30px;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(30,135,240,.35);
    transition: background .2s ease, transform .2s ease;
}

.chat-button:hover {
    background: #0f7ae5;
}

/* Лёгкая анимация внимания */
.ai-pulse {
    animation: aiPulse 3.5s ease-in-out infinite;
}

@keyframes aiPulse {
    0%   { transform: translateY(0); }
    3%   { transform: translateY(-4px); }
    6%   { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.chat-text {
    font-weight: 500;
    white-space: nowrap;
}

/* ===== OFFCANVAS ===== */
#chat-offcanvas .uk-offcanvas-bar {
    height: 60vh;
    max-height: 480px;
    bottom: 80px;
    top: auto;
}

/* ===== DESKTOP ===== */
@media (min-width: 640px) {
    #chat-offcanvas .uk-offcanvas-bar {
        width: 360px;
        right: 20px;
        border-radius: 14px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 639px) {

    /* Кнопка — только иконка */
    .chat-button {
        justify-content: center;
        bottom: 125px;
        right: 15px;
    }

    /* .chat-text {
        display: none;
    } */

    /* Чат — полный экран */
    #chat-offcanvas .uk-offcanvas-bar {
        width: 100vw;
        height: 100vh;
        max-height: none;
        top: 0;
        right: 0;
        bottom: 125px;
        border-radius: 0;
    }

    /* iOS zoom fix */
    .chat-input input {
        font-size: 13px;
    }
}

