.chat-trigger {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 20px;
    padding: 10px;
    max-width: 190px;
    height: 56px;
    border-radius: 1rem;
    background: #446C43;
    color: #fff;
    font-size: 18px;
    border: none;
    cursor: pointer;
    z-index: 9999;
}
.chat-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.chat-logo img {
    max-width: 200px;   /* chỉnh to/nhỏ tại đây */
    height: auto;
    display: block;
}

#chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

#chat-popup {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: 20px;
    width: min(320px, 90vw);
    background: #000;
    color: #fff;
    border-radius: 24px;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: scale(.9);
    transition: .3s ease;
    z-index: 9999;
}

#chat-popup.active,
#chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

#chat-popup.active {
    transform: scale(1);
}

.chat-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
}

.chat-btn {
    display: block;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.chat-btn.whatsapp { background: #40c351; }
.chat-btn.messenger { background: #0a6cff; }

.chat-faq {
    display: block;
    background: #eee;
    color: #111;
    padding: 12px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
}
