/**
 * Mobile chat bubble - left side, vertical label. Opens Tawk chat (same as header icon).
 * Only visible below the mobile breakpoint (see .mb-mobile-chat-visible + JS).
 */

/* Hide on desktop */
.mb-mobile-chat-bubble-wrap {
    display: none !important;
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 999998;
}

.mb-mobile-chat-bubble-wrap.mb-mobile-chat-visible {
    width: auto;
    height: auto;
    pointer-events: auto;
}

/* Mobile only - JS adds .mb-mobile-chat-visible based on settings mobile_breakpoint */
@media (max-width: 1024px) {
    .mb-mobile-chat-bubble-wrap {
        display: none !important;
    }

    .mb-mobile-chat-bubble-wrap.mb-mobile-chat-visible {
        display: block !important;
    }

    /* Bubble: rectangle, vertical text, fixed ~50% down left */
    .mb-mobile-chat-bubble {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        min-height: 120px;
        padding: 12px 8px;
        margin: 0;
        border: none;
        border-radius: 0 8px 8px 0;
        background: linear-gradient(135deg, #5DB737 0%, #4a9a2e 100%);
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
        z-index: 999999;
        -webkit-tap-highlight-color: transparent;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }

    .mb-mobile-chat-bubble:hover,
    .mb-mobile-chat-bubble:focus {
        box-shadow: 3px 3px 16px rgba(0, 0, 0, 0.25);
        outline: none;
    }

    .mb-mobile-chat-bubble:active {
        transform: translateY(-50%) scale(0.98);
    }

    .mb-mobile-chat-bubble-label {
        display: inline-block;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
}
