/* FZONE V23 — additive styling only; previous WhatsApp, bookings and chat stay untouched. */
.rh23-client-presence{display:flex!important;align-items:center;gap:6px;font-weight:700;font-size:11px;opacity:1!important}
.rh23-presence-dot{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px #94a3b829}
.rh23-presence-dot.is-online{background:#22c55e;box-shadow:0 0 0 3px #22c55e38}
.rh23-presence-dot.is-offline{background:#ef4444;box-shadow:0 0 0 3px #ef444438}
.rh23-launcher-presence{position:absolute;bottom:-2px;right:0;border:2px solid #fff;width:15px;height:15px;z-index:1}
.rh23-sound-button{width:35px;height:35px;border-radius:10px;border:1px solid #ffffff50;background:#ffffff24;color:#fff;font-size:16px;cursor:pointer}
.rh23-sound-button[aria-pressed="false"]{opacity:.60}
.rh23-chat-availability{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 17px;margin:12px 0 17px;border:1px solid #d9e7ea;background:#fff;border-radius:15px;box-shadow:0 4px 19px #193a4510}
.rh23-chat-availability>strong{color:#133b53;font-size:14px}.rh23-chat-availability .rh23-presence-dot{margin-inline-start:6px}
.rh23-availability-state{font-weight:700;font-size:12px;color:#627989}
.rh23-control{border:1px solid #cbdfe4;background:#f0f8fa;border-radius:11px;padding:10px 14px;font-family:inherit;font-size:13px;color:#143c53;cursor:pointer}
.rh23-control:disabled{opacity:.55;cursor:wait}
.rh23-control.rh23-is-online{background:#078875;border-color:#078875;color:#fff}
.rh23-chat-availability small{font-size:11px;color:#6c8594;flex-basis:100%}
.rh23-sound-note{font-size:11px;color:#6c8594;flex-basis:100%}
@media(max-width:650px){.rh23-chat-availability{align-items:stretch}.rh23-control{flex:1}.rh23-chat-availability>strong{flex-basis:100%}}


/* FZONE_V24_ROUND_STACKED_CHAT_BUTTONS */
/* Override appearance only; retain the original click and accessibility actions. */
.rh18-whatsapp-float,
.rh22-launcher {
    position: fixed !important;
    left: 18px !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    min-height: 92px !important;
    max-width: 92px !important;
    max-height: 92px !important;
    padding: 8px 5px !important;
    gap: 5px !important;
    border-radius: 50% !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    color: #fff !important;
    text-decoration: none !important;
}
.rh18-whatsapp-float {
    bottom: 18px !important;
    z-index: 1050 !important;
    background: linear-gradient(155deg, #21c877, #08773e) !important;
    box-shadow: 0 10px 27px rgba(8, 119, 62, .35) !important;
}
.rh22-launcher {
    bottom: 122px !important;
    z-index: 1080 !important;
    background: linear-gradient(155deg, #0f5f89, #0a304b) !important;
    box-shadow: 0 10px 27px rgba(10, 48, 75, .35) !important;
}
.rh18-whatsapp-float > svg,
.rh22-launcher > svg {
    display: block !important;
    flex: 0 0 auto !important;
    width: 25px !important;
    height: 25px !important;
}
/* WhatsApp already contains a label; keep its accessible name on the link. */
.rh18-whatsapp-float > span { display: none !important; }
.rh18-whatsapp-float::after,
.rh22-launcher::after {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
}
.rh22-launcher::after { content: "دردشة مباشر"; }
.rh18-whatsapp-float::after { content: "دردشة واتس"; }
/* Preserve visible notification dot and V23 availability indicator. */
.rh22-launcher .rh22-launcher-dot { top: 3px !important; right: 3px !important; }
.rh22-launcher .rh23-launcher-presence { bottom: 4px !important; right: 4px !important; }
/* Keep the chat panel above the vertical dock and inside the screen. */
.rh22-panel {
    left: 18px !important;
    right: auto !important;
    bottom: 225px !important;
    height: min(510px, calc(100dvh - 247px)) !important;
    max-height: calc(100dvh - 247px) !important;
}
@media (max-width: 700px) {
    .rh18-whatsapp-float,
    .rh22-launcher {
        left: 11px !important;
        width: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        height: 84px !important;
        min-height: 84px !important;
        max-height: 84px !important;
        padding: 7px 4px !important;
    }
    .rh18-whatsapp-float { bottom: 12px !important; }
    .rh22-launcher { bottom: 107px !important; }
    .rh22-panel {
        left: 9px !important;
        bottom: 202px !important;
        width: calc(100vw - 18px) !important;
        height: min(530px, calc(100dvh - 221px)) !important;
        max-height: calc(100dvh - 221px) !important;
    }
}
@media (max-height: 560px) {
    /* On short landscape screens show the chat full height so it stays usable. */
    .rh22-panel {
        left: 9px !important;
        bottom: 9px !important;
        width: min(385px, calc(100vw - 18px)) !important;
        height: calc(100dvh - 18px) !important;
        max-height: calc(100dvh - 18px) !important;
    }
}


/* FZONE_V24B_ICON_ONLY_BUTTONS */
/* Smaller icon-only circles for floating live chat and WhatsApp buttons. */
.rh18-whatsapp-float,
.rh22-launcher {
    left: 18px !important;
    right: auto !important;
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    gap: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-indent: 0 !important;
}
.rh18-whatsapp-float {
    bottom: 18px !important;
    background: linear-gradient(155deg, #21c877, #08773e) !important;
    box-shadow: 0 10px 22px rgba(8, 119, 62, .28) !important;
}
.rh22-launcher {
    bottom: 92px !important;
    background: linear-gradient(155deg, #0f5f89, #0a304b) !important;
    box-shadow: 0 10px 22px rgba(10, 48, 75, .28) !important;
}
.rh18-whatsapp-float > svg,
.rh22-launcher > svg {
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    display: block !important;
    flex: 0 0 auto !important;
}
/* Remove all visible text/labels inside and after buttons. */
.rh18-whatsapp-float > span,
.rh22-launcher > span,
.rh18-whatsapp-float::after,
.rh22-launcher::after {
    display: none !important;
    content: none !important;
}
/* Keep status / notification dots visible and neatly positioned. */
.rh22-launcher .rh22-launcher-dot {
    top: 4px !important;
    right: 4px !important;
}
.rh22-launcher .rh23-launcher-presence {
    bottom: 4px !important;
    right: 4px !important;
}
/* Raise panel just above the new compact buttons. */
.rh22-panel {
    left: 18px !important;
    right: auto !important;
    bottom: 166px !important;
    height: min(510px, calc(100dvh - 186px)) !important;
    max-height: calc(100dvh - 186px) !important;
}
@media (max-width: 700px) {
    .rh18-whatsapp-float,
    .rh22-launcher {
        left: 12px !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }
    .rh18-whatsapp-float { bottom: 12px !important; }
    .rh22-launcher { bottom: 78px !important; }
    .rh18-whatsapp-float > svg,
    .rh22-launcher > svg {
        width: 22px !important;
        height: 22px !important;
    }
    .rh22-panel {
        left: 9px !important;
        bottom: 145px !important;
        width: calc(100vw - 18px) !important;
        height: min(530px, calc(100dvh - 163px)) !important;
        max-height: calc(100dvh - 163px) !important;
    }
}
