/* T-Mayee WhatsApp Widget v1.1.0 */
#tmayee-wa-wrapper {
    position: fixed;
    bottom: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#tmayee-wa-wrapper.tm-right { right: 24px; align-items: flex-end; }
#tmayee-wa-wrapper.tm-left  { left: 24px;  align-items: flex-start; }

/* BUTTON - Desktop: black base, white icon */
#tmayee-wa-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: tm-pulse 2.5s infinite;
    background: #000;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#tmayee-wa-btn svg { fill: #fff; transition: fill 0.25s ease; }

#tmayee-wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.38); }
#tmayee-wa-btn:active { transform: scale(0.96); }

@keyframes tm-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,0,0,0.3); }
    70%  { box-shadow: 0 0 0 12px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* BUBBLE - full black */
#tmayee-wa-bubble {
    background: #000;
    color: #fff;
    border-radius: 16px;
    border: none;
    padding: 14px 16px 12px;
    max-width: 270px;
    min-width: 220px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
    position: relative;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#tmayee-wa-bubble.tm-bubble-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

#tmayee-wa-wrapper.tm-right #tmayee-wa-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 18px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #000 transparent transparent;
}

#tmayee-wa-wrapper.tm-left #tmayee-wa-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 18px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #000 transparent transparent;
}

#tmayee-wa-bubble-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
    padding: 2px 4px;
}
#tmayee-wa-bubble-close:hover { color: #fff; }

#tmayee-wa-bubble-text {
    margin: 0 18px 12px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#tmayee-wa-bubble-btn {
    display: block;
    background: #fff;
    color: #000 !important;
    text-align: center;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#tmayee-wa-bubble-btn:hover { background: #e8e8e8 !important; color: #000 !important; }

/* Entrance */
@keyframes tm-slidein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
#tmayee-wa-wrapper.tm-visible { animation: tm-slidein 0.4s ease forwards; }

/* MOBILE & TABLET (<=1024px): white base, black icon, black border */
@media (max-width: 1024px) {
    #tmayee-wa-btn {
        width: 52px;
        height: 52px;
        background: #fff !important;
        border: 2.5px solid #000 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        animation: tm-pulse-mobile 2.5s infinite;
    }
    #tmayee-wa-btn svg { fill: #000 !important; }
    #tmayee-wa-btn:hover { background: #f2f2f2 !important; box-shadow: 0 6px 24px rgba(0,0,0,0.2); }

    @keyframes tm-pulse-mobile {
        0%   { box-shadow: 0 0 0 0 rgba(0,0,0,0.18); }
        70%  { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
        100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
    }

    #tmayee-wa-bubble { max-width: 240px; min-width: 190px; }
    #tmayee-wa-wrapper.tm-right { right: 16px; }
    #tmayee-wa-wrapper.tm-left  { left: 16px; }
}
