﻿/* =====================================================
   FLOATING CONTACT – FINAL CLEAN VERSION
   ===================================================== */

/* ===== Wrapper ===== */
.floating-wrapper {
    position: fixed;
    right: 24px;
    bottom: 22%;
    z-index: 999;
    pointer-events: none;
}

/* ===== Main floating button ===== */
.floating-button {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: opacity .2s ease;
}

    .floating-button img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* ===== Expanded container ===== */
.expanded-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

    .expanded-buttons.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* ===== Khi menu bung → ẩn nút bật ===== */
.floating-wrapper:has(.expanded-buttons.visible) .floating-button {
    opacity: 0;
    pointer-events: none;
}

/* =====================================================
   CALL PILL – LIGHT STYLE
   ===================================================== */

.call-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    height: 38px;
    background: rgba(180, 180, 180, 0.85);
    color: #ffffff;
    text-decoration: none;
    padding: 6px 10px 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

    .call-pill:active {
        transform: scale(0.97);
    }

/* Text */
.call-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Phone icon */
.call-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 8px;
    background: linear-gradient(135deg, #6fd19b, #2bb673);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .call-icon i {
        font-size: 13px;
        color: #ffffff;
    }

/* =====================================================
   SOCIAL BUTTONS – FLAT & CLEAN
   ===================================================== */

/* ===== SOCIAL BUTTON – KEEP ORIGINAL COLOR ===== */
.social-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* ❗ không nền */
    border: none;
    padding: 0;
    box-shadow: none; /* ❗ không bóng */
    border-radius: 0; /* icon tự quyết */

    cursor: pointer;
}

    /* Zalo image: giữ nguyên màu file */
    .social-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Messenger & Close: giữ màu gốc của font-icon */
    .social-btn i {
        font-size: 36px;
        line-height: 1;
        color: inherit; /* ❗ không override màu */
    }

/* =====================================================
   CLOSE BUTTON
   ===================================================== */

.fab-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #bdbdbd;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

    .fab-close i {
        font-size: 14px;
    }

/* =====================================================
   MOBILE TUNING
   ===================================================== */

@media (max-width: 768px) {
    .floating-wrapper {
        right: 14px;
        bottom: 18%;
    }

    .call-pill {
        min-width: 195px;
        height: 36px;
        font-size: 12.5px;
    }

    .floating-button {
        width: 52px;
        height: 52px;
    }
}