.smchat-root {
    --smchat-color:#4838ff;
    --smchat-foreground:#fff;
    position:fixed;
    bottom:calc(var(--smchat-bottom,24px) + env(safe-area-inset-bottom,0px));
    z-index:99990;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:14px;
    line-height:1.5;
    color:#0b173c;
    text-align:start;
    box-sizing:border-box;
    width:max-content;
    max-width:calc(100vw - 32px)
}
.smchat-root *,.smchat-root *::before,.smchat-root *::after {
    box-sizing:border-box
}
.smchat-root[hidden],.smchat-root [hidden] {
    display:none!important
}
.smchat-position-right {
    right:var(--smchat-side,20px)
}
.smchat-position-left {
    left:var(--smchat-side,20px)
}
.smchat-root button {
    font:inherit;
    cursor:pointer;
    margin:0;
    text-transform:none;
    letter-spacing:normal;
    min-height:0;
    box-shadow:none;
    width:auto
}
.smchat-root .smchat-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:22px;
    height:22px;
    vertical-align:middle
}
.smchat-root .smchat-icon svg {
    display:block;
    width:100%;
    height:100%;
    overflow:visible
}
.smchat-root .smchat-launcher {
    display:flex;
    align-items:center;
    gap:10px;
    border:0;
    border-radius:999px;
    padding:15px 21px;
    background:var(--smchat-color);
    color:var(--smchat-foreground);
    font-weight:650;
    box-shadow:0 5px 24px #0b173c29;
    min-height:54px;
    max-width:100%;
    overflow-wrap:anywhere
}
.smchat-position-right .smchat-launcher {
    margin-left:auto
}
.smchat-position-left .smchat-launcher {
    margin-right:auto
}
.smchat-root .smchat-launcher:hover {
    filter:brightness(.97);
    transform:translateY(-1px)
}
.smchat-root :is(button,a):focus-visible {
    outline:3px solid #2563eb;
    outline-offset:3px
}
.smchat-root .smchat-panel {
    width:350px;
    max-width:calc(100vw - 32px);
    background:#fff;
    border:1px solid #e5e9f2;
    border-radius:22px;
    box-shadow:0 14px 60px #0b173c2b;
    margin-bottom:14px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    max-height:calc(100dvh - var(--smchat-bottom,24px) - 100px - var(--smchat-toolbar,0px))
}
.smchat-root .smchat-panel-head {
    position:relative;
    background:var(--smchat-color);
    color:var(--smchat-foreground);
    padding:22px 24px 20px;
    flex-shrink:0
}
.smchat-root .smchat-head-mark {
    width:38px;
    height:38px;
    border:1px solid currentColor;
    border-radius:12px;
    display:grid;
    place-items:center;
    margin-bottom:14px
}
.smchat-root .smchat-panel-title {
    font:700 21px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:-.35px;
    margin:0 0 8px;
    color:inherit;
    text-transform:none;
    overflow-wrap:anywhere
}
.smchat-root .smchat-greeting {
    font-size:13px;
    line-height:1.55;
    margin:0;
    color:inherit;
    max-width:270px;
    overflow-wrap:anywhere
}
.smchat-root .smchat-availability {
    font-size:12px;
    margin:12px 0 0;
    color:inherit;
    overflow-wrap:anywhere
}
.smchat-root .smchat-close {
    position:absolute;
    right:12px;
    top:12px;
    border:0;
    background:transparent;
    color:inherit;
    width:36px;
    height:36px;
    border-radius:50%;
    padding:7px;
    display:grid;
    place-items:center
}
.smchat-root .smchat-close:hover {
    background:#ffffff24
}
.smchat-root .smchat-panel-body {
    padding:12px;
    overflow:auto;
    overscroll-behavior:contain
}
.smchat-root .smchat-contact {
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px 12px;
    border-radius:12px;
    border:1px solid #e5e9f2;
    color:#0b173c;
    background:white;
    text-decoration:none;
    margin:0 0 8px;
    min-height:63px;
    box-shadow:none;
    transition:background .15s
}
.smchat-root .smchat-contact:last-child {
    margin-bottom:0
}
.smchat-root a.smchat-contact:hover {
    background:#f6f5ff;
    color:#0b173c;
    text-decoration:none
}
.smchat-root .smchat-contact-icon {
    width:38px;
    height:38px;
    border-radius:12px;
    background:#efedff;
    color:#4838ff;
    display:grid;
    place-items:center;
    flex-shrink:0
}
.smchat-root .smchat-channel-whatsapp {
    background:#e8f7ec;
    color:#147a38
}
.smchat-root .smchat-channel-telegram {
    background:#e8f5fd;
    color:#147aad
}
.smchat-root .smchat-channel-messenger {
    background:#eaf0ff;
    color:#3859c4
}
.smchat-root .smchat-channel-instagram {
    background:#fcecf5;
    color:#a9397b
}
.smchat-root .smchat-channel-email {
    background:#fff4df;
    color:#936515
}
.smchat-root .smchat-contact-copy {
    flex:1;
    min-width:0;
    display:block
}
.smchat-root .smchat-contact-name {
    display:block;
    font-size:14px;
    font-weight:650;
    line-height:1.4;
    overflow-wrap:anywhere
}
.smchat-root .smchat-contact>.smchat-icon {
    width:17px;
    height:17px;
    color:#718177
}
.smchat-root .smchat-empty {
    padding:12px;
    font-size:12px;
    line-height:1.6;
    background:#f8f5ed;
    border-radius:10px;
    margin:8px 0;
    color:#695d3a
}
.smchat-root .smchat-footer {
    margin:0;
    padding:9px 12px 14px;
    text-align:center;
    font-size:10px;
    color:#6a776f;
    flex-shrink:0;
    border-top:1px solid #f0f3f1
}
@media(min-width:768px) {
    .smchat-root.smchat-device-mobile {
        display:none
    }
}
@media(max-width:767px) {
    .smchat-root.smchat-device-desktop {
        display:none
    }
    .smchat-root {
        bottom:calc(var(--smchat-mobile-bottom,20px) + env(safe-area-inset-bottom,0px))
    }
    .smchat-position-right {
        right:min(var(--smchat-side,20px),20px)
    }
    .smchat-position-left {
        left:min(var(--smchat-side,20px),20px)
    }
    .smchat-root .smchat-panel {
        max-height:calc(100dvh - var(--smchat-mobile-bottom,20px) - 96px - var(--smchat-toolbar,0px));
        width:min(350px,calc(100vw - 40px))
    }
}
@media(prefers-reduced-motion:reduce) {
    .smchat-root * {
        transition:none!important;
        transform:none!important
    }
}
@media(prefers-reduced-motion:no-preference) {
    .smchat-root .smchat-panel {
        animation:smchat-appear .16s ease-out
    }
    @keyframes smchat-appear {
        from {
            opacity:0;
            transform:translateY(6px)
        }
        to {
            opacity:1;
            transform:translateY(0)
        }
    }
}
.admin-bar .smchat-root {
    --smchat-toolbar:32px
}
@media(max-width:782px) {
    .admin-bar .smchat-root {
        --smchat-toolbar:46px
    }
}
