
.scilabel-chat,
.scilabel-chat * {
    box-sizing: border-box;
}

.scilabel-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.scilabel-chat-launcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px 10px 11px;
    background: #071c2c;
    color: #fff;
    box-shadow:
        0 14px 36px
        rgba(7, 28, 44, .28);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.scilabel-chat-launcher:hover {
    transform: translateY(-1px);
}

.scilabel-chat-launcher-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #36d2d6;
    color: #071c2c;
    font-size: 17px;
}

.scilabel-chat-badge {
    position: absolute;
    top: -7px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    padding: 0 6px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
}

.scilabel-chat-window {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(390px, calc(100vw - 30px));
    height: min(610px, calc(100vh - 115px));
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(7, 28, 44, .1);
    border-radius: 20px;
    box-shadow:
        0 24px 70px
        rgba(7, 28, 44, .24);
}

.scilabel-chat-window:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.scilabel-chat-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    background: #071c2c;
    color: #fff;
}

.scilabel-chat-header strong {
    display: block;
    font-size: 17px;
}

.scilabel-chat-header span {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
}

.scilabel-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.scilabel-chat-messages {
    flex: 1 1 auto;
    min-height: 100px;
    overflow-y: auto;
    padding: 18px;
    background: #f6f9fb;
}

.scilabel-chat-message {
    max-width: 86%;
    margin: 0 0 14px;
}

.scilabel-chat-message span {
    display: block;
    margin: 0 0 4px;
    color: #657581;
    font-size: 10px;
    font-weight: 700;
}

.scilabel-chat-message > div {
    padding: 11px 13px;
    border-radius: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.scilabel-chat-message.team {
    margin-right: auto;
}

.scilabel-chat-message.team > div {
    background: #fff;
    color: #071c2c;
    border: 1px solid #dce5ea;
    border-bottom-left-radius: 4px;
}

.scilabel-chat-message.visitor {
    margin-left: auto;
}

.scilabel-chat-message.visitor span {
    text-align: right;
}

.scilabel-chat-message.visitor > div {
    background: #0b75c9;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.scilabel-chat-start {
    flex: 0 0 auto;
    padding: 16px 18px;
    border-top: 1px solid #e4ebef;
    background: #fff;
}

.scilabel-chat-start p {
    margin: 0 0 12px;
    color: #071c2c;
    font-size: 13px;
    font-weight: 700;
}

.scilabel-chat-start label {
    display: block;
    margin-bottom: 9px;
    color: #344954;
    font-size: 11px;
    font-weight: 700;
}

.scilabel-chat-start input,
.scilabel-chat-start textarea,
.scilabel-chat-compose textarea {
    width: 100%;
    margin-top: 4px;
    border: 1px solid #ccd9df;
    border-radius: 9px;
    padding: 9px 10px;
    background: #fff;
    color: #071c2c;
    font: inherit;
    outline: none;
}

.scilabel-chat-start input:focus,
.scilabel-chat-start textarea:focus,
.scilabel-chat-compose textarea:focus {
    border-color: #0b75c9;
    box-shadow:
        0 0 0 2px
        rgba(11, 117, 201, .1);
}

.scilabel-chat-start-button,
.scilabel-chat-send {
    border: 0;
    border-radius: 9px;
    background: #0b75c9;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.scilabel-chat-start-button {
    width: 100%;
    padding: 11px 14px;
}

.scilabel-chat-start small {
    display: block;
    margin-top: 9px;
    color: #788891;
    font-size: 10px;
    line-height: 1.4;
}

.scilabel-chat-compose {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 11px;
    border-top: 1px solid #e1e8ec;
    background: #fff;
}

.scilabel-chat-compose[hidden] {
    display: none;
}

.scilabel-chat-compose textarea {
    min-height: 44px;
    max-height: 110px;
    resize: vertical;
}

.scilabel-chat-send {
    min-width: 67px;
    min-height: 44px;
    padding: 8px 12px;
}

.scilabel-chat-footer {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-top: 1px solid #edf1f3;
    background: #fff;
    text-align: center;
}

.scilabel-chat-footer span {
    color: #73828b;
    font-size: 9px;
}

@media (max-width: 600px) {

    .scilabel-chat {
        right: 12px;
        bottom: 12px;
    }

    .scilabel-chat-window {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 78px;
        width: auto;
        height: min(
            650px,
            calc(100dvh - 95px)
        );
        border-radius: 17px;
    }

    .scilabel-chat-launcher-label {
        display: none;
    }

    .scilabel-chat-launcher {
        width: 56px;
        height: 56px;
        padding: 11px;
        justify-content: center;
    }

    .scilabel-chat-launcher-icon {
        width: 34px;
        height: 34px;
    }
}


/* ==========================================================
   SCILABEL LIVE CHAT V1.0.1
   Explicit open/close controller
   ========================================================== */

#scilabel-chat .scilabel-chat-window {
    display: none !important;
}

#scilabel-chat .scilabel-chat-window.scilabel-chat-window-open {
    display: flex !important;
    flex-direction: column !important;
}

#scilabel-chat.scilabel-chat-open .scilabel-chat-window {
    display: flex !important;
    flex-direction: column !important;
}

#scilabel-chat .scilabel-chat-window[hidden] {
    display: none !important;
}

#scilabel-chat.scilabel-chat-open
.scilabel-chat-window[hidden] {
    display: flex !important;
}

#scilabel-chat .scilabel-chat-launcher {
    pointer-events: auto !important;
    touch-action: manipulation;
}

#scilabel-chat .scilabel-chat-close,
#scilabel-chat .scilabel-chat-start-button,
#scilabel-chat .scilabel-chat-send {
    pointer-events: auto !important;
    touch-action: manipulation;
}



/* ==========================================================
   SCILABEL LIVE CHAT V1.0.2
   MOBILE PANEL + RESPONSIVE RELIABILITY
   ========================================================== */

#scilabel-chat {
    box-sizing: border-box;
}

#scilabel-chat *,
#scilabel-chat *::before,
#scilabel-chat *::after {
    box-sizing: border-box;
}

/* CLOSED STATE */

#scilabel-chat .scilabel-chat-window {
    display: none !important;
}

#scilabel-chat .scilabel-chat-launcher {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer;
}

/* OPEN STATE */

#scilabel-chat.scilabel-chat-open
.scilabel-chat-window,
#scilabel-chat
.scilabel-chat-window.scilabel-chat-window-open {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/*
 * Do not let an old hidden attribute keep
 * the V1.0.2 open panel collapsed.
 */
#scilabel-chat.scilabel-chat-open
.scilabel-chat-window[hidden] {
    display: flex !important;
}

/* DESKTOP SAFETY */

@media (min-width: 769px) {

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window {
        width: min(390px, calc(100vw - 40px)) !important;
        max-width: 390px !important;
        height: min(650px, calc(100vh - 110px)) !important;
        max-height: 650px !important;
        min-height: 430px !important;
        overflow: hidden !important;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    html.scilabel-chat-is-open {
        overflow-x: hidden !important;
    }

    #scilabel-chat {
        position: fixed !important;
        right: 14px !important;
        bottom: 14px !important;
        left: auto !important;
        top: auto !important;
        z-index: 2147483000 !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
    }

    /*
     * Launcher remains compact only while
     * the conversation is closed.
     */

    #scilabel-chat .scilabel-chat-launcher {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        top: auto !important;

        width: auto !important;
        min-width: 58px !important;
        max-width: calc(100vw - 28px) !important;

        min-height: 56px !important;
        height: auto !important;

        padding: 12px 16px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;

        border-radius: 999px !important;
        white-space: nowrap !important;
    }

    /*
     * FULL MOBILE CHAT PANEL
     */

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        position: fixed !important;

        left: 10px !important;
        right: 10px !important;

        top: max(
            10px,
            env(safe-area-inset-top)
        ) !important;

        bottom: max(
            10px,
            env(safe-area-inset-bottom)
        ) !important;

        width: auto !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;

        border-radius: 18px !important;

        transform: none !important;

        visibility: visible !important;
        opacity: 1 !important;

        z-index: 2147483001 !important;
    }

    /*
     * Once open, hide the launcher behind
     * the expanded panel.
     */

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-launcher {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /*
     * Header remains visible.
     */

    #scilabel-chat
    .scilabel-chat-header {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    /*
     * Message area consumes available
     * vertical space.
     */

    #scilabel-chat
    .scilabel-chat-messages {
        flex: 1 1 auto !important;

        min-height: 100px !important;
        max-height: none !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling:
            touch !important;
    }

    /*
     * Start form can scroll on very small
     * devices / landscape orientation.
     */

    #scilabel-chat
    .scilabel-chat-start {
        flex: 1 1 auto !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling:
            touch !important;
    }

    /*
     * Composer stays usable at bottom.
     */

    #scilabel-chat
    .scilabel-chat-compose {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    #scilabel-chat
    input,
    #scilabel-chat
    textarea,
    #scilabel-chat
    button {
        max-width: 100% !important;
        font-size: 16px !important;
    }

    #scilabel-chat
    textarea {
        resize: none !important;
    }

    #scilabel-chat
    .scilabel-chat-close,
    #scilabel-chat
    .scilabel-chat-start-button,
    #scilabel-chat
    .scilabel-chat-send {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
}

/* SMALL PHONES */

@media (max-width: 420px) {

    #scilabel-chat {
        right: 10px !important;
        bottom: 10px !important;
    }

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        left: 6px !important;
        right: 6px !important;

        top: max(
            6px,
            env(safe-area-inset-top)
        ) !important;

        bottom: max(
            6px,
            env(safe-area-inset-bottom)
        ) !important;

        border-radius: 14px !important;
    }
}

/* SHORT / LANDSCAPE MOBILE */

@media (
    max-width: 768px
) and (
    max-height: 520px
) {

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        top: 4px !important;
        bottom: 4px !important;
        border-radius: 10px !important;
    }
}



/* ==========================================================
   SCILABEL LIVE CHAT V1.0.3
   AUTHORITATIVE MOBILE LAUNCHER / PANEL
   ========================================================== */

#scilabel-chat,
#scilabel-chat *,
#scilabel-chat *::before,
#scilabel-chat *::after {
    box-sizing: border-box !important;
}

/* ----------------------------------------------------------
   CLOSED LAUNCHER
   ---------------------------------------------------------- */

#scilabel-chat .scilabel-chat-launcher {
    width: auto !important;
    height: 54px !important;

    min-width: 150px !important;
    min-height: 54px !important;

    max-width: calc(100vw - 32px) !important;

    padding: 0 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    border-radius: 999px !important;

    white-space: nowrap !important;
    overflow: visible !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    pointer-events: auto !important;
    touch-action: manipulation !important;
}

#scilabel-chat
.scilabel-chat-v103-label {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: auto !important;
    height: auto !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;

    font: inherit !important;
    line-height: 1 !important;
}

/* Remove old icon/pseudo-element artifacts */

#scilabel-chat
.scilabel-chat-launcher::before,
#scilabel-chat
.scilabel-chat-launcher::after,
#scilabel-chat
.scilabel-chat-v103-label::before,
#scilabel-chat
.scilabel-chat-v103-label::after {
    content: none !important;
    display: none !important;
}

/* ----------------------------------------------------------
   PANEL BASE
   ---------------------------------------------------------- */

#scilabel-chat
.scilabel-chat-window {
    display: none !important;
}

#scilabel-chat.scilabel-chat-open
.scilabel-chat-window,
#scilabel-chat
.scilabel-chat-window.scilabel-chat-window-open {
    display: flex !important;

    flex-direction: column !important;

    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto !important;

    overflow: hidden !important;
}

/* ----------------------------------------------------------
   DESKTOP
   ---------------------------------------------------------- */

@media (min-width: 769px) {

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        width: min(
            390px,
            calc(100vw - 40px)
        ) !important;

        max-width: 390px !important;

        height: min(
            650px,
            calc(100vh - 120px)
        ) !important;

        min-height: 430px !important;
        max-height: 650px !important;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    html.scilabel-chat-page-open,
    body.scilabel-chat-page-open {
        overflow: hidden !important;
    }

    #scilabel-chat {

        position: fixed !important;

        top: auto !important;
        left: auto !important;

        right: 16px !important;

        /*
         * Raised from bottom so it does not sit
         * directly on top of the language widget.
         */
        bottom: 86px !important;

        width: auto !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        z-index: 2147483000 !important;
    }

    #scilabel-chat
    .scilabel-chat-launcher {

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: auto !important;

        min-width: 150px !important;
        max-width: calc(100vw - 32px) !important;

        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;

        padding: 0 20px !important;

        border-radius: 999px !important;

        transform: none !important;

        visibility: visible !important;
        opacity: 1 !important;

        overflow: visible !important;

        white-space: nowrap !important;

        pointer-events: auto !important;
    }

    /*
     * Hide launcher while the full panel is open.
     */

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-launcher {

        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /*
     * FULL MOBILE CHAT PANEL
     */

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        position: fixed !important;

        top: max(
            8px,
            env(safe-area-inset-top)
        ) !important;

        right: 8px !important;

        bottom: max(
            8px,
            env(safe-area-inset-bottom)
        ) !important;

        left: 8px !important;

        width: auto !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;

        transform: none !important;

        border-radius: 16px !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;

        visibility: visible !important;
        opacity: 1 !important;

        pointer-events: auto !important;

        z-index: 2147483001 !important;
    }

    #scilabel-chat
    .scilabel-chat-header {

        flex: 0 0 auto !important;

        width: 100% !important;

        position: relative !important;

        z-index: 2 !important;
    }

    #scilabel-chat
    .scilabel-chat-messages {

        flex: 1 1 auto !important;

        width: 100% !important;

        min-height: 100px !important;
        max-height: none !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling:
            touch !important;
    }

    #scilabel-chat
    .scilabel-chat-start {

        flex: 1 1 auto !important;

        width: 100% !important;

        min-height: 0 !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling:
            touch !important;
    }

    #scilabel-chat
    .scilabel-chat-compose {

        flex: 0 0 auto !important;

        width: 100% !important;

        position: relative !important;

        bottom: auto !important;
    }

    /*
     * 16px prevents iOS Safari zooming form
     * controls when they receive focus.
     */

    #scilabel-chat input,
    #scilabel-chat textarea,
    #scilabel-chat select,
    #scilabel-chat button {

        max-width: 100% !important;

        font-size: 16px !important;
    }

    #scilabel-chat textarea {

        resize: none !important;

        max-height: 120px !important;
    }

    #scilabel-chat
    .scilabel-chat-close,
    #scilabel-chat
    .scilabel-chat-start-button,
    #scilabel-chat
    .scilabel-chat-send {

        pointer-events: auto !important;

        touch-action:
            manipulation !important;
    }
}

/* ----------------------------------------------------------
   SMALL PHONES
   ---------------------------------------------------------- */

@media (max-width: 420px) {

    #scilabel-chat {

        right: 10px !important;
        bottom: 84px !important;
    }

    #scilabel-chat
    .scilabel-chat-launcher {

        min-width: 142px !important;

        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;

        padding:
            0 17px !important;
    }

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        top: max(
            5px,
            env(safe-area-inset-top)
        ) !important;

        right: 5px !important;

        bottom: max(
            5px,
            env(safe-area-inset-bottom)
        ) !important;

        left: 5px !important;

        border-radius: 13px !important;
    }
}

/* ----------------------------------------------------------
   MOBILE LANDSCAPE / SHORT SCREEN
   ---------------------------------------------------------- */

@media (max-width: 768px) and (max-height: 520px) {

    #scilabel-chat.scilabel-chat-open
    .scilabel-chat-window,
    #scilabel-chat
    .scilabel-chat-window.scilabel-chat-window-open {

        top: 3px !important;
        right: 3px !important;
        bottom: 3px !important;
        left: 3px !important;

        border-radius: 9px !important;
    }
}

