/* ==========================================================================
   Bong Bóng Chat Tư Vấn AI Chuẩn iOS 26 (vt-ai.css) - v2.27.1 / v1.5.1
   - Khung chat thu gọn, chống tràn màn hình 100% trên iPhone / Android
   - Chặn lỗi iOS Safari tự zoom khi bấm ô nhập (font-size: 16px)
   - Chống CSS của theme Flatsome đè padding/min-height lên các nút
   - Nút X đóng khung chat lớn gấp 2 lần (44x44px, icon X 24x24px sắc nét)
   ========================================================================== */

.vt-aib-widget,
.vt-aib-page-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    line-height: 1.45;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.vt-aib-widget *,
.vt-aib-page-wrap * {
    box-sizing: border-box;
}

/* 1. KHUNG NÚT NỔI GÓC DƯỚI PHẢI - CĂN THẲNG HÀNG TUYỆT ĐỐI */
.vt-aib-widget {
    position: fixed;
    right: var(--vt-aib-right, 10px);
    bottom: var(--vt-aib-bottom, 150px);
    z-index: 99990;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.vt-aib-launcher {
    position: relative;
    width: var(--vt-aib-size, 56px) !important;
    height: var(--vt-aib-size, 56px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    background: linear-gradient(180deg, #ff3355 0%, #ee0033 55%, #cc0029 100%) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    box-shadow:
        inset 0 1.5px 2.5px rgba(255, 255, 255, 0.65),
        inset 0 -2.5px 5px rgba(120, 0, 20, 0.35),
        0 6px 18px rgba(238, 0, 51, 0.32),
        0 2px 5px rgba(15, 23, 42, 0.14) !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.vt-aib-launcher::before,
.vt-ios26-upgraded-btn::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 12%;
    width: 76%;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 999px 999px 40% 40%;
    pointer-events: none;
    z-index: 1;
}

.vt-aib-launcher:hover {
    transform: translateY(-2px) scale(1.04);
}

.vt-aib-launcher:active {
    transform: scale(0.95);
}

.vt-aib-launcher-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64%;
    height: 64%;
    line-height: 1;
}

.vt-aib-ios26-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Nâng cấp đồng bộ 2 nút nổi có sẵn trên web (Phone & Message/Zalo) sang chuẩn iOS 26 Liquid Glass */
.vt-ios26-upgraded-btn {
    position: relative;
    overflow: hidden !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.vt-ios26-upgraded-btn.is-ios26-phone {
    background: linear-gradient(180deg, #ff3355 0%, #ee0033 55%, #cc0029 100%) !important;
    box-shadow:
        inset 0 1.5px 2.5px rgba(255, 255, 255, 0.65),
        inset 0 -2.5px 5px rgba(120, 0, 20, 0.35),
        0 6px 18px rgba(238, 0, 51, 0.32),
        0 2px 5px rgba(15, 23, 42, 0.14) !important;
}

.vt-ios26-upgraded-btn.is-ios26-msg {
    background: linear-gradient(180deg, #2693ff 0%, #0068ff 58%, #0051cc 100%) !important;
    box-shadow:
        inset 0 1.5px 2.5px rgba(255, 255, 255, 0.65),
        inset 0 -2.5px 5px rgba(0, 35, 110, 0.35),
        0 6px 18px rgba(0, 104, 255, 0.32),
        0 2px 5px rgba(15, 23, 42, 0.14) !important;
}

.vt-ios26-upgraded-btn:hover {
    transform: translateY(-2px) scale(1.04) !important;
}

.vt-ios26-upgraded-btn .vt-ios26-inner-icon {
    position: relative;
    z-index: 2;
    width: 62% !important;
    height: 62% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none;
}

.vt-ios26-upgraded-btn .vt-ios26-inner-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Huy hiệu thông báo tin nhắn lời chào mới (Unread Badge chuẩn iOS) */
.vt-aib-unread[hidden] {
    display: none !important;
}
.vt-aib-unread {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #34c759;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
    animation: vtAibBadgePop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vtAibBadgePop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bong bóng lời chào tự động sau X giây (iOS 26 Glass Notification Bubble) */
.vt-aib-teaser[hidden] {
    display: none !important;
}
.vt-aib-teaser {
    position: absolute;
    right: calc(var(--vt-aib-size, 56px) + 12px);
    bottom: 2px;
    width: 256px;
    max-width: calc(100vw - 92px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
    padding: 10px 12px;
    line-height: 1.42;
    color: #1c1c1e;
    z-index: 99992;
    animation: vtAibTeaserIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vtAibTeaserIn {
    from { opacity: 0; transform: translateX(10px) translateY(6px) scale(0.94); }
    to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

.vt-aib-teaser-body {
    cursor: pointer;
    padding-right: 22px;
}

.vt-aib-teaser-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 11.5px;
    color: #0f172a;
}

.vt-aib-teaser-head strong {
    font-weight: 800;
    color: #e0002b;
}

.vt-aib-teaser-head small {
    color: #64748b;
    font-size: 10.5px;
    margin-left: auto;
}

.vt-aib-teaser-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34c759;
    flex-shrink: 0;
}

.vt-aib-teaser-text {
    font-size: 12.8px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vt-aib-teaser-close {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.vt-aib-teaser-close:hover {
    background: #fee2e2 !important;
    color: #e0002b !important;
}

/* 2. CỬA SỔ POPUP BONG BÓNG CHAT (THU NHỎ GỌN GÀNG, KHÔNG TRÀN MÀN HÌNH) */
.vt-aib-popup[hidden] {
    display: none !important;
}

.vt-aib-popup {
    position: fixed;
    right: calc(var(--vt-aib-right, 10px) + var(--vt-aib-size, 56px) + 12px);
    bottom: 20px;
    width: 340px;
    max-width: calc(100vw - 24px);
    height: 460px;
    max-height: calc(100vh - 90px);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24), 0 4px 12px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    animation: vtAibPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99998;
    line-height: 1.45;
}

@keyframes vtAibPop {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chế độ hiển thị giữa trang khi vào thẳng /tu-van-ai/ */
.svt-ai-main {
    background: #f8fafc;
    padding: 20px 12px 40px;
}
.vt-aib-page-wrap {
    max-width: 520px;
    margin: 0 auto;
}
.vt-aib-page-card {
    height: 540px;
    max-height: 80vh;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 3. HEADER KHUNG CHAT + NÚT ĐÓNG CHỮ X LỚN GẤP 2 LẦN (44x44px) */
.vt-aib-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ff3355 0%, #d70026 100%);
    color: #ffffff;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
}

.vt-aib-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.vt-aib-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}

.vt-aib-title {
    font-size: 13.8px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-aib-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 5px;
}

.vt-aib-dot {
    width: 7px;
    height: 7px;
    background: #34c759;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.8);
    flex-shrink: 0;
}

.vt-aib-head-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Chặn hoàn toàn CSS button mặc định của Flatsome (padding/min-height/margin) */
.vt-aib-icon-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

.vt-aib-icon-btn svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
}

/* Nút Đóng chữ X lớn gấp 2 lần (44x44px, icon X 24x24px nét đậm) */
.vt-aib-icon-btn.vt-aib-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.vt-aib-icon-btn.vt-aib-close svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    stroke-width: 3 !important;
    stroke: #ffffff !important;
}

.vt-aib-icon-btn:hover {
    background: rgba(255, 255, 255, 0.38) !important;
    transform: scale(1.05);
}

/* 4. DANH SÁCH TIN NHẮN */
.vt-aib-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 12px 10px;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
    gap: 9px;
    scroll-behavior: smooth;
    width: 100%;
}

.vt-aib-msg {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 92%;
    min-width: 0;
}

.vt-aib-msg.is-user {
    align-self: flex-end;
    max-width: 84%;
}

.vt-aib-bubble {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px 16px 16px 4px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: #1c1c1e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vt-aib-msg.is-user .vt-aib-bubble {
    background: linear-gradient(180deg, #ff3355 0%, #e0002b 100%);
    color: #ffffff;
    border-color: transparent;
    border-radius: 16px 16px 4px 16px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(224, 0, 43, 0.2);
}

.vt-aib-bubble p {
    margin: 0 0 5px;
}
.vt-aib-bubble p:last-child {
    margin: 0;
}
.vt-aib-bubble code {
    background: #fff1f2;
    color: #be123c;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 12px;
}

/* Typing dots */
.vt-aib-typing {
    display: inline-flex;
    gap: 4px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    width: fit-content;
}
.vt-aib-typing span {
    width: 6px;
    height: 6px;
    background: #8e8e93;
    border-radius: 50%;
    animation: vtAibDot 1.2s infinite ease-in-out;
}
.vt-aib-typing span:nth-child(2) { animation-delay: 0.15s; }
.vt-aib-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes vtAibDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* 5. THẺ GÓI CƯỚC SIÊU GỌN TRONG BONG BÓNG CHAT */
.vt-aib-cards {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.vt-aib-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 9px 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    max-width: 100%;
    overflow: hidden;
}
.vt-aib-card.is-top {
    border-color: #fda4af;
}

.vt-aib-card-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.vt-aib-card-name {
    font-size: 13.8px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
}
.vt-aib-card-name a {
    color: inherit;
    text-decoration: none;
}

.vt-aib-tag {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1.5px 6px;
    border-radius: 999px;
    white-space: nowrap;
}
.vt-aib-tag.uni { background: #dcfce7; color: #166534; }
.vt-aib-tag.promo { background: #fef3c7; color: #92400e; }
.vt-aib-tag.inet { background: #dbeafe; color: #1e40af; }

.vt-aib-card-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #e0002b;
}
.vt-aib-card-price small {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
}

.vt-aib-card-desc {
    font-size: 12px;
    color: #334155;
    margin-bottom: 7px;
}

.vt-aib-cycles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 7px;
}
.vt-aib-cyc {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    padding: 4px 2px !important;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer;
    text-align: center;
    line-height: 1.25 !important;
}
.vt-aib-cyc.active {
    background: #fff1f2 !important;
    border-color: #e0002b !important;
    color: #e0002b !important;
}

.vt-aib-card-foot {
    display: flex;
    gap: 6px;
    align-items: center;
}

.vt-aib-reg-btn {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, #ff3355 0%, #e0002b 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 9px;
    padding: 6.5px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.vt-aib-reg-btn:hover {
    opacity: 0.94;
}
.vt-aib-reg-btn small {
    font-size: 10px;
    font-weight: 500;
    color: #ffe4e6;
}
.vt-aib-reg-btn.is-sms-pill {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
    border-radius: 999px !important;
    padding: 7px 8px 7px 12px !important;
    background: linear-gradient(90deg, #dc1424 0%, #f43f5e 100%) !important;
    box-shadow: 0 5px 14px rgba(220, 20, 36, 0.28) !important;
}
.vt-aib-reg-btn.is-sms-pill .vt-aib-sms-ico {
    flex: 0 0 auto;
    color: #fff !important;
}
.vt-aib-reg-btn.is-sms-pill .vt-aib-sms-lbl {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #fff !important;
    white-space: nowrap;
}
.vt-aib-reg-btn.is-sms-pill .vt-aib-sms-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #fff !important;
    color: #dc1424 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
.vt-aib-reg-btn.is-sms-pill .vt-aib-sms-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    flex: 0 0 auto;
}
.vt-aib-reg-btn.is-zalo {
    background: linear-gradient(180deg, #2693ff 0%, #0068ff 100%);
}

.vt-aib-copy-btn {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 6px 8px !important;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    flex-shrink: 0;
}
.vt-aib-copy-btn:hover {
    background: #e2e8f0 !important;
}

/* 6. Ô NHẬP CÂU HỎI (font-size: 16px chặn iOS Safari tự động zoom làm tràn màn hình) */
.vt-aib-form {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #ffffff;
    border-top: 1px solid #e5e5ea;
    flex-shrink: 0;
    margin: 0 !important;
    width: 100%;
}

.vt-aib-input {
    flex: 1;
    min-width: 0 !important;
    border: 1px solid #d1d1d6 !important;
    border-radius: 999px !important;
    padding: 7px 13px !important;
    font-size: 16px !important; /* Bắt buộc >= 16px để iPhone Safari không tự phóng to màn hình */
    color: #1c1c1e !important;
    background: #f2f2f7 !important;
    outline: none !important;
    margin: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    box-shadow: none !important;
}
.vt-aib-input:focus {
    border-color: #ff3355 !important;
    background: #ffffff !important;
}

.vt-aib-send {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #ff3355 0%, #e0002b 100%) !important;
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.vt-aib-send svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
}
.vt-aib-send:hover {
    transform: scale(1.05);
}
.vt-aib-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Toast thông báo sao chép */
.vt-aib-toast[hidden] {
    display: none !important;
}
.vt-aib-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    white-space: nowrap;
    line-height: 1.4;
}

/* 7. THU NHỎ KHUNG CHAT GỌN GÀNG TRÊN ĐIỆN THOẠI (KHÔNG TRÀN MÀN HÌNH, KHÔNG ĐÈ THANH MENU ĐÁY) */
@media (max-width: 640px) {
    .vt-aib-popup {
        right: 12px !important;
        left: auto !important;
        bottom: 68px !important;
        width: min(325px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        height: min(415px, calc(100vh - 135px)) !important;
        max-height: calc(100dvh - 135px) !important;
        border-radius: 18px !important;
    }
    .vt-aib-teaser {
        width: 235px;
        max-width: calc(100vw - 88px);
    }
}

.vt-aib-widget button:focus-visible,.vt-aib-widget a:focus-visible,.vt-aib-widget input:focus-visible{outline:2px solid #ee0033;outline-offset:2px}
