/* ===============================
   WOOTECH CONTACT (MODERN UI)
================================ */

.wootech-contact {
    position: fixed;
    z-index: 999999;
}

/* ==== POSITION SYSTEM ==== */
.wootech-contact.pos-x-left  { left: 25px;  right: auto; }
.wootech-contact.pos-x-right { right: 25px; left: auto;  }

/* Label tooltip: đảo hướng khi nút ở bên phải */
.wootech-contact.pos-x-right .contact-label {
    left: auto;
    right: 60px;
    transform: translateX(10px);
}
.wootech-contact.pos-x-right .contact-btn:hover .contact-label {
    transform: translateX(0);
}

/* Base list reset */
.wootech-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==== COMMON BUTTON STYLE ==== */
.contact-btn {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    position: relative;
    border-radius: 50px;
    background: transparent;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-btn:hover .contact-icon {
    transform: scale(1.1);
}

.contact-label {
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    left: 60px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.contact-btn:hover .contact-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Brand Colors */
.btn-zalo .contact-icon { background: #0068ff; }
.btn-messenger .contact-icon { background: linear-gradient(45deg, #00B2FF, #006AFF); }
.btn-telegram .contact-icon { background: #24A1DE; }
.btn-whatsapp .contact-icon { background: #25D366; }
.btn-hotline .contact-icon { background: #22c55e; }
.btn-form .contact-icon { background: #007bb5; }

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: wootech-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hotline .contact-icon .pulse-ring { background: #22c55e; }
.wootech-smart-toggle .pulse-ring { background: #0f58b8; }

@keyframes wootech-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================
   STYLE 1: CLASSIC (VERTICAL STACK)
========================================= */
.wootech-contact.style-classic .wootech-smart-toggle {
    display: none;
}

/* =========================================
   STYLE 2: SMART BUBBLE (EXPAND ON CLICK)
========================================= */
.wootech-contact.style-smart {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wootech-smart-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #41b349, #0f58b8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wootech-smart-toggle svg {
    width: 28px;
    height: 28px;
    transition: transform 0.35s ease;
}

/* List ẩn mặc định trong Smart mode */
.wootech-contact.style-smart .wootech-contact-list {
    position: absolute;
    bottom: 70px;
    left: 0;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* Khi mở: JS thêm class .is-open vào .wootech-contact */
.wootech-contact.style-smart.is-open .wootech-contact-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wootech-contact.style-smart.is-open .wootech-smart-toggle {
    transform: scale(0.9);
}

.wootech-contact.style-smart.is-open .wootech-smart-toggle svg {
    transform: rotate(45deg);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .wootech-contact.pos-x-left  { left: 15px; }
    .wootech-contact.pos-x-right { right: 15px; }
    .contact-label {
        display: none;
    }
}
