@media screen {
    .ho-tro-noi__mo, .ho-tro-noi__dong { display: none; }

    .floatbar__trai:has(.ho-tro-noi) {
        position: fixed;
        left: max(14px, env(safe-area-inset-left));
        inset-block: calc(16px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(146px, calc(100vw - 112px - env(safe-area-inset-left) - env(safe-area-inset-right)));
        pointer-events: none;
    }
    /* Khi danh sách dài, khoảng trống phía trên co trước phần danh sách. */
    .floatbar__trai:has(.ho-tro-noi)::before { content: ""; flex: 0 1 max(0px, calc(50% - 30px)); }
    .floatbar__nhom {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        max-height: 100%;
    }
    .floatbar__trai:has(.ho-tro-noi) .floatbar__btn--call {
        position: static;
        flex: none;
        max-width: 100%;
        pointer-events: auto;
    }

    .ho-tro-noi {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-width: 100%;
        background: transparent;
        color: var(--ink);
        font-size: .875rem;
        line-height: 1.35;
        text-align: center;
        overflow-wrap: anywhere;
    }
    .ho-tro-noi__tieu-de { flex: none; margin: 0 5px 4px; font-weight: 700; }
    .ho-tro-noi__chu { text-shadow: 0 0 2px #fff, 0 1px 1px #fff; }
    .ho-tro-noi__chu--sang { color: #fff; text-shadow: 0 1px 2px #0a1428; }
    .ho-tro-noi__ds .ho-tro-noi__chu { display: block; }
    .ho-tro-noi__ds {
        margin: 0;
        padding: 0 5px 5px;
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable both-edges;
        list-style: none;
        pointer-events: auto;
    }
    .ho-tro-noi__ds li + li { margin-top: 6px; }
    .ho-tro-noi__lien-he { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
    .ho-tro-noi__lien-he a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 30px;
        min-height: 30px;
        padding-inline: 6px;
        border-radius: 999px;
        color: #fff;
        font-size: .75rem;
        font-weight: 700;
        text-decoration: none;
        text-shadow: none;
    }
    .ho-tro-noi__lien-he .ic { width: 14px; height: 14px; flex: none; }
    .ho-tro-noi__lien-he a:hover { filter: brightness(.86); }
    .ho-tro-noi__goi { background: #d50803; }
    .ho-tro-noi__zalo { background: #075fcb; }

    @media (min-width: 1360px) {
        body { --le-ho-tro: 168px; }
        :is(main, .footer) .wrap:not(.wrap .wrap) {
            max-width: min(var(--wrap), calc(100% - 2 * var(--le-ho-tro) + 40px));
        }
        body.co-kbot .kb-nut { max-width: calc(var(--le-ho-tro) - 24px); }
        body.co-kbot .kb-nut__chu { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    }

    @media (max-width: 1359px) {
        :root {
            --lien-he-cao: calc(60px + env(safe-area-inset-bottom));
            scroll-padding-bottom: var(--lien-he-cao);
        }
        body { padding-bottom: var(--lien-he-cao); }
        .floatbar {
            inset: auto 0 0;
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(0, 1fr);
            align-items: center;
            gap: 4px;
            min-height: var(--lien-he-cao);
            padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
            background: #fff;
            border-top: 1px solid var(--line);
        }
        .floatbar :is(.floatbar__trai, .floatbar__nhom) { display: contents; pointer-events: auto; }
        .floatbar__trai:has(.ho-tro-noi)::before { display: none; }
        .floatbar :is(.floatbar__btn, .ho-tro-noi__mo, .kb-nut, .totop) {
            position: static;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            width: 100%;
            height: 46px;
            min-width: 0;
            padding: 4px 2px;
            border: 0;
            border-radius: 8px;
            background: #f3f6fa;
            color: #0a1428;
            font-size: .8125rem;
            font-weight: 700;
            line-height: 1;
            box-shadow: none;
        }
        .floatbar .floatbar__btn--call { color: var(--red-d); }
        .floatbar .floatbar__btn--zalo { color: #075fcb; }
        .floatbar .ho-tro-noi__mo[aria-expanded="true"] { background-color: #dcecff; }
        .floatbar .totop { order: 1; }
        .floatbar .totop:not(.is-show) { display: none; }
        .floatbar .ic { width: 16px; height: 16px; }
        .floatbar .floatbar__call-icon {
            width: auto; height: auto; background: transparent; box-shadow: none; gap: 3px;
        }
        .floatbar .floatbar__call-text { font: inherit; }
        .floatbar .floatbar__call-icon .ic { width: 16px; height: 16px; fill: none; animation: none; }
        .floatbar .floatbar__call-icon::before, .floatbar .floatbar__call-icon::after { display: none; }
        .floatbar .kb-nut__ic { width: 21px; height: 21px; }
        .floatbar .kb-nut__ic .kb-robot { position: static; width: 100%; filter: none; }
        .floatbar .kb-nut--bao .kb-nut__ic::after { top: 0; right: -3px; width: 8px; height: 8px; }
        .floatbar .kb-nut__ai { display: none; }
        .floatbar .kb-nut__chu { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        body.co-kbot .kb-chao { bottom: calc(var(--lien-he-cao) + 8px); }

        .floatbar .ho-tro-noi {
            display: none;
            position: fixed;
            inset: auto max(8px, env(safe-area-inset-right)) calc(var(--lien-he-cao) + 8px) max(8px, env(safe-area-inset-left));
            max-width: 420px;
            max-height: min(68dvh, calc(100dvh - var(--lien-he-cao) - env(safe-area-inset-top) - 20px));
            margin-inline: auto;
            padding: 10px 14px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: #fff;
            color: #0a1428;
            text-align: start;
            box-shadow: 0 8px 26px rgba(6, 11, 22, .22);
        }
        .floatbar .ho-tro-noi.is-open { display: flex; }
        .ho-tro-noi__tieu-de {
            display: flex;
            align-items: center;
            min-height: 40px;
            margin: 0;
            padding-inline-end: 44px;
            font-size: 1rem;
        }
        .ho-tro-noi__chu, .ho-tro-noi__chu--sang { color: inherit; text-shadow: none; }
        .ho-tro-noi__dong {
            position: absolute;
            inset: 8px 8px auto auto;
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border: 0;
            border-radius: 8px;
            background: #f3f6fa;
            color: inherit;
        }
        .ho-tro-noi__ds { padding: 0; scrollbar-gutter: auto; }
        .ho-tro-noi__ds li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-block: 6px;
        }
        .ho-tro-noi__ds li + li { margin-top: 0; border-top: 1px solid var(--line); }
        .ho-tro-noi__lien-he { flex: none; flex-wrap: nowrap; margin: 0; }
        .ho-tro-noi__lien-he a { min-width: 44px; min-height: 44px; padding-inline: 9px; }
    }
    @media (min-width: 992px) and (max-width: 1359px) {
        .floatbar {
            max-width: 440px;
            margin-inline: auto;
            border: 1px solid var(--line);
            border-bottom: 0;
            border-radius: 12px 12px 0 0;
            box-shadow: 0 -3px 12px rgba(6, 11, 22, .12);
        }
    }
}
