/* 
 * Mobile Bottom Contact Bar
 * Author: Andy Bui - abui.top
 */

/* Hide by default on desktop/tablet */
.hd-bottom-contact-bar {
    display: none;
}

@media only screen and (max-width: 849px) {
    .hd-bottom-contact-bar {
        display: block !important;
        position: fixed;
        bottom: 20px;
        left: 15px;
        right: 15px;
        z-index: 999999;
        font-family: 'Be Vietnam Pro', sans-serif;
    }

    /* Support safe area on iPhone */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .hd-bottom-contact-bar {
            bottom: calc(20px + env(safe-area-inset-bottom));
        }
    }

    /* Prevent covering body content */
    body {
        padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important;
    }

    .hd-bcb-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #111111;
        border: 1px solid #d4af37;
        border-radius: 40px;
        padding: 8px 6px;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); /* Golden glow */
    }

    .hd-bcb-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #fff !important;
        gap: 6px;
        transition: opacity 0.2s ease, transform 0.2s ease;
        padding: 4px 2px;
    }

    .hd-bcb-item:active {
        opacity: 0.7;
        transform: scale(0.95);
    }

    .hd-bcb-divider {
        width: 1px;
        height: 36px;
        background-color: #333;
    }

    /* Icons */
    .hd-bcb-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hd-icon-phone {
        background-color: #21b33b; /* Green */
    }

    /* Since we use actual SVG for Zalo, we don't need background-color for hd-icon-zalo if SVG has it, but let's clear it just in case */
    .hd-icon-zalo {
        background-color: transparent;
    }

    .hd-icon-fb {
        background-color: #0866ff; /* FB Blue */
    }

    /* Text */
    .hd-bcb-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.3;
    }

    .hd-bcb-title {
        font-size: 10px;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        text-transform: uppercase;
    }

    .hd-bcb-sub {
        font-size: 10px;
        color: #aaa;
        font-weight: 400;
        white-space: nowrap;
    }

    .hd-bcb-sub.phone-number {
        color: #ffc107; /* Yellow */
        font-weight: 700;
    }
}
