.acoes-compra .acoes-compra__btn--chat{
    border-color:#2f68ac !important;
    background:#fff !important;
    color:#24568f !important;
}

.acoes-compra .acoes-compra__btn--chat:hover{
    background:#f2f7fd !important;
    color:#1f4c80 !important;
}

.div-flutuante--chat .md-floating-chat-button{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:#ff8000;
    color:#fff;
    box-shadow:0 14px 28px rgba(255, 128, 0, .3);
    font-size:23px;
    cursor:pointer;
    transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.div-flutuante--chat .md-floating-chat-button__icon{
    display:grid;
    place-items:center;
}

.div-flutuante--chat .md-floating-chat-button__copy,
.div-flutuante--chat .md-floating-chat-button__notification{
    display:none;
}

.div-flutuante--chat.is-proactive{
    z-index:10010;
}

.div-flutuante--chat .md-floating-chat-button.has-notification{
    width:min(294px, calc(100vw - 28px));
    height:68px;
    grid-template-columns:42px minmax(0, 1fr) 30px;
    place-items:center stretch;
    gap:10px;
    padding:8px 10px;
    border:1px solid #ffd0a3;
    border-radius:18px;
    background:#fff;
    color:#1d2939;
    box-shadow:0 18px 38px rgba(31, 41, 55, .2);
    animation:ecommerce-chat-notification-in .3s cubic-bezier(.22, .8, .35, 1) both;
}

.div-flutuante--chat .md-floating-chat-button.has-notification:hover,
.div-flutuante--chat .md-floating-chat-button.has-notification:focus-visible{
    border-color:#ffad61;
    background:#fff8f1;
    color:#1d2939;
    transform:translateY(-2px);
}

.div-flutuante--chat .has-notification .md-floating-chat-button__icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#ff8000;
    color:#fff;
    font-size:19px;
}

.div-flutuante--chat .has-notification .md-floating-chat-button__copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
    text-align:left;
}

.div-flutuante--chat .has-notification .md-floating-chat-button__copy strong{
    overflow:hidden;
    color:#1d2939;
    font-size:13px;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.div-flutuante--chat .has-notification .md-floating-chat-button__copy small{
    overflow:hidden;
    color:#667085;
    font-size:11px;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.div-flutuante--chat .has-notification .md-floating-chat-button__notification{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    justify-self:end;
    border-radius:50%;
    background:#e5484d;
    color:#fff;
    font-size:12px;
    box-shadow:0 0 0 4px #ffe8e9;
}

@keyframes ecommerce-chat-notification-in{
    from{ opacity:0; transform:translateY(12px) scale(.96); }
    to{ opacity:1; transform:translateY(0) scale(1); }
}

.div-flutuante--chat .md-floating-chat-button:hover,
.div-flutuante--chat .md-floating-chat-button:focus-visible{
    background:#e67300;
    box-shadow:0 17px 32px rgba(230, 115, 0, .35);
    transform:translateY(-2px) scale(1.04);
}

.div-flutuante--chat .md-floating-chat-button:focus-visible{
    outline:3px solid rgba(255, 128, 0, .25);
    outline-offset:3px;
}

.div-flutuante--chat .md-floating-chat-button i{
    color:inherit;
}

.ecommerce-chat{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:1050;
    width:min(390px, calc(100vw - 28px));
    height:min(590px, calc(100dvh - 40px));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #dce4ed;
    border-radius:18px;
    background:#fff;
    box-shadow:0 22px 70px rgba(15, 35, 55, .24);
}

.ecommerce-chat[hidden]{
    display:none !important;
}

.ecommerce-chat__header{
    display:grid;
    grid-template-columns:42px minmax(0, 1fr) auto;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-bottom:1px solid #e6ebf0;
    background:#fff;
}

.ecommerce-chat__avatar{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid #dce5ef;
    border-radius:50%;
    background:#eef4fb;
    color:#2f68ac;
    font-size:14px;
    font-weight:800;
}

.ecommerce-chat__avatar img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.ecommerce-chat__avatar img[hidden],
.ecommerce-chat__avatar span[hidden]{
    display:none;
}

.ecommerce-chat__identity{
    min-width:0;
}

.ecommerce-chat__title{
    display:block;
    overflow:hidden;
    color:#172436;
    font-size:15px;
    font-weight:700;
    line-height:1.3;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ecommerce-chat__presence{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:3px;
    color:#66788c;
    font-size:12px;
}

.ecommerce-chat__presence::before{
    width:7px;
    height:7px;
    flex:0 0 auto;
    border-radius:50%;
    background:#9aa7b5;
    content:"";
}

.ecommerce-chat__presence[data-online="true"]::before{
    background:#1ca75b;
    box-shadow:0 0 0 3px rgba(28, 167, 91, .12);
}

.ecommerce-chat__close{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border:0;
    border-radius:10px;
    background:#f2f5f8;
    color:#526477;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.ecommerce-chat__product{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 14px;
    border-bottom:1px solid #e9edf2;
    background:#f8fafc;
    color:#526477;
    font-size:12px;
    line-height:1.35;
}

.ecommerce-chat__product strong{
    display:-webkit-box;
    overflow:hidden;
    color:#27384a;
    font-size:12px;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.ecommerce-chat__whatsapp-contact{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
    padding:9px 14px;
    border-bottom:1px solid #bde7cb;
    background:#effcf4;
    color:#176b3a;
    text-decoration:none;
}

.ecommerce-chat__whatsapp-contact:hover,
.ecommerce-chat__whatsapp-contact:focus{
    background:#e5f9ed;
    color:#105e31;
    text-decoration:none;
}

.ecommerce-chat__whatsapp-contact > .fa-whatsapp{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:50%;
    background:#20a85a;
    color:#fff;
    font-size:18px;
}

.ecommerce-chat__whatsapp-contact span{
    min-width:0;
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    gap:1px;
}

.ecommerce-chat__whatsapp-contact small{
    color:#527561;
    font-size:10px;
    line-height:1.2;
}

.ecommerce-chat__whatsapp-contact strong{
    overflow:hidden;
    color:inherit;
    font-size:13px;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ecommerce-chat__whatsapp-contact-arrow{
    flex:0 0 auto;
    color:#4d9167;
    font-size:12px;
}

.ecommerce-chat__messages{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:14px;
    background:#f7f9fb;
    overscroll-behavior:contain;
}

.ecommerce-chat__empty,
.ecommerce-chat__status{
    margin:auto 0;
    padding:16px;
    border:1px dashed #d4dde7;
    border-radius:14px;
    background:#fff;
    color:#647589;
    font-size:13px;
    line-height:1.5;
    text-align:center;
}

.ecommerce-chat__status{
    margin:0;
}

.ecommerce-chat__loading{
    display:grid;
    gap:9px;
    padding:3px 0;
}

.ecommerce-chat__loading-bubble{
    width:78%;
    padding:10px 12px;
    border:1px solid #dce4ed;
    border-radius:14px;
    background:#fff;
}

.ecommerce-chat__loading-bubble--customer{
    width:64%;
    margin-left:auto;
    border-color:#c9daf0;
    background:#eaf2fc;
}

.ecommerce-chat__connection-status{
    flex:0 0 auto;
    padding:7px 12px;
    border-top:1px solid #d9e5f2;
    background:#f1f6fc;
    color:#526d8b;
    font-size:11px;
    text-align:center;
}

.ecommerce-chat__connection-status.is-error{
    border-top-color:#f1cbc7;
    background:#fff3f1;
    color:#a43d33;
}

.ecommerce-chat__connection-status[hidden]{
    display:none;
}

.ecommerce-chat__message{
    max-width:86%;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.ecommerce-chat__message--customer{
    align-self:flex-end;
    align-items:flex-end;
}

.ecommerce-chat__message--store{
    align-self:flex-start;
    align-items:flex-start;
}

.ecommerce-chat__bubble{
    padding:9px 11px;
    border:1px solid #dce4ed;
    border-radius:14px;
    background:#fff;
    color:#172436;
    font-size:13px;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.ecommerce-chat__message--customer .ecommerce-chat__bubble{
    border-color:#c9daf0;
    background:#eaf2fc;
}

.ecommerce-chat__time{
    color:#8a97a6;
    font-size:10px;
}

.ecommerce-chat__message-error{
    grid-column:1 / -1;
    color:#b42318;
    font-size:12px;
    font-weight:600;
}

.ecommerce-chat__whatsapp-fallback{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 10px 0;
    padding:10px 12px;
    border:1px solid #b7e4c7;
    border-radius:14px;
    background:#effcf4;
    color:#176b3a;
    box-shadow:0 5px 16px rgba(18, 140, 75, .12);
    font-size:12px;
    font-weight:700;
    line-height:1.35;
    text-decoration:none;
    animation:ecommerce-chat-whatsapp-in .2s ease-out both;
}

.ecommerce-chat__whatsapp-fallback:hover,
.ecommerce-chat__whatsapp-fallback:focus{
    border-color:#68c58a;
    background:#e5f9ed;
    color:#105e31;
    text-decoration:none;
}

.ecommerce-chat__whatsapp-fallback[hidden]{
    display:none !important;
}

.ecommerce-chat__whatsapp-fallback i{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:50%;
    background:#20a85a;
    color:#fff;
    font-size:18px;
}

@keyframes ecommerce-chat-whatsapp-in{
    from{ opacity:0; transform:translateY(6px); }
    to{ opacity:1; transform:translateY(0); }
}

.ecommerce-chat__composer{
    flex:0 0 auto;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:8px;
    padding:10px;
    border-top:1px solid #e1e7ed;
    background:#fff;
}

.ecommerce-chat__input{
    width:100%;
    min-height:42px;
    max-height:110px;
    padding:10px 12px;
    border:1px solid #cfd8e3;
    border-radius:12px;
    resize:none;
    color:#172436;
    font:inherit;
    font-size:13px;
    line-height:1.4;
    outline:0;
}

.ecommerce-chat__input:focus{
    border-color:#6e9bce;
    box-shadow:0 0 0 3px rgba(47, 104, 172, .1);
}

.ecommerce-chat__send{
    width:44px;
    min-width:44px;
    height:42px;
    align-self:end;
    padding:0;
    border:0;
    border-radius:12px;
    background:#2f68ac;
    color:#fff;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.ecommerce-chat__send i{
    color:inherit;
    font-size:16px;
}

.ecommerce-chat__send:disabled,
.ecommerce-chat__input:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.ecommerce-chat__send.is-loading{
    cursor:wait;
}

.ecommerce-chat__contact-dialog{
    position:fixed;
    inset:0;
    z-index:11050;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100vw;
    height:100dvh;
    padding:24px;
    overflow-y:auto;
    background:rgba(16, 24, 40, .66);
    backdrop-filter:blur(4px);
}

.ecommerce-chat__contact-dialog[hidden]{
    display:none !important;
}

.ecommerce-chat__contact-dialog-card{
    width:min(430px, 100%);
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:22px 18px 18px;
    border:1px solid #d8e5dc;
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 46px rgba(16, 24, 40, .24);
    text-align:center;
}

body.ecommerce-chat-dialog-open{
    overflow:hidden !important;
}

.ecommerce-chat__contact-dialog-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    margin-bottom:12px;
    border-radius:50%;
    background:#dcfae6;
    color:#128c4b;
    font-size:24px;
    box-shadow:0 0 0 7px #f1fbf5;
}

.ecommerce-chat__contact-dialog-copy strong{
    display:block;
    color:#172436;
    font-size:18px;
    line-height:1.3;
}

.ecommerce-chat__contact-dialog-copy p{
    margin:7px 0 15px;
    color:#526477;
    font-size:13px;
    line-height:1.5;
}

.ecommerce-chat__contact-dialog-form{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:8px;
    text-align:left;
}

.ecommerce-chat__contact-dialog-form label,
.ecommerce-chat__contact-dialog-error,
.ecommerce-chat__contact-dialog-skip{
    grid-column:1 / -1;
}

.ecommerce-chat__contact-dialog-form label{
    color:#344054;
    font-size:12px;
    font-weight:700;
}

.ecommerce-chat__contact-dialog-form input{
    min-width:0;
    height:44px;
    padding:0 11px;
    border:1px solid #cfd8e3;
    border-radius:11px;
    color:#172436;
    font:inherit;
    font-size:14px;
    outline:0;
}

.ecommerce-chat__contact-dialog-form input:focus{
    border-color:#28a260;
    box-shadow:0 0 0 3px rgba(40, 162, 96, .12);
}

.ecommerce-chat__contact-dialog-submit{
    min-width:126px;
    height:44px;
    padding:0 13px;
    border:0;
    border-radius:11px;
    background:#159455;
    color:#fff;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

.ecommerce-chat__contact-dialog-submit:hover{
    background:#117d47;
}

.ecommerce-chat__contact-dialog-submit:disabled,
.ecommerce-chat__contact-dialog-form input:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.ecommerce-chat__contact-dialog-submit.is-loading{
    cursor:wait;
}

.ecommerce-chat__contact-dialog-error{
    color:#b42318;
    font-size:11px;
    font-weight:600;
    text-align:left;
}

.ecommerce-chat__contact-dialog-skip{
    justify-self:center;
    padding:4px 8px;
    border:0;
    background:transparent;
    color:#66788c;
    font-size:11px;
    text-decoration:underline;
    cursor:pointer;
}

.ecommerce-chat__contact-dialog-card > small{
    margin-top:9px;
    color:#7b8998;
    font-size:10px;
    line-height:1.35;
}

@media (max-width: 1199px){
    .ecommerce-chat{
        right:0;
        bottom:0;
        left:0;
        z-index:10020;
        width:100%;
        max-width:none;
        height:min(720px, 82dvh);
        border:0;
        border-top:1px solid #dce4ed;
        border-radius:24px 24px 0 0;
        box-shadow:0 -16px 55px rgba(15, 35, 55, .22);
        animation:ecommerce-chat-sheet-in .28s cubic-bezier(.22, .8, .35, 1) both;
    }

    .ecommerce-chat__header{
        position:relative;
        padding-top:22px;
        border-radius:24px 24px 0 0;
    }

    .ecommerce-chat__header::before{
        position:absolute;
        top:8px;
        left:50%;
        width:42px;
        height:4px;
        border-radius:999px;
        background:#d0d5dd;
        content:"";
        transform:translateX(-50%);
    }

    body.ecommerce-chat-sheet-open{
        overflow:hidden !important;
    }

    @keyframes ecommerce-chat-sheet-in{
        from{ transform:translateY(100%); }
        to{ transform:translateY(0); }
    }
}

@media (max-width: 560px){
    .div-flutuante--chat.is-proactive{
        right:12px !important;
        bottom:calc(74px + env(safe-area-inset-bottom)) !important;
        display:block !important;
    }

    .div-flutuante--chat .md-floating-chat-button.has-notification{
        width:min(294px, calc(100vw - 24px));
    }

    .ecommerce-chat{
        right:0;
        bottom:0;
        width:100%;
        height:min(680px, 88dvh);
        border-radius:22px 22px 0 0;
    }

    .ecommerce-chat__contact-dialog{
        padding:14px;
    }

    .ecommerce-chat__contact-dialog-card{
        padding:20px 14px 16px;
    }

    .ecommerce-chat__contact-dialog-form{
        grid-template-columns:1fr;
    }

    .ecommerce-chat__contact-dialog-form label,
    .ecommerce-chat__contact-dialog-error,
    .ecommerce-chat__contact-dialog-skip{
        grid-column:1;
    }

    .ecommerce-chat__contact-dialog-submit{
        width:100%;
    }

}

@media (prefers-reduced-motion: reduce){
    .ecommerce-chat,
    .ecommerce-chat__whatsapp-fallback,
    .div-flutuante--chat .md-floating-chat-button{
        animation:none !important;
        transition:none !important;
    }
}
