/* TSTS Floating Contact Widget CSS */

.tsts-fc-widget-container {
    position: fixed;
    bottom: 25px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Positions configuration */
.tsts-fc-widget-container.pos-bottom-right {
    right: 25px;
}
.tsts-fc-widget-container.pos-bottom-left {
    left: 25px;
}
.tsts-fc-widget-container.pos-bottom-center {
    left: 50%;
    transform: translateX(-50%);
}

/* Main Trigger Button */
.tsts-fc-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tsts-fc-trigger-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.tsts-fc-trigger-btn:active {
    transform: scale(0.95);
}
.tsts-fc-trigger-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.2px;
}

/* Close Icon trigger state overrides */
.tsts-fc-widget-container.is-expanded .tsts-fc-trigger-btn {
    background-color: #ef4444 !important; /* turns red like the close button in the image */
}

/* Pulse animation effect */
.tsts-fc-trigger-btn.tsts-pulse-active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: tsts-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes tsts-pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* Submenu container */
.tsts-fc-submenus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.85);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    width: 60px;
}

.tsts-fc-widget-container.is-expanded .tsts-fc-submenus {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Sub-items (Zalo, Messenger, WhatsApp, Telegram, Hotline) */
.tsts-fc-sub-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    position: relative;
}
.tsts-fc-sub-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}
.tsts-fc-sub-item svg {
    width: 20px;
    height: 20px;
}

/* Zalo text-based design */
.tsts-fc-sub-item.tsts-fc-zalo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.tsts-fc-sub-item.tsts-fc-zalo .zalo-text {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Tooltips */
.tsts-fc-tooltip {
    position: absolute;
    background-color: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Tooltip placements based on positions */
.pos-bottom-right .tsts-fc-tooltip {
    right: 65px;
    transform: translateX(10px);
}
.pos-bottom-left .tsts-fc-tooltip {
    left: 65px;
    transform: translateX(-10px);
}
.pos-bottom-center .tsts-fc-tooltip {
    left: 65px;
    transform: translateX(-10px);
}

.tsts-fc-sub-item:hover .tsts-fc-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    .tsts-fc-widget-container {
        bottom: 20px;
    }
    .tsts-fc-widget-container.pos-bottom-right {
        right: 20px;
    }
    .tsts-fc-widget-container.pos-bottom-left {
        left: 20px;
    }
    
    .tsts-fc-trigger-btn {
        width: 52px;
        height: 52px;
    }
    .tsts-fc-sub-item {
        width: 44px;
        height: 44px;
    }
    .tsts-fc-submenus {
        width: 52px;
        gap: 10px;
    }
}
