/* Ramane separat pentru a suprascrie inclusiv stilurile pluginurilor flotante. */
body .artismed-invite {
    position: fixed !important;
    z-index: 2147483647 !important;
    isolation: isolate;
}

/* Pe pagina asistentului nu afisam bannerul Slider Revolution de sub meniu. */
body.artismed-assistant-page rs-module-wrap,
body.artismed-assistant-page rs-fullwidth-wrap,
body.artismed-assistant-page .rev_slider_wrapper,
body.artismed-assistant-page .wpb_revslider_element,
body.artismed-assistant-page .revslider-initialised,
body.artismed-assistant-page .forcefullwidth_wrapper_tp_banner,
body.artismed-assistant-page [id*="_forcefullwidth"],
body.artismed-assistant-page .vc:has(rs-module-wrap),
body.artismed-assistant-page .vc_row:has(rs-module-wrap),
body.artismed-assistant-page .wpb_row:has(rs-module-wrap) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.artismed-msg--assistant a {
    color: var(--artismed-accent);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.artismed-save-pdf {
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.artismed-save-pdf:hover { background: rgba(255,255,255,.2); }
.artismed-print-meta { display: none; }

/* In timpul conversatiei ascundem actiunile flotante ale celorlalte pluginuri. */
body.artismed-chat-session-active #callnowbutton,
body.artismed-chat-session-active .call-now-button,
body.artismed-chat-session-active .call-nowbutton,
body.artismed-chat-session-active #ht-ctc-chat,
body.artismed-chat-session-active .ht-ctc-chat,
body.artismed-chat-session-active .ctc-analytics,
body.artismed-chat-session-active .joinchat,
body.artismed-chat-session-active .qlwapp,
body.artismed-chat-session-active .wa__btn_popup {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 700px) {
    html.artismed-chat-session-active,
    body.artismed-chat-session-active {
        overflow: hidden !important;
        overscroll-behavior: none;
    }
    body.artismed-chat-session-active .artismed-chat.artismed-chat--active {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483646 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        transform: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    body.artismed-chat-session-active .artismed-chat__header,
    body.artismed-chat-session-active .artismed-chat__form,
    body.artismed-chat-session-active .artismed-chat__notice {
        flex: 0 0 auto;
    }
    body.artismed-chat-session-active .artismed-chat__messages {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

@media print {
    @page { margin: 14mm; }
    body * { visibility: hidden !important; }
    .artismed-chat, .artismed-chat * { visibility: visible !important; }
    .artismed-chat {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .artismed-chat__header { background: #176b87 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .artismed-chat__messages { height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; padding: 16px 0 !important; }
    .artismed-msg { break-inside: avoid; }
    .artismed-chat__choices, .artismed-chat__form, .artismed-chat__notice, .artismed-save-pdf, .artismed-status { display: none !important; }
    .artismed-print-meta { display: flex !important; justify-content: space-between; padding: 14px 0 8px; border-bottom: 1px solid #ccc; }
}
