/* Viet My Sticky Contact Bar — no frontend JS. */
:root {
    --vm-scb-bg: #167eaf;
    --vm-scb-fg: #ffffff;
    --vm-scb-h: 52px;
    --vm-scb-mobile-h: 62px;
}

body.vm-scb-has-bar {
    padding-bottom: var(--vm-scb-h) !important;
}

.vm-scb {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 999999 !important;
    display: block;
    width: 100%;
    height: var(--vm-scb-h);
    margin: 0 !important;
    padding: 0 !important;
    background: var(--vm-scb-bg);
    color: var(--vm-scb-fg);
    box-shadow: 0 -2px 12px rgba(0,0,0,.14);
    font-family: inherit;
}

.vm-scb__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1180px, 100%);
    height: 100%;
    margin: 0 auto;
}

.vm-scb__item {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 5px 18px;
    margin: 0 !important;
    color: var(--vm-scb-fg) !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
    transition: background-color .16s ease;
}

.vm-scb__item + .vm-scb__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255,255,255,.45);
}

.vm-scb__item:hover,
.vm-scb__item:focus-visible {
    background: rgba(0,0,0,.10) !important;
    color: var(--vm-scb-fg) !important;
}

.vm-scb__item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.vm-scb__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    color: currentColor;
}

.vm-scb__icon svg {
    display: block;
}

.vm-scb__text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.vm-scb__text strong {
    color: currentColor !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.vm-scb__text small {
    color: currentColor !important;
    font-size: 12px;
    line-height: 1.2;
    opacity: .92;
}

@media (max-width: 900px) {
    .vm-scb__item {
        padding-left: 10px;
        padding-right: 10px;
        gap: 7px;
    }
    .vm-scb__text {
        display: block;
    }
    .vm-scb__text strong,
    .vm-scb__text small {
        display: block;
    }
    .vm-scb__text small {
        margin-top: 2px;
    }
}

@media (max-width: 767px) {
    body.vm-scb-has-bar {
        padding-bottom: calc(var(--vm-scb-mobile-h) + env(safe-area-inset-bottom)) !important;
    }

    .vm-scb {
        height: calc(var(--vm-scb-mobile-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .vm-scb__inner {
        width: 100%;
    }

    .vm-scb__item {
        flex-direction: column;
        gap: 2px;
        padding: 5px 3px;
        text-align: center;
    }

    .vm-scb__item + .vm-scb__item::before {
        top: 8px;
        bottom: 8px;
        background: rgba(255,255,255,.28);
    }

    .vm-scb__icon {
        flex-basis: 22px;
    }

    .vm-scb__icon svg {
        width: 21px;
        height: 21px;
    }

    .vm-scb__text {
        width: 100%;
        line-height: 1;
    }

    .vm-scb__text strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .vm-scb__text small {
        display: none;
    }
}

@media print {
    .vm-scb { display: none !important; }
    body.vm-scb-has-bar { padding-bottom: 0 !important; }
}
