/* =============================================================
   FLOATING WHATSAPP + CALL BUTTON (source-matched)
   ============================================================= */
.wecom-wa-button {
    position: fixed;
    bottom: 48px;
    left: 16px;                     /* physical left — always visual left regardless of dir */
    width: 60px;
    height: 60px;
    z-index: 9999;
    display: block;
    text-decoration: none;
}

.wecom-wa-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s;
}

.wecom-wa-button__icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.wecom-wa-button__bubble {
    position: absolute;
    top: 50%;
    left: 72px;                     /* physical — bubble sits to the visual right of the icon */
    transform: translateY(-50%);
    background: var(--color-white);
    color: #4a4a4a;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    display: none;                  /* hidden by default — desktop hover reveals */
}

/* Desktop hover state (≥1025px) — bubble appears beside the icon */
@media (min-width: 1025px) {

    .wecom-wa-button {
        bottom: 24px;
        left: 24px;                     /* physical left — always visual left regardless of dir */
    }

    .wecom-wa-button:hover .wecom-wa-button__icon {
        transform: scale(1.06);
    }

    .wecom-wa-button:hover .wecom-wa-button__bubble {
        display: block;
    }
}

/* Floating "התקשרו אלינו" call button — mobile only, fixed full-width bar at bottom */
.wecom-call-button {
    display: none;                  /* shown on mobile only */
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 39px;
    padding: 10px 0;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.wecom-call-button__icon {
    display: inline-flex;
}

.wecom-call-button__icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .wecom-call-button {
        display: flex;
    }
}

/* Hide both floating buttons whenever the slide-in menu is open so they
   don't sit on top of the panel/backdrop. */
body:has(.site-header.is-open) .wecom-wa-button,
body:has(.site-header.is-open) .wecom-call-button {
    display: none;
}

/**
 * Butterfly and accessibility floating buttons.
 */
#butterfly-trigger {
    width: 50px;

    position: fixed;
    top: calc(140px + 32px);
    left: 0;

    z-index: 10;
}

/**
 * Hide the Glassix chatbot on mobile.
 */
@media only screen and (max-width: 1024px) {

    body > .glassix-container {
        display: none !important;
    }

    #butterfly-trigger {
        width: 38px;
        top: calc(96px + 16px);
    }
}