.etop-fc {
    --etop-fc-size: 58px;
    position: fixed;
    z-index: 1030;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

.etop-fc__item {
    --etop-fc-hi: #ffffff;
    --etop-fc-main: #075cbe;
    --etop-fc-deep: #003e85;
    --etop-fc-glow: rgba(7, 92, 190, .42);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    flex: 0 0 var(--etop-fc-size);
    align-items: center;
    justify-content: center;
    width: var(--etop-fc-size);
    height: var(--etop-fc-size);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    color: var(--etop-fc-hi);
    text-decoration: none;
    background:
        radial-gradient(circle at 29% 22%, rgba(255, 255, 255, .92) 0 1px, rgba(255, 255, 255, .34) 2px, transparent 39%),
        linear-gradient(145deg, var(--etop-fc-hi), var(--etop-fc-main) 49%, var(--etop-fc-deep));
    box-shadow:
        0 8px 15px rgba(18, 41, 68, .24),
        0 2px 0 rgba(0, 35, 79, .2),
        inset 0 1px 1px rgba(255, 255, 255, .72),
        inset 0 -4px 7px rgba(0, 24, 58, .2);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .22s cubic-bezier(.2, .75, .25, 1), box-shadow .22s ease, filter .22s ease;
    -webkit-tap-highlight-color: transparent;
}

.etop-fc__item::before {
    position: absolute;
    z-index: -1;
    inset: -7px;
    border-radius: inherit;
    background: radial-gradient(circle, var(--etop-fc-glow) 0, transparent 72%);
    content: "";
    opacity: .5;
    filter: blur(7px);
    transform: scale(.88);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.etop-fc__item:hover {
    color: var(--etop-fc-hi);
    text-decoration: none;
    transform: translateY(-3px) scale(1.045) rotate(-2deg);
    filter: saturate(1.08) brightness(1.04);
    box-shadow:
        0 12px 21px rgba(18, 41, 68, .3),
        0 3px 0 rgba(0, 35, 79, .22),
        inset 0 1px 1px rgba(255, 255, 255, .82),
        inset 0 -4px 7px rgba(0, 24, 58, .2);
}

.etop-fc__item:hover::before { opacity: .8; transform: scale(1.08); }

.etop-fc__item:active {
    transform: translateY(1px) scale(.96);
    box-shadow: 0 3px 7px rgba(18, 41, 68, .24), inset 0 2px 5px rgba(0, 24, 58, .2);
}

.etop-fc__item:focus { outline: none; }
.etop-fc__item:focus-visible {
    outline: 3px solid #ff8038;
    outline-offset: 3px;
}

.etop-fc__item svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: currentColor;
    filter: drop-shadow(0 1px 1px rgba(0, 28, 66, .2));
    transition: transform .22s cubic-bezier(.2, .75, .25, 1), filter .22s ease;
}

.etop-fc__item:hover svg { transform: scale(1.08); filter: drop-shadow(0 2px 2px rgba(0, 28, 66, .28)); }

.etop-fc__phone { --etop-fc-main: #20b86a; --etop-fc-deep: #087a43; --etop-fc-glow: rgba(32, 184, 106, .42); }
.etop-fc__zalo { --etop-fc-main: #1688f8; --etop-fc-deep: #075fbd; --etop-fc-glow: rgba(22, 136, 248, .4); }
.etop-fc__zalo-mark { fill: #1688f8; }
.etop-fc__messenger { --etop-fc-main: #1877f2; --etop-fc-deep: #7548e8; --etop-fc-glow: rgba(131, 89, 255, .42); }
.etop-fc__facebook { --etop-fc-main: #1877f2; --etop-fc-deep: #084fae; --etop-fc-glow: rgba(24, 119, 242, .4); }
.etop-fc__share { --etop-fc-hi: #fff5ca; --etop-fc-main: #efbd45; --etop-fc-deep: #d88716; --etop-fc-glow: rgba(239, 189, 69, .42); color: #173c60; }
.etop-fc__share:hover { color: #173c60; }
.etop-fc__top { --etop-fc-main: #0875dc; --etop-fc-deep: #003f8b; --etop-fc-glow: rgba(7, 92, 190, .42); }
.etop-fc__phone::before { animation: etop-fc-phone-glow 3.2s ease-out infinite; }
.etop-fc__item[hidden] { display: none !important; }

@keyframes etop-fc-phone-glow {
    0%, 100% { opacity: .38; transform: scale(.88); }
    55% { opacity: .72; transform: scale(1.14); }
}

.etop-fc__status {
    position: absolute;
    right: calc(100% + 12px);
    bottom: 0;
    width: min(320px, calc(100vw - 104px));
    padding: 13px 14px;
    border: 1px solid #d5e1ef;
    border-radius: 11px;
    background: #fff;
    color: #203b57;
    box-shadow: 0 8px 24px rgba(20, 44, 71, .2);
    font: 14px/1.45 Arial, sans-serif;
    pointer-events: auto;
}

.etop-fc__status[hidden] { display: none; }
.etop-fc__status label { display: block; margin-bottom: 7px; font-weight: 700; }
.etop-fc__status input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #aabed3;
    border-radius: 6px;
    background: #f7faff;
    color: #203b57;
    font: 13px/1.4 Arial, sans-serif;
}

@media (hover: hover) and (min-width: 768px) {
    .etop-fc__item[data-label]::after {
        position: absolute;
        top: 50%;
        right: calc(100% + 10px);
        padding: 6px 9px;
        border-radius: 6px;
        border: 1px solid rgba(255, 128, 56, .42);
        background: rgba(20, 38, 57, .92);
        color: #fff;
        content: attr(data-label);
        font: 600 12px/1.2 Arial, sans-serif;
        letter-spacing: normal;
        text-indent: 0;
        text-shadow: none;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transform: translate(4px, -50%);
        transition: opacity .16s ease, transform .16s ease;
    }

    .etop-fc__item[data-label]:hover::after,
    .etop-fc__item[data-label]:focus-visible::after {
        opacity: 1;
        transform: translate(0, -50%);
    }

    .etop-fc-settings .etop-fc__item[data-label]::after {
        left: calc(100% + 10px);
        right: auto;
    }
}

@media (max-width: 767px) {
    .etop-fc {
        --etop-fc-size: 52px;
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .etop-fc__item svg { width: 25px; height: 25px; }
    .etop-fc__status { width: min(300px, calc(100vw - 92px)); }
}

@media (max-width: 390px) {
    .etop-fc { --etop-fc-size: 48px; }
    .etop-fc__item svg { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .etop-fc__item,
    .etop-fc__item::before,
    .etop-fc__item svg,
    .etop-fc__item[data-label]::after {
        transition: none;
    }

    .etop-fc__phone::before { animation: none; }
}

/* Expandable ETOP utility rail, matching the site's blue-and-orange controls. */
.etop-fc { z-index: 1040; }
.etop-fc:not(.is-expanded) .etop-fc__service { display: none !important; }
.etop-fc__item svg { width: 30px; height: 30px; }
.etop-fc__zalo { border-radius: 20%; background: linear-gradient(145deg, #31a9ff, #0879e8 58%, #0059bd); }
.etop-fc__zalo > span { font: 900 calc(var(--etop-fc-size) * .74)/1 Arial, Helvetica, sans-serif; text-shadow: 0 1px 2px rgba(0, 28, 66, .28); }
.etop-fc__messenger { border: 0; background: transparent; box-shadow: 0 8px 15px rgba(18, 41, 68, .24); }
.etop-fc__messenger svg { width: 100%; height: 100%; filter: none; }
.etop-fc__collapse { --etop-fc-main: #ed334c; --etop-fc-deep: #b91532; --etop-fc-glow: rgba(237, 51, 76, .5); }
.etop-fc__collapse svg { width: 29px; height: 29px; transform-origin: center; animation: etop-fc-heart-icon 1.65s ease-in-out infinite; }
.etop-fc__collapse::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(237, 51, 76, .45); border-radius: inherit; animation: etop-fc-heartbeat 1.65s ease-out infinite; pointer-events: none; }
.etop-fc__panel {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    box-sizing: border-box;
    width: min(390px, calc(100vw - 24px));
    max-height: min(72vh, 650px);
    overflow: auto;
    border: 1px solid #d5e1ef;
    border-top: 3px solid #ff8038;
    border-radius: 14px;
    background: #fff;
    color: #203b57;
    box-shadow: 0 14px 42px rgba(16, 42, 72, .28);
    font: 14px/1.45 Arial, sans-serif;
    pointer-events: auto;
    animation: etop-fc-panel-in .2s ease-out both;
}
.etop-fc__panel[hidden] { display: none !important; }
.etop-fc__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px 11px; border-bottom: 1px solid #e5ebf2; }
.etop-fc__panel-head h2 { margin: 0; color: #075cbe; font: 700 17px/1.3 Arial, sans-serif; }
.etop-fc__panel-head button { border: 0; padding: 5px 0; background: transparent; color: #075cbe; font: 700 12px/1.3 Arial, sans-serif; cursor: pointer; }
.etop-fc__notice, .etop-fc__empty { margin: 0; padding: 18px 16px; color: #687b91; text-align: center; }
.etop-fc__notice[hidden], .etop-fc__empty[hidden] { display: none !important; }
.etop-fc__notification-list { margin: 0; padding: 0; list-style: none; }
.etop-fc__notification { border-bottom: 1px solid #edf1f6; }
.etop-fc__notification:last-child { border-bottom: 0; }
.etop-fc__notification a { display: block; padding: 13px 16px; color: #234666; text-decoration: none; transition: background .15s ease; }
.etop-fc__notification a:hover, .etop-fc__notification a:focus-visible { background: #f1f7ff; text-decoration: none; }
.etop-fc__notification strong { display: block; margin-bottom: 5px; color: inherit; font: 700 14px/1.45 Arial, sans-serif; }
.etop-fc__notification span { color: #71839a; font: 12px/1.4 Arial, sans-serif; }
.etop-fc__notification.is-unread a { background: #f7fbff; }
.etop-fc__notification.is-unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #ff8038; }
.etop-fc-settings { --etop-fc-size: 58px; position: fixed; z-index: 1042; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; pointer-events: none; }
.etop-fc-settings__toggle { --etop-fc-main: #0874d1; --etop-fc-deep: #034d9c; --etop-fc-glow: rgba(7, 92, 190, .42); border: 2px solid #ff8038; box-shadow: 0 8px 18px rgba(18, 41, 68, .24), 0 0 0 3px rgba(255, 255, 255, .78), inset 0 1px 1px rgba(255, 255, 255, .72), inset 0 -4px 7px rgba(0, 24, 58, .2); }
.etop-fc-settings__toggle svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 52% 46%; animation: etop-fc-gear-turn 12s linear infinite; }
.etop-fc-settings__panel {
    position: absolute;
    bottom: calc(100% + 13px);
    left: 0;
    box-sizing: border-box;
    width: min(360px, calc(100vw - 34px));
    max-height: calc(100dvh - var(--etop-fc-size) - var(--etop-fc-size) - 62px);
    overflow: auto;
    padding: 0 15px 9px;
    border: 1px solid #cfdeef;
    border-top: 4px solid #ff8038;
    border-radius: 16px;
    background: #fff;
    color: #244563;
    box-shadow: 0 14px 36px rgba(13, 48, 86, .22);
    font: 14px/1.4 Arial, sans-serif;
    pointer-events: auto;
    animation: etop-fc-panel-in .2s ease-out both;
}
.etop-fc-settings__panel[hidden] { display: none !important; }
.etop-fc-settings__panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -15px 4px; padding: 11px 15px; border-bottom: 1px solid #dce7f3; border-radius: 11px 11px 0 0; background: #075cbe; }
.etop-fc-settings__panel h2 { margin: 0; color: #fff; font: 700 16px/1.3 'Bai Jamjuree', Arial, sans-serif; }
.etop-fc-settings__panel header button { width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 21px; line-height: 1; cursor: pointer; }
.etop-fc-settings__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 10px 3px; border-bottom: 1px solid #e5edf6; color: #244563; text-align: left; }
.etop-fc-settings__row:last-of-type { border-bottom: 0; }
.etop-fc-settings__row > span:not(.etop-fc-settings__symbol) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.etop-fc-settings__row strong { color: #164778; font: 700 14px/1.35 'Bai Jamjuree', Arial, sans-serif; }
.etop-fc-settings__row small { color: #71839a; font: 12px/1.4 'Bai Jamjuree', Arial, sans-serif; }
.etop-fc-settings__action { justify-content: flex-start; width: 100%; border: 0; background: transparent; font: inherit; cursor: pointer; }
.etop-fc-settings__action > span:not(.etop-fc-settings__symbol) { flex: 1; }
.etop-fc-settings__action:hover { background: #f4f8fd; }
.etop-fc-settings__symbol { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border: 1px solid #c9dcef; border-radius: 9px; background: #eff6ff; color: #075cbe; }
.etop-fc-settings__symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.etop-fc-switch { position: relative; flex: 0 0 56px; width: 56px; height: 32px; border: 1px solid #bfd0e2; border-radius: 20px; background: #edf2f8; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.etop-fc-switch::after { position: absolute; top: 3px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; content: ""; box-shadow: 0 1px 4px rgba(16, 48, 83, .2); transition: transform .18s ease, background .18s ease; }
.etop-fc-switch[aria-checked="true"] { border-color: #075cbe; background: #075cbe; }
.etop-fc-switch[aria-checked="true"]::after { background: #fff; transform: translateX(23px); }
.etop-fc-settings__hint { margin: 8px 3px 4px; color: #a14c12; font-size: 12px; line-height: 1.45; }
.etop-fc-settings__hint[hidden] { display: none !important; }
@keyframes etop-fc-heartbeat { 0%, 100% { transform: scale(.88); opacity: .7; } 14% { transform: scale(1.08); opacity: 1; } 28% { transform: scale(.94); opacity: .8; } 42% { transform: scale(1.08); opacity: 1; } 58% { transform: scale(.9); opacity: .65; } }
@keyframes etop-fc-heart-icon { 0%, 58%, 100% { transform: scale(1); } 14% { transform: scale(1.2); } 28% { transform: scale(.98); } 42% { transform: scale(1.15); } }
@keyframes etop-fc-heart-icon-gentle { 0%, 58%, 100% { transform: scale(1); } 14% { transform: scale(1.06); } 28% { transform: scale(1); } 42% { transform: scale(1.04); } }
@keyframes etop-fc-gear-turn { to { transform: rotate(360deg); } }
@keyframes etop-fc-panel-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 767px) {
    .etop-fc { gap: 11px; }
    .etop-fc__messenger svg { width: 100%; height: 100%; }
    .etop-fc-settings { --etop-fc-size: 52px; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .etop-fc-settings__toggle svg { width: 28px; height: 28px; }
    .etop-fc-settings__panel { width: min(345px, calc(100vw - 40px)); }
}
@media (max-width: 390px) { .etop-fc-settings { --etop-fc-size: 48px; } }
@media (max-height: 480px) {
    .etop-fc { --etop-fc-size: 44px; gap: 8px; }
    .etop-fc-settings { --etop-fc-size: 44px; }
    .etop-fc-settings__toggle svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    .etop-fc__collapse::after { animation: none; opacity: .5; }
    .etop-fc__collapse svg { animation: etop-fc-heart-icon-gentle 2.4s ease-in-out infinite; }
    .etop-fc-settings__toggle svg { animation-duration: 24s; }
    .etop-fc__panel, .etop-fc-settings__panel { animation: none; }
}
