/* Desktop Styles - Screen >= 768px */
@media only screen and (min-width: 768px) {
    .hvd-contact-wrapper {
        position: fixed;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        z-index: 9999999;
        bottom: 50px;
    }

    .hvd-contact-wrapper.left {
        left: 20px;
    }

    .hvd-contact-wrapper.right {
        right: 20px;
    }

    .hvd-contact-wrapper .item-contact {
        position: relative;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hvd-contact-wrapper .item-contact a {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .hvd-contact-wrapper .item-contact span {
        position: absolute;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .hvd-contact-wrapper .item-contact img {
        width: 24px;
        height: 24px;
    }

    .cmoz-alo-circle,
    .cmoz-alo-circle-fill {
        position: absolute;
        border-radius: 50%;
    }

    .cmoz-alo-circle {
        width: 60px;
        height: 60px;
        border: 2px solid #ffffff;
        opacity: 0.5;
        z-index: 1;
        position: absolute;
    }

    .cmoz-alo-circle-fill {
        width: 60px;
        height: 60px;
        background-color: rgba(17, 130, 252, 0.45);
        opacity: 0.75;
        z-index: 0;
    }

    .hieu-ung {
        animation-duration: 1s;
        animation-fill-mode: both;
    }

    .hieu-ung.infinite {
        animation-iteration-count: infinite;
    }

    .hieu-ung-zoom-in {
        animation-name: hieuung_Zoom_in;
    }

    @keyframes hieuung_Zoom_in {
        from {
            opacity: 0;
            transform: scale3d(0.3, 0.3, 0.3);
        }

        50% {
            opacity: 1;
        }
    }

    .pulse_zalo {
        animation-name: pulse_zalo;
    }

    @keyframes pulse_zalo {

        from,
        to {
            transform: scale3d(1, 1, 1);
        }

        50% {
            transform: scale3d(1.05, 1.05, 1.05);
        }
    }

    .phone-chinh-container span {
        background: #C43B3B;
    }

    .phone-phu-container span {
        background: #00b894;
    }

    .zalo-container span {
        background: #43A0F5;
    }

    .whatsapp-container span {
        background: #25D366;
    }

    .messenger-container span {
        background: #4969FF;
    }

    .telegram-container span {
        background: #0088cc;
    }

    .wechat-container span {
        background: #09B83E;
    }

    .google_map-container span {
        background: #F3B603;
    }

    .custom-contact-container span {
        background: #e1306c;
        /* Default color, can be changed */
    }

    /* Custom Contact Popup Desktop */
    .custom-contact-popup {
        display: none;
        position: absolute;
        bottom: 0;
        width: 300px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        overflow: hidden;
        z-index: 1000;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform-origin: bottom center;
    }

    .custom-contact-popup.open {
        opacity: 1;
    }

    /* Positioning based on parent wrapper alignment */
    .hvd-contact-wrapper.left .custom-contact-popup {
        left: 70px;
        /* Offset from icon */
        transform: translateX(-20px) scale(0.9);
    }

    .hvd-contact-wrapper.left .custom-contact-popup.open {
        transform: translateX(0) scale(1);
    }

    .hvd-contact-wrapper.right .custom-contact-popup {
        right: 70px;
        /* Offset from icon */
        transform: translateX(20px) scale(0.9);
    }

    .hvd-contact-wrapper.right .custom-contact-popup.open {
        transform: translateX(0) scale(1);
    }

    .custom-contact-popup-header {
        background: #f1f1f1;
        padding: 5px 10px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .close-popup {
        cursor: pointer;
        font-size: 20px;
        font-weight: bold;
        color: #888;
        line-height: 1;
    }

    .close-popup:hover {
        color: #333;
    }

    .custom-contact-popup-content {
        padding: 15px;
        max-height: 400px;
        overflow-y: auto;
    }
}