/* Steck Support Widget - Realistic Style */
.steck-support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    /* Hidden by default for delay */
    flex-direction: column;
    align-items: flex-end;
    /* Align to right */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.steck-support-widget.visible {
    display: flex;
    animation: steck-fadeIn 0.5s ease-out forwards;
}

.steck-avatar-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.steck-avatar-wrapper:hover {
    transform: scale(1.05);
}

.steck-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    background: #fff;
    position: relative;
}

.steck-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face */
    transform: scale(1.1);
    /* Zoom slightly */
}

/* Online Status Indicator */
.steck-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #44b700;
    /* WhatsApp Greenish */
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(68, 183, 0, 0.2);
    z-index: 2;
}

.steck-status::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.8;
    animation: steck-pulse-ring 1.2s infinite;
}

/* Chat Bubble Tooltip */
.steck-message-bubble {
    background: #fff;
    color: #1f2937;
    padding: 12px 20px;
    border-radius: 20px;
    border-bottom-right-radius: 4px;
    /* Callout style */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    opacity: 0;
    transform: translateX(10px) scale(0.95);
    animation: steck-popIn 0.4s ease-out forwards 0.5s;
    /* Delay after avatar */
    max-width: 250px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steck-message-bubble i {
    color: #f59e0b;
    /* Attention color */
}

.steck-close-btn {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.steck-support-widget:hover .steck-close-btn {
    opacity: 1;
}

/* WhatsApp Button Action */
.steck-whatsapp-action {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.steck-whatsapp-action:hover {
    background: #1ebc57;
    transform: translateY(0) scale(1.02);
}

.steck-support-widget:hover .steck-whatsapp-action {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animations */
@keyframes steck-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes steck-popIn {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes steck-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .steck-support-widget {
        bottom: 20px;
        right: 15px;
    }

    .steck-avatar {
        width: 55px;
        height: 55px;
    }

    .steck-message-bubble {
        font-size: 13px;
        padding: 10px 16px;
    }
}