#vclc-root,
#vclc-root * {
    box-sizing: border-box;
}

#vclc-root {
    --vclc-accent: #d50032;
    --vclc-bottom-desktop: 24px;
    --vclc-bottom-mobile: 104px;
    --vclc-side-desktop: 116px;
    --vclc-side-mobile: 14px;
    position: fixed;
    bottom: var(--vclc-bottom-desktop);
    width: 0;
    height: 0;
    z-index: 2147482000;
    color: #20242d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    pointer-events: none;
}

#vclc-root.vclc-right { right: var(--vclc-side-desktop); }
#vclc-root.vclc-left { left: var(--vclc-side-desktop); }

#vclc-root button,
#vclc-root input,
#vclc-root textarea,
#vclc-root a,
#vclc-root .vclc-panel,
#vclc-root .vclc-proactive {
    pointer-events: auto;
}

#vclc-root button,
#vclc-root input,
#vclc-root textarea {
    box-shadow: none;
    font: inherit;
    text-transform: none;
}

#vclc-root button { letter-spacing: normal; }
#vclc-root svg { display: block; }

#vclc-root .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#vclc-root .vclc-launcher {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    width: 222px;
    min-width: 222px;
    height: 60px;
    min-height: 60px;
    padding: 0 18px 0 12px;
    border: 2px solid #fff;
    border-radius: 19px;
    background: var(--vclc-accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--vclc-accent) 88%, #ff3457), var(--vclc-accent));
    box-shadow: 0 12px 32px rgba(165, 0, 38, .29);
    color: #fff;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    isolation: isolate;
}

#vclc-root.vclc-left .vclc-launcher { right: auto; left: 0; }
#vclc-root .vclc-launcher:hover { filter: brightness(.94); transform: translateY(-2px); }
#vclc-root .vclc-launcher-icon {
    display: grid;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    place-items: center;
    background: rgba(255, 255, 255, .16);
}

#vclc-root .vclc-launcher-copy {
    display: flex;
    min-width: 0;
    text-align: left;
    flex-direction: column;
}

#vclc-root .vclc-launcher-copy strong {
    font-size: 15px;
    line-height: 1.15;
}

#vclc-root .vclc-launcher-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    line-height: 1.1;
}

#vclc-root .vclc-launcher-pulse {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #33c46b;
}

#vclc-root .vclc-launcher-pulse::after {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(51, 196, 107, .55);
    border-radius: 50%;
    animation: vclc-pulse 1.8s infinite;
    content: "";
}

@keyframes vclc-pulse {
    0% { opacity: .8; transform: scale(.65); }
    75%, 100% { opacity: 0; transform: scale(1.5); }
}

#vclc-root .vclc-proactive {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(350px, calc(100vw - 30px));
    max-height: 245px;
    padding: 15px 16px;
    overflow-y: auto;
    border: 1px solid rgba(213, 0, 50, .16);
    border-radius: 18px 18px 5px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(26, 30, 39, .2);
    animation: vclc-pop .22s ease-out;
}

#vclc-root.vclc-left .vclc-proactive { right: auto; left: 0; border-radius: 15px 15px 15px 4px; }
#vclc-root .vclc-proactive[hidden] { display: none; }
#vclc-root .vclc-proactive strong { display: block; padding-right: 22px; color: var(--vclc-accent); }
#vclc-root .vclc-proactive p { margin: 7px 0 12px; color: #333943; font-size: 13px; white-space: normal; }

#vclc-root .vclc-proactive-close {
    position: absolute;
    top: 6px;
    right: 7px;
    display: grid;
    width: 27px;
    min-width: 27px;
    height: 27px;
    min-height: 27px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    background: #f2f3f5;
    color: #4e5561;
    cursor: pointer;
    font-size: 18px;
}

#vclc-root .vclc-proactive-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
#vclc-root .vclc-proactive-chat {
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 18px;
    background: var(--vclc-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}
#vclc-root .vclc-proactive-actions a { color: var(--vclc-accent); font-size: 12px; font-weight: 700; text-decoration: none; }

@keyframes vclc-pop {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#vclc-root .vclc-launcher:focus-visible,
#vclc-root button:focus-visible,
#vclc-root input:focus-visible,
#vclc-root textarea:focus-visible,
#vclc-root a:focus-visible {
    outline: 3px solid rgba(0, 121, 211, .38);
    outline-offset: 2px;
}

#vclc-root .vclc-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(384px, calc(100vw - 28px));
    height: min(590px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid rgba(26, 30, 39, .13);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 24px 68px rgba(26, 30, 39, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

#vclc-root .vclc-brand-beacon {
    display: none !important;
    position: absolute;
    min-width: 124px;
    height: 44px;
    padding: 0 18px;
    border: 2px solid rgba(213, 0, 50, .2);
    border-radius: 23px;
    place-items: center;
    background: #fff;
    box-shadow: 0 10px 28px rgba(165, 0, 38, .19);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.92);
    transition: opacity .18s ease, transform .18s ease;
}

#vclc-root .vclc-brand-beacon img {
    display: block;
    width: 92px;
    max-width: 100%;
    height: auto;
}

#vclc-root.vclc-left .vclc-brand-beacon { right: auto; left: 18px; }
#vclc-root.vclc-open .vclc-brand-beacon { opacity: 1; transform: translateY(0) scale(1); }
#vclc-root .vclc-brand-beacon::before,
#vclc-root .vclc-brand-beacon::after {
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(213, 0, 50, .24);
    border-radius: inherit;
    animation: vclc-brand-pulse 2.1s infinite;
    content: "";
}
#vclc-root .vclc-brand-beacon::after { animation-delay: .7s; }
@keyframes vclc-brand-pulse {
    0% { opacity: .65; transform: scale(.92); }
    75%, 100% { opacity: 0; transform: scale(1.18); }
}

#vclc-root.vclc-left .vclc-panel { right: auto; left: 0; transform-origin: bottom left; }
#vclc-root.vclc-open .vclc-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#vclc-root.vclc-open .vclc-launcher,
#vclc-root.vclc-open .vclc-proactive { visibility: hidden; pointer-events: none; }

#vclc-root .vclc-header {
    display: flex;
    min-height: 66px;
    padding: 10px 12px;
    background: var(--vclc-accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--vclc-accent) 88%, #ff3457), var(--vclc-accent));
    color: #fff;
    align-items: center;
}

#vclc-root .vclc-header-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
#vclc-root .vclc-header-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
#vclc-root .vclc-header-copy small { display: flex; margin-top: 2px; color: rgba(255, 255, 255, .92); align-items: center; gap: 5px; font-size: 11px; }
#vclc-root .vclc-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #72e28a; }
#vclc-root .vclc-online-dot.is-offline { background: #ffd369; }

#vclc-root .vclc-header-action {
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin-left: 3px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    place-items: center;
    background: #fff;
    box-shadow: 0 2px 7px rgba(71, 0, 17, .18);
    color: #b0002d;
    cursor: pointer;
    text-decoration: none;
}
#vclc-root .vclc-header-action:hover { border-color: #fff; background: #fff5f7; color: #8e0025; transform: translateY(-1px); }
#vclc-root .vclc-resize { background: #fff; color: #8f1233; }
#vclc-root .vclc-header-call { border-color: #fff; background: #fff; color: #e4002b; }
#vclc-root .vclc-header-call:hover { background: #ffe8ed; color: #bd0024; }
#vclc-root .vclc-header-feedback { background: #fff5d9; color: #9a5700; }
#vclc-root .vclc-icon-contract { display: none; }
#vclc-root .vclc-resize.is-expanded .vclc-icon-expand { display: none; }
#vclc-root .vclc-resize.is-expanded .vclc-icon-contract { display: block; }

#vclc-root .vclc-close {
    display: grid;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    place-items: center;
    background: #7e0020;
    box-shadow: 0 2px 7px rgba(71, 0, 17, .24);
    color: #fff;
    cursor: pointer;
}
#vclc-root .vclc-close:hover { background: #590017; transform: translateY(-1px); }

#vclc-root .vclc-start-screen {
    height: calc(100% - 66px);
    padding: 15px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff 0%, #f7f8fa 26%);
    overscroll-behavior: contain;
}

#vclc-root .vclc-start-form { display: grid; min-height: 100%; align-content: center; gap: 12px; }
#vclc-root .vclc-start-intro {
    padding: 18px 16px;
    border: 1px solid rgba(213, 0, 50, .13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 30, 39, .08);
    text-align: center;
}
#vclc-root .vclc-start-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 15px;
    place-items: center;
    background: color-mix(in srgb, var(--vclc-accent) 10%, #fff);
    font-size: 23px;
}
#vclc-root .vclc-start-intro p { margin: 0; color: #323741; font-size: 12.5px; line-height: 1.55; }
#vclc-root .vclc-new-conversation {
    display: flex;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    align-items: center;
    justify-content: space-between;
    background: var(--vclc-accent);
    box-shadow: 0 10px 24px rgba(213, 0, 50, .22);
    color: #fff;
    cursor: pointer;
    text-align: left;
}
#vclc-root .vclc-new-conversation span:first-child { display: flex; min-width: 0; flex-direction: column; }
#vclc-root .vclc-new-conversation strong { font-size: 14px; }
#vclc-root .vclc-new-conversation small { margin-top: 4px; color: rgba(255,255,255,.86); font-size: 10.5px; }
#vclc-root .vclc-new-conversation:disabled { cursor: wait; opacity: .68; }

#vclc-root .vclc-greeting {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 4px 13px 13px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(26, 30, 39, .07);
    font-size: 13px;
}

#vclc-root .vclc-quick-options {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 6px 0 4px;
    padding: 2px 3px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--vclc-accent) #e3e7ed;
    scrollbar-width: auto;
    scroll-snap-type: x proximity;
    scrollbar-gutter: stable;
    cursor: grab;
    gap: 7px;
}

#vclc-root .vclc-customer-quick-replies {
    min-width: 0;
    overflow: hidden;
    flex: 0 0 auto;
    padding: 8px 10px 2px;
    border-top: 1px solid #eceff3;
    background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
}

#vclc-root .vclc-customer-quick-replies[hidden] { display: none !important; }

#vclc-root .vclc-quick-replies-title {
    padding: 0 3px 2px;
    color: #414854;
    font-size: 11px;
    font-weight: 800;
}

#vclc-root .vclc-quick-replies-title::after { margin-left: 6px; color: var(--vclc-accent); content: "Kéo ngang để xem thêm ↔"; font-size: 9.5px; font-weight: 750; white-space: nowrap; }

#vclc-root .vclc-quick-options:active { cursor: grabbing; }

#vclc-root .vclc-quick-options::-webkit-scrollbar { height: 10px; }
#vclc-root .vclc-quick-options::-webkit-scrollbar-track { border-radius: 8px; background: #e3e7ed; }
#vclc-root .vclc-quick-options::-webkit-scrollbar-thumb {
    min-width: 44px;
    border: 2px solid #e3e7ed;
    border-radius: 8px;
    background: var(--vclc-accent);
}

#vclc-root .vclc-quick-option {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--vclc-accent) 30%, #d9dde4);
    border-radius: 16px;
    background: #fff;
    color: #333943;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    scroll-snap-align: start;
}

#vclc-root .vclc-quick-option:hover { border-color: var(--vclc-accent); color: var(--vclc-accent); }
#vclc-root .vclc-quick-option:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--vclc-accent) 45%, transparent);
    outline-offset: 2px;
}

#vclc-root .vclc-start-form label { display: block; margin: 0 0 9px; color: #313640; font-size: 12px; font-weight: 650; }
#vclc-root .vclc-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
#vclc-root .vclc-turnstile { min-height: 1px; overflow: hidden; }
#vclc-root .vclc-turnstile iframe { max-width: 100% !important; }
#vclc-root .vclc-start-form label span { color: var(--vclc-accent); }
#vclc-root .vclc-start-form input,
#vclc-root .vclc-start-form textarea {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    border: 1px solid #cfd3da;
    border-radius: 8px;
    background: #fff;
    color: #222;
    outline: 0;
}
#vclc-root .vclc-start-form input { min-height: 38px; padding: 0 10px; }
#vclc-root .vclc-start-form textarea { min-height: 62px; padding: 8px 10px; resize: vertical; }
#vclc-root .vclc-start-form input:focus,
#vclc-root .vclc-start-form textarea:focus { border-color: var(--vclc-accent); }

#vclc-root .vclc-primary {
    width: 100%;
    min-height: 41px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: var(--vclc-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 750;
}
#vclc-root .vclc-primary:disabled,
#vclc-root .vclc-reply-form button:disabled { cursor: wait; opacity: .6; }
#vclc-root .vclc-form-error { margin: 0 0 9px; padding: 8px 9px; border-radius: 7px; background: #fff0f2; color: #b60029; font-size: 12px; }
#vclc-root .vclc-privacy { margin: 10px 0 0; color: #686d77; font-size: 10px; text-align: center; }
#vclc-root .vclc-privacy a { color: var(--vclc-accent); }

#vclc-root .vclc-chat-screen { display: grid; width: 100%; height: calc(100% - 66px); min-width: 0; min-height: 0; overflow: hidden; grid-template-rows: minmax(0, 1fr) auto auto auto; background: #f4f5f7; }
#vclc-root .vclc-chat-screen[hidden],
#vclc-root .vclc-start-screen[hidden] { display: none; }
#vclc-root .vclc-messages { min-width: 0; min-height: 0; padding: 14px 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
#vclc-root .vclc-message { display: flex; margin: 0 0 9px; flex-direction: column; align-items: flex-start; }
#vclc-root .vclc-message.vclc-message-visitor { align-items: flex-end; }
#vclc-root .vclc-message-bubble { max-width: 84%; padding: 9px 11px; border-radius: 4px 13px 13px; background: #fff; box-shadow: 0 2px 9px rgba(26, 30, 39, .07); overflow-wrap: anywhere; white-space: pre-wrap; }
#vclc-root .vclc-message-image { display: block; width: min(230px, 100%); max-height: 250px; border-radius: 9px; object-fit: cover; }
#vclc-root .vclc-message-location { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#vclc-root .vclc-message-file { display: inline-flex; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; align-items: center; gap: 4px; }
#vclc-root .vclc-typing-status { padding: 4px 11px; background: #fff; color: #737984; font-size: 10px; }
#vclc-root .vclc-typing-status[hidden] { display: none; }
#vclc-root .vclc-typing-status span { display: inline-block; width: 4px; height: 4px; margin-right: 2px; border-radius: 50%; background: var(--vclc-accent); animation: vclcTyping 1s infinite alternate; }
#vclc-root .vclc-typing-status span:nth-child(2) { animation-delay: .2s; }
#vclc-root .vclc-typing-status span:nth-child(3) { animation-delay: .4s; }
@keyframes vclcTyping { to { opacity: .25; transform: translateY(-2px); } }
#vclc-root .vclc-message-visitor .vclc-message-bubble { border-radius: 13px 4px 13px 13px; background: var(--vclc-accent); color: #fff; }
#vclc-root .vclc-message-time { margin-top: 3px; color: #858a93; font-size: 9px; }
#vclc-root .vclc-message-meta { display: flex; margin-top: 3px; align-items: center; gap: 7px; }
#vclc-root .vclc-message-visitor .vclc-message-meta { flex-direction: row-reverse; }
#vclc-root .vclc-message-meta .vclc-message-time { margin-top: 0; }
#vclc-root .vclc-message-share {
    min-height: 0;
    padding: 1px 2px;
    border: 0;
    background: transparent;
    color: #747b86;
    cursor: pointer;
    font-size: 9px;
    line-height: 1.2;
}
#vclc-root .vclc-message-share:hover { color: var(--vclc-accent); text-decoration: underline; }
#vclc-root .vclc-closed-notice { padding: 9px 11px; border-top: 1px solid #e1e3e7; background: #fff8e7; color: #63542a; font-size: 11px; text-align: center; }
#vclc-root .vclc-closed-notice[hidden] { display: none; }
#vclc-root .vclc-new-chat { margin-left: 4px; padding: 0; border: 0; background: transparent; color: var(--vclc-accent); cursor: pointer; font-weight: 700; text-decoration: underline; }

#vclc-root .vclc-reply-form { position: relative; z-index: 3; display: grid; width: 100%; min-width: 0; padding: 8px; border-top: 1px solid #e1e3e7; background: #fff; grid-template-columns: auto minmax(0, 1fr) 40px; gap: 7px; }
#vclc-root .vclc-reply-form[hidden] { display: none; }
#vclc-root .vclc-composer-tools { display: flex; align-items: center; gap: 3px; }
#vclc-root .vclc-tool-button { width: 27px !important; min-width: 27px !important; height: 27px !important; min-height: 27px !important; border: 1px solid #e3a6b3 !important; background: #fff !important; color: var(--vclc-accent) !important; font-size: 17px; }
#vclc-root .vclc-attachment-preview { position: absolute; right: 6px; bottom: calc(100% + 6px); left: 6px; z-index: 4; display: grid; min-height: 72px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 7px; border: 1px solid #e1e3e7; border-radius: 11px; background: #f8f9fb; box-shadow: 0 5px 18px rgba(0,0,0,.12); }
#vclc-root .vclc-attachment-preview[hidden] { display: none; }
#vclc-root .vclc-preview-list { grid-column: 1 / -1; display: flex; max-width: 100%; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; }
#vclc-root .vclc-preview-item { flex: 0 0 48px; height: 48px; overflow: hidden; border-radius: 8px; background: #e5e7eb; }
#vclc-root .vclc-preview-item img { width: 100%; height: 100%; object-fit: cover; }
#vclc-root .vclc-preview-name { overflow: hidden; color: #4b5563; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#vclc-root .vclc-attachment-preview button { width: auto; min-width: 0; height: 32px; min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 11px; }
#vclc-root .vclc-preview-cancel { border: 1px solid #d4d7dd !important; background: #fff !important; color: #374151 !important; }
#vclc-root .vclc-phone-link { color: #0068c9; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* 2.3.13.11: link trang web trong tin, bấm mở tab mới; link dài tự xuống dòng không tràn bong bóng. */
#vclc-root .vclc-web-link { color: #0068c9; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
#vclc-root .vclc-message-visitor .vclc-web-link { color: inherit; }
#vclc-root.vclc-expanded .vclc-panel { width: min(760px, calc(100vw - 40px)); height: min(760px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); }

@media (min-width: 783px) {
    #vclc-root .vclc-header-call,
    #vclc-root .vclc-header-feedback { display: none !important; }
    #vclc-root .vclc-panel { box-shadow: 0 20px 55px rgba(43, 10, 22, .22); }
}
#vclc-root .vclc-reply-form textarea { width: 100%; max-height: 88px; min-height: 40px; margin: 0; padding: 9px 10px; resize: none; border: 1px solid #d4d7dd; border-radius: 9px; background: #fff; color: #222; outline: 0; }
#vclc-root .vclc-reply-form button { display: grid; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; place-items: center; background: var(--vclc-accent); color: #fff; cursor: pointer; }

@media (max-width: 782px) {
    #vclc-root { bottom: calc(var(--vclc-bottom-mobile) + env(safe-area-inset-bottom, 0px)); }
    #vclc-root.vclc-right { right: var(--vclc-side-mobile); }
    #vclc-root.vclc-left { left: var(--vclc-side-mobile); }
    #vclc-root .vclc-launcher {
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        border-width: 3px;
        border-radius: 50%;
        justify-content: center;
    }
    #vclc-root .vclc-launcher-icon { width: 32px; min-width: 32px; height: 32px; background: transparent; }
    #vclc-root .vclc-launcher-copy { display: none; }
    #vclc-root .vclc-panel {
        position: fixed;
        right: 12px;
        bottom: calc(var(--vclc-bottom-mobile) + env(safe-area-inset-bottom, 0px));
        left: auto;
        width: min(390px, calc(100vw - 24px));
        height: min(480px, 60dvh);
        min-height: min(350px, calc(100dvh - var(--vclc-bottom-mobile) - env(safe-area-inset-bottom, 0px) - 16px));
        max-height: calc(100dvh - var(--vclc-bottom-mobile) - env(safe-area-inset-bottom, 0px) - 16px);
        border-radius: 17px;
    }
    #vclc-root.vclc-left .vclc-panel { right: auto; left: 12px; }
    #vclc-root .vclc-brand-beacon {
        right: 10px;
        bottom: min(442px, calc(100dvh - var(--vclc-bottom-mobile) - 13px));
        min-width: 92px;
        height: 34px;
        padding: 0 12px;
        border-radius: 18px;
    }
    #vclc-root .vclc-brand-beacon img { width: 68px; }
    #vclc-root.vclc-left .vclc-brand-beacon { right: auto; left: 10px; }
    #vclc-root .vclc-proactive {
        bottom: 60px;
        width: min(266px, calc(100vw - 46px));
        max-height: 158px;
        padding: 11px 12px;
        border-radius: 16px 16px 5px;
    }
    #vclc-root .vclc-proactive p { margin: 5px 0 9px; font-size: 11.5px; line-height: 1.4; }
    #vclc-root .vclc-proactive-actions { gap: 6px; }
    #vclc-root .vclc-proactive-chat { min-height: 31px; padding: 6px 11px; }
    #vclc-root .vclc-header { min-height: 54px; padding: 7px 9px; }
    #vclc-root .vclc-header-copy strong { font-size: 13px; }
    #vclc-root .vclc-header-copy { min-width: 88px; }
    #vclc-root .vclc-header-action { display: grid; }
    #vclc-root .vclc-close { width: 31px; min-width: 31px; height: 31px; min-height: 31px; font-size: 21px; }
    #vclc-root.vclc-expanded .vclc-panel {
        top: max(10px, env(safe-area-inset-top, 0px));
        right: 10px;
        bottom: calc(var(--vclc-bottom-mobile) + env(safe-area-inset-bottom, 0px));
        left: 10px;
        width: auto;
        height: auto;
        max-height: none;
        border-radius: 17px;
    }
    #vclc-root.vclc-left.vclc-expanded .vclc-panel { right: 10px; left: 10px; }
    #vclc-root .vclc-start-screen,
    #vclc-root .vclc-chat-screen { height: calc(100% - 54px); }
    #vclc-root .vclc-start-screen { padding: 10px; }
    #vclc-root .vclc-start-form { gap: 9px; }
    #vclc-root .vclc-start-intro { padding: 13px 11px; border-radius: 15px; }
    #vclc-root .vclc-start-icon { width: 38px; height: 38px; margin-bottom: 7px; font-size: 19px; }
    #vclc-root .vclc-start-intro p { font-size: 11px; line-height: 1.45; }
    #vclc-root .vclc-new-conversation { min-height: 62px; padding: 10px 12px; border-radius: 14px; }
    #vclc-root .vclc-new-conversation strong { font-size: 12.5px; }
    #vclc-root .vclc-new-conversation small { font-size: 9.5px; }
    #vclc-root .vclc-greeting { margin-bottom: 8px; padding: 8px 10px; font-size: 11.5px; }
    #vclc-root .vclc-quick-options {
        margin: 3px 0 5px;
        padding-bottom: 8px;
        gap: 6px;
    }
    #vclc-root .vclc-quick-options::-webkit-scrollbar { height: 9px; }
    #vclc-root .vclc-quick-option { min-height: 30px; padding: 5px 9px; font-size: 10.5px; font-weight: 800; }
    #vclc-root .vclc-quick-replies-title { font-size: 10.5px; }
    #vclc-root .vclc-quick-replies-title::after { font-size: 9px; }
    #vclc-root .vclc-start-form label { margin-bottom: 6px; font-size: 11px; }
    #vclc-root .vclc-start-form input { min-height: 33px; padding: 0 8px; }
    #vclc-root .vclc-start-form textarea { min-height: 48px; padding: 6px 8px; }
    #vclc-root .vclc-primary { min-height: 36px; padding: 6px 10px; }
    #vclc-root .vclc-messages { padding: 10px 9px; }
    #vclc-root .vclc-message-bubble { max-width: 88%; padding: 7px 9px; font-size: 12px; }
    #vclc-root .vclc-message-share { font-size: 8.5px; }
    #vclc-root .vclc-welcome-message .vclc-message-bubble { max-width: 94%; font-size: 10.8px; line-height: 1.35; }
    #vclc-root .vclc-message-image { width: min(190px, 100%); max-height: 210px; }
    #vclc-root .vclc-reply-form { padding: 6px; grid-template-columns: 30px minmax(0, 1fr) 36px; }
    #vclc-root .vclc-reply-form textarea { min-height: 36px; padding: 7px 8px; font-size: 12px; }
    #vclc-root .vclc-reply-form button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
}

@media (max-width: 360px) {
    #vclc-root .vclc-panel {
        right: 8px;
        width: calc(100vw - 16px);
        height: min(460px, 60dvh);
        min-height: min(340px, calc(100dvh - var(--vclc-bottom-mobile) - env(safe-area-inset-bottom, 0px) - 16px));
    }
    #vclc-root.vclc-left .vclc-panel { right: auto; left: 8px; }
    #vclc-root .vclc-attachment-preview { grid-template-columns: minmax(0, 1fr) auto auto; }
    #vclc-root .vclc-header { padding-right: 7px; padding-left: 8px; }
    #vclc-root .vclc-header-action { width: 29px; min-width: 29px; height: 29px; min-height: 29px; margin-left: 2px; }
    #vclc-root .vclc-close { width: 29px; min-width: 29px; height: 29px; min-height: 29px; margin-left: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    #vclc-root .vclc-panel,
    #vclc-root .vclc-proactive,
    #vclc-root .vclc-launcher-pulse::after,
    #vclc-root .vclc-brand-beacon::before,
    #vclc-root .vclc-brand-beacon::after { animation: none; transition: none; }
}

/* 2.3.13.4: vạch phân ngày, nhãn trợ lý và card AI (gói cước, tổng đài, nút nhanh). */
#vclc-root .vclc-day-separator { display: flex; margin: 10px 0 8px; align-items: center; gap: 8px; color: #6b7280; font-size: 10.5px; font-weight: 600; }
#vclc-root .vclc-day-separator::before,
#vclc-root .vclc-day-separator::after { flex: 1; height: 1px; background: #e1e3e7; content: ""; }
#vclc-root .vclc-ai-badge { display: inline-flex; padding: 1px 6px; align-items: center; gap: 3px; border-radius: 999px; background: #fff1f4; color: var(--vclc-accent); font-size: 9px; font-weight: 700; line-height: 1.5; }
#vclc-root .vclc-ai-badge::before { content: "✦"; font-size: 8px; }
#vclc-root .vclc-message-ai .vclc-message-bubble { border-left: 3px solid var(--vclc-accent); }
/* 2.3.13.7: câu xin SĐT của trợ lý (metadata.cta) là khối riêng, in đậm, có nền nhấn. */
#vclc-root .vclc-ai-cta { display: block; margin-top: 10px; padding: 8px 10px 8px 9px; border-left: 3px solid var(--vclc-accent); border-radius: 4px 9px 9px 4px; background: #fff1f4; color: #1f2430; font-weight: 750; line-height: 1.45; white-space: pre-wrap; }
#vclc-root .vclc-ai-cta::before { content: "📞 "; }
#vclc-root .vclc-ai-cta.vclc-ai-cta-only { margin-top: 0; }
#vclc-root .vclc-cards { display: grid; width: 100%; max-width: 92%; margin-top: 6px; gap: 6px; }
#vclc-root .vclc-card { display: grid; min-width: 0; padding: 9px 10px; gap: 6px; border: 1px solid #f0d3da; border-radius: 12px; background: #fff; box-shadow: 0 2px 9px rgba(26, 30, 39, .06); color: #1f2430; font-size: 12px; line-height: 1.45; }
#vclc-root .vclc-card-head { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
#vclc-root .vclc-card-title { min-width: 0; font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
#vclc-root .vclc-card-price { color: var(--vclc-accent); font-weight: 700; white-space: nowrap; }
#vclc-root .vclc-card-benefits,
#vclc-root .vclc-card-conditions { margin: 0; padding-left: 16px; }
#vclc-root .vclc-card-conditions { color: #6b7280; font-size: 11px; }
#vclc-root .vclc-card-syntax { display: flex; width: 100%; min-height: 34px; margin: 0; padding: 5px 8px; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed #d5dae1; border-radius: 8px; background: #f6f7f9; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; -webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s; }
#vclc-root .vclc-card-syntax-text { min-width: 0; overflow-wrap: anywhere; }
#vclc-root .vclc-card-syntax-hint { flex: none; color: var(--vclc-accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
#vclc-root .vclc-card-syntax:hover { border-color: var(--vclc-accent); }
#vclc-root .vclc-card-syntax:active { background: #eceef2; }
#vclc-root .vclc-card-syntax.is-copied { border-style: solid; border-color: #2e9d5b; background: #eaf7ef; }
#vclc-root .vclc-card-syntax.is-copied .vclc-card-syntax-hint { color: #1f7a44; }
#vclc-root .vclc-card-syntax.is-failed .vclc-card-syntax-hint { color: #b42318; }
#vclc-root .vclc-card-syntax:focus-visible { outline: 2px solid var(--vclc-accent); outline-offset: 2px; }
#vclc-root .vclc-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#vclc-root .vclc-card-primary,
#vclc-root .vclc-card-secondary,
#vclc-root .vclc-card-chip { display: inline-flex; min-height: 32px; padding: 0 12px; align-items: center; justify-content: center; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
#vclc-root .vclc-card-primary { border: 0; background: var(--vclc-accent); color: #fff; }
#vclc-root .vclc-card-secondary,
#vclc-root .vclc-card-chip { border: 1px solid #e3c6ce; background: #fff; color: var(--vclc-accent); }
#vclc-root .vclc-card-chip[disabled] { opacity: .55; cursor: default; }
#vclc-root .vclc-card-link { color: #1f5fbf; font-size: 11.5px; font-weight: 600; text-decoration: underline; }
/* 2.3.13.8: trên điện thoại nút "Đăng ký qua SMS" chiếm trọn hàng, cao 40px cho dễ bấm; một dòng hướng dẫn chung dưới các thẻ gói. */
#vclc-root .vclc-card-sms { flex: 1 1 100%; min-height: 40px; font-size: 13.5px; box-shadow: 0 2px 6px rgba(26, 30, 39, .14); }
#vclc-root .vclc-card-sms::before { margin-right: 6px; content: "✉"; font-size: 14px; }
#vclc-root .vclc-cards-hint { margin: 0; padding: 7px 10px; border-radius: 9px; background: #fff7e8; color: #5a4a26; font-size: 11.5px; line-height: 1.45; }
#vclc-root .vclc-card-hotline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
#vclc-root .vclc-card-hotline-copy { display: grid; min-width: 0; gap: 1px; }
#vclc-root .vclc-card-branch { color: #6b7280; font-size: 11px; }
#vclc-root .vclc-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#vclc-root .vclc-card-primary:focus-visible,
#vclc-root .vclc-card-secondary:focus-visible,
#vclc-root .vclc-card-chip:focus-visible,
#vclc-root .vclc-card-link:focus-visible { outline: 2px solid var(--vclc-accent); outline-offset: 2px; }

@media (max-width: 360px) {
    #vclc-root .vclc-cards { max-width: 100%; }
    #vclc-root .vclc-card { padding: 8px; font-size: 11.5px; }
    #vclc-root .vclc-card-hotline { grid-template-columns: minmax(0, 1fr); }
}
#vclc-root .vclc-card-article { color: #1f5fbf; font-weight: 600; text-decoration: none; }
#vclc-root .vclc-card-article::before { content: "📘 "; }
#vclc-root .vclc-card-article:hover,
#vclc-root .vclc-card-article:focus-visible { text-decoration: underline; }

/* 2.3.13.5: chọn ngôn ngữ trong dòng trạng thái header, nhãn bản dịch tự động. */
#vclc-root .vclc-header-copy { min-width: 0; }
#vclc-root .vclc-lang-wrap { display: inline-flex; margin-left: 6px; align-items: center; gap: 3px; vertical-align: middle; }
#vclc-root .vclc-lang-wrap::before { content: "🌐"; font-size: 10px; }
#vclc-root .vclc-lang-select { max-width: 92px; height: 20px; padding: 0 2px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 10.5px; cursor: pointer; }
#vclc-root .vclc-lang-select option { background: #fff; color: #1f2430; }
#vclc-root .vclc-lang-select:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
#vclc-root .vclc-translation-toggle { margin: 3px 0 0; padding: 0; border: 0; background: none; color: #6b7280; font: inherit; font-size: 10px; text-align: left; text-decoration: underline; cursor: pointer; }
#vclc-root .vclc-translation-toggle:focus-visible { outline: 2px solid var(--vclc-accent); outline-offset: 2px; }
/* Có bộ chọn ngôn ngữ: giữ dòng trạng thái trên 1 dòng để header không cao thêm (màn chat tính chiều cao theo header). */
#vclc-root .vclc-header-copy small.vclc-has-lang { display: flex; min-width: 0; align-items: center; gap: 4px; white-space: nowrap; }
#vclc-root .vclc-header-copy small.vclc-has-lang .vclc-online-dot { flex: none; }
#vclc-root .vclc-header-copy small.vclc-has-lang .vclc-status-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#vclc-root .vclc-header-copy small.vclc-has-lang .vclc-lang-wrap { flex: none; margin-left: 2px; }
@media (max-width: 400px) {
    #vclc-root .vclc-lang-select { max-width: 72px; }
}
