/* Liquid Glass & iOS 26 Style for Contact Bar - Fit Content */

/* --- Layout Reset & Common --- */
.vtb-contact-mobile,
.vtb-contact-desktop {
    display: none;
}

/* Visibility Logic */
@media (max-width: 767px) {
    .vtb-contact-mobile {
        display: block !important;
    }

    .vtb-contact-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .vtb-contact-desktop {
        display: block !important;
    }

    .vtb-contact-mobile {
        display: none !important;
    }
}

/* --- Mobile Floating Dock --- */
.vtb-mobile-wrap {
    position: fixed;
    bottom: 5px;
    left: 0;
    width: 100%;
    z-index: 2147483647;
    pointer-events: none;
    display: flex;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.vtb-contact-mobile .vtb-flex-container {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;

    /* Requested: Fit content, even spacing */
    justify-content: center;
    width: auto;
    /* Allow shrinking */
    max-width: 95%;
    /* Prevent overflowing small screens */

    gap: 12px;
    /* Fixed, uniform gap */
    padding: 8px 16px;
    /* Comfortable padding */
    margin: 0 auto;

    /* Ultra Transparency (0.1) & Glass */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Stronger Shadows */
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 4px 8px 0 rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);

    border-radius: 24px;
    /* Slightly rounder for pill shape */
    transition: transform 0.3s ease;
}

/* Mobile Icons (Squircle) */
.vtb-contact-mobile .vtb-flex-item {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Remove flex: 1 to prevent stretching, keep fixed size */
    flex: 0 0 auto;
}

.vtb-contact-mobile .vtb-flex-item:active {
    transform: scale(0.92);
}

.vtb-contact-mobile .vtb-flex-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.vtb-contact-mobile .vtb-text {
    display: none;
}

/* --- Desktop Vertical Glass Pill --- */
.vtb-contact-desktop #vtb_contact_wrap {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2147483647;
}

.vtb-left {
    left: 20px;
    right: auto;
}

.vtb-right {
    right: 20px;
    left: auto;
}

.vtb-contact-desktop .vtb-flex-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.vtb-contact-desktop .vtb-flex-item {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: none;
}

.vtb-contact-desktop .vtb-flex-item:hover {
    transform: scale(1.15) translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.vtb-right .vtb-contact-desktop .vtb-flex-item:hover {
    transform: scale(1.15) translateX(-5px);
}

/* --- Colorful Icons (SVGs) --- */
.vtb-flex-item a::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 768px) {
    .vtb-contact-desktop .vtb-flex-item a::before {
        width: 32px;
        height: 32px;
    }
}


/* Home - Colorful House */
.vtb-home a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M416 174.74V48h-80v40.66l-80-80L16 268.32l23.5 24.5h62.5v157.08a32 32 0 0032 32h96V336h52v145.92h96a32 32 0 0032-32V292.83h62.5L496 268.32z" fill="%23FF5722"/><path d="M256 26.66L16 268.32l23.5 24.5h62.5v157.08a32 32 0 0032 32h96V336h52v145.92h96a32 32 0 0032-32V292.83h62.5L496 268.32 256 26.66z" fill="%23FF9800" opacity="0.8"/></svg>');
}

/* Phone - Green Gradient */
.vtb-call a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M391 480c-19.52 0-46.94-7.06-88-30-49.93-28-88.55-53.85-138.21-103.38C116.91 298.77 93.61 267.79 61 208.45c-36.84-67-30.56-102.12-23.54-117.13C45.82 73.38 58.16 62.65 74.11 52a176.3 176.3 0 0128.64-15.2c1-.43 1.93-.84 2.76-1.21 4.5-2 15.47-1.46 19.81 1.67.63.46 1.13.92 1.57 1.34 3.73 3.55 7.6 15 11.23 25.75l.13.39c8.2 24.31 15.54 46.06 17.58 52.88 4.29 14.33 3 28.21-3.69 40.24-5.26 9.47-15.17 19.26-25.72 29.68-1.55 1.53-3.1 3.06-4.63 4.57a17.89 17.89 0 00-3.11 20.37c3.15 6.78 6.51 13 10.05 18.79 4.3 7 9.17 13.62 14.85 20.27 15.55 18.17 31.91 32.89 42.48 41.34a123.69 123.69 0 0021.57 14.7 18.06 18.06 0 0020.31-2.07c1.37-1.21 2.82-2.58 4.34-4.11 9.87-9.94 19.3-19.45 29.35-24.63 12.35-6.38 26.17-6.84 40.23-1.35 6.44 2.45 28.52 9.42 52.92 17.65l.39.14c10.74 3.61 22.25 7.49 25.8 11.22.42.44.88.94 1.34 1.57 3.13 4.34 3.67 15.31 1.67 19.81-.37.83-.78 1.76-1.21 2.76a176.24 176.24 0 01-15.2 28.64c-11.25 15.22-21.73 28.84-40.45 36.1C406.84 478.41 399.78 480 391 480z" fill="%232ecc71"/></svg>');
}

/* Zalo */
.vtb-zalo a::before {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/91/Icon_of_Zalo.svg');
}

/* Messenger */
.vtb-messenger a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230695FF"><path d="M12 2C6.48 2 2 6.03 2 11c0 2.87 1.5 5.43 3.89 7.05-.15.85-.54 2.1-.64 2.45-.15.54.34.99.78.68 1.09-.76 2.62-1.8 3.56-2.45.19.04.59.12 1.41.12 5.52 0 10-4.03 10-9S16.48 2 12 2zm1.2 11.8l-2.8-3-3.6 3c-.4.3-1 .04-.9-.45l2.4-6.4c.15-.4.7-.55 1.1-.2l2.8 3 3.6-3c.4-.3 1-.04.9.45l-2.4 6.4c-.15.4-.7.55-1.1.2z"/></svg>');
}

/* Map */
.vtb-google-map a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23EA4335" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"/><circle fill="%23FFFFFF" cx="12" cy="9" r="2.5"/></svg>');
}

/* Zalo OA */
.vtb-zalo-oa .zalo-chat-widget {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Menu - Monochrome (Dark Grey) */
.vtb-menu-btn a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333333"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>');
}

/* --- Tooltips Desktop --- */
.vtb-tooltiptext {
    visibility: hidden;
    white-space: nowrap;
    background-color: rgba(30, 30, 30, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 6px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: rgba(30, 30, 30, 0.9);
    opacity: 0;
    transition: all 0.2s;
    font-size: 13px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.vtb-left .vtb-tooltiptext {
    left: 65px;
    transform-origin: left center;
}

.vtb-right .vtb-tooltiptext {
    right: 65px;
    transform-origin: right center;
}

.vtb-contact-desktop .vtb-flex-item:hover .vtb-tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) scale(1);
}