/* Global Floating Contact Widget Styles (NexContact) */
:root {
    --primary-orange: #d25000;
}

.nhp-nex-contact-float-button {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.nhp-nex-contact-float-button .contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nhp-nex-contact-float-button .contact-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.nhp-nex-contact-float-button .contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nhp-nex-contact-float-button .phone-btn-container,
.nhp-nex-contact-float-button .zalo-btn-container,
.nhp-nex-contact-float-button .messenger-btn-container {
    position: relative;
}

.nhp-nex-contact-float-button .nhp-phone-numbers-popup,
.nhp-nex-contact-float-button .nhp-zalo-links-popup,
.nhp-nex-contact-float-button .nhp-messenger-links-popup {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 9998;
}

.nhp-nex-contact-float-button .nhp-phone-numbers-popup.show,
.nhp-nex-contact-float-button .nhp-zalo-links-popup.show,
.nhp-nex-contact-float-button .nhp-messenger-links-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Small triangle pointer for the popup */
.nhp-nex-contact-float-button .nhp-phone-numbers-popup::after,
.nhp-nex-contact-float-button .nhp-zalo-links-popup::after,
.nhp-nex-contact-float-button .nhp-messenger-links-popup::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
}

.nhp-nex-contact-float-button .nhp-phone-number-item,
.nhp-nex-contact-float-button .nhp-zalo-link-item,
.nhp-nex-contact-float-button .nhp-messenger-link-item {
    display: flex;
    align-items: center;
    color: #3d2b1f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhp-nex-contact-float-button .nhp-phone-number-item:hover,
.nhp-nex-contact-float-button .nhp-zalo-link-item:hover,
.nhp-nex-contact-float-button .nhp-messenger-link-item:hover {
    color: var(--primary-orange);
}

.nhp-nex-contact-float-button .nhp-phone-label,
.nhp-nex-contact-float-button .nhp-zalo-label,
.nhp-nex-contact-float-button .nhp-messenger-label {
    font-size: 13px;
    font-weight: 500;
    color: #8c7a6b;
    margin-right: 8px;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .nhp-nex-contact-float-button {
        right: 15px;
        bottom: 100px;
        top: auto;
        transform: none;
        gap: 12px;
    }

    .nhp-nex-contact-float-button .contact-btn {
        width: 48px;
        height: 48px;
    }

    .nhp-nex-contact-float-button .nhp-phone-numbers-popup,
    .nhp-nex-contact-float-button .nhp-zalo-links-popup,
    .nhp-nex-contact-float-button .nhp-messenger-links-popup {
        right: 60px;
    }
}
