/* ==========================================================================
   Spenco Floating Hotline Widget (Global Support)
   ========================================================================== */
.spenco-support-widget.support_show {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 9999;
    width: auto;
    height: auto;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
}

.spenco-support-btn.support_showtext {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    background-color: var(--brand-primary, #0B2411);
    border: 2px solid var(--brand-accent, #F8BE15);
    color: var(--brand-accent, #F8BE15);
    box-shadow: 0 8px 24px rgba(11, 36, 17, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    animation: spenco-phone-pulse 2.2s infinite ease-in-out;
}

.spenco-support-btn:hover {
    transform: scale(1.06);
    background-color: #07190b;
    color: var(--brand-accent, #F8BE15);
    text-decoration: none;
}

.spenco-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.spenco-phone-svg {
    width: 24px;
    height: 24px;
    stroke: var(--brand-accent, #F8BE15);
    animation: spenco-phone-wiggle 2.5s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   Desktop (min-width: 768px): Chỉ hiển thị icon di động treo góc phải
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .spenco-support-btn.support_showtext {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
    }

    /* Ẩn hoàn toàn chữ trên desktop */
    .spenco-support-btn .spenco-support-info {
        display: none !important;
    }

    /* Tooltip số hotline khi rê chuột trên desktop */
    .spenco-support-btn::before {
        content: attr(data-hotline);
        position: absolute;
        right: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(6px);
        background-color: rgba(11, 36, 17, 0.95);
        backdrop-filter: blur(4px);
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.02em;
        white-space: nowrap;
        padding: 6px 14px;
        border-radius: 9999px;
        border: 1px solid rgba(248, 190, 21, 0.4);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .spenco-support-btn:hover::before {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* --------------------------------------------------------------------------
   Mobile (max-width: 767px): Dạng pill gọn nhẹ hiển thị số điện thoại
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .spenco-support-widget.support_show {
        right: 16px;
        bottom: 100px;
    }

    .spenco-support-btn.support_showtext {
        height: 44px;
        padding: 6px 14px 6px 10px;
        border-radius: 9999px;
        gap: 8px;
    }

    .spenco-phone-svg {
        width: 20px;
        height: 20px;
    }

    .spenco-support-number {
        font-size: 13px;
        font-weight: 700;
        color: #FFFFFF;
        letter-spacing: 0.02em;
    }
}

/* --------------------------------------------------------------------------
   Keyframe Animations: Hiệu ứng rung và gợn sóng phát xung
   -------------------------------------------------------------------------- */
@keyframes spenco-phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 190, 21, 0.65), 0 8px 24px rgba(11, 36, 17, 0.35);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(248, 190, 21, 0), 0 8px 24px rgba(11, 36, 17, 0.35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(248, 190, 21, 0), 0 8px 24px rgba(11, 36, 17, 0.35);
    }
}

@keyframes spenco-phone-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50% {
        transform: rotate(-14deg);
    }
    20%, 40% {
        transform: rotate(14deg);
    }
    60% {
        transform: rotate(0deg);
    }
}
