.acoes-compra .acoes-compra__btn--chat{
    border-color:var(--md-store-primary) !important;
    background:#fff !important;
    color:var(--md-store-primary-dark) !important;
}

.acoes-compra .acoes-compra__btn--chat:hover{
    background:var(--md-store-primary-tint) !important;
    color:var(--md-store-primary-dark) !important;
}

.div-flutuante--chat .md-floating-chat-button{
    width:60px;
    height:60px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:var(--md-store-primary);
    color:var(--md-store-primary-text);
    box-shadow:0 14px 30px color-mix(in srgb, var(--md-store-primary) 32%, transparent);
    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(316px, calc(100vw - 28px));
    min-height:72px;
    grid-template-columns:42px minmax(0, 1fr) 30px;
    place-items:center stretch;
    gap:10px;
    padding:8px 10px;
    border:1px solid var(--md-store-primary-border);
    border-radius:20px;
    background:#fff;
    color:#1d2939;
    box-shadow:0 18px 42px rgba(16, 24, 40, .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:var(--md-store-primary);
    background:var(--md-store-primary-tint);
    color:#1d2939;
    transform:translateY(-2px);
}

.div-flutuante--chat .has-notification .md-floating-chat-button__icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--md-store-primary);
    color:var(--md-store-primary-text);
    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:var(--md-store-primary-hover);
    box-shadow:0 17px 34px color-mix(in srgb, var(--md-store-primary) 38%, transparent);
    transform:translateY(-2px) scale(1.04);
}

.div-flutuante--chat .md-floating-chat-button:focus-visible{
    outline:3px solid var(--md-store-primary-glow);
    outline-offset:3px;
}

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

.ecommerce-chat{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:10020;
    width:min(420px, calc(100vw - 32px));
    height:min(640px, calc(100dvh - 48px));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #e1e6ec;
    border-radius:24px;
    background:#fff;
    box-shadow:0 26px 80px rgba(16, 24, 40, .24), 0 4px 16px rgba(16, 24, 40, .08);
    isolation:isolate;
}

.ecommerce-chat,
.ecommerce-chat *,
.ecommerce-chat__contact-dialog,
.ecommerce-chat__contact-dialog *{
    box-sizing:border-box;
}

.ecommerce-chat::before{
    position:absolute;
    top:0;
    right:0;
    left:0;
    z-index:2;
    height:3px;
    background:var(--md-store-primary);
    content:"";
}

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

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

.ecommerce-chat__avatar{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid var(--md-store-primary-border);
    border-radius:50%;
    background:var(--md-store-primary-tint);
    color:var(--md-store-primary-dark);
    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;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.ecommerce-chat__title{
    display:block;
    overflow:hidden;
    color:#182230;
    font-size:15.5px;
    font-weight:750;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

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

.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:40px;
    height:40px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border:0;
    border-radius:12px;
    background:transparent;
    color:#667085;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    transition:background-color .16s ease, color .16s ease, transform .16s ease;
}

.ecommerce-chat__close:hover{
    background:#f2f4f7;
    color:#182230;
}

.ecommerce-chat__close:active{
    transform:scale(.94);
}

.ecommerce-chat__close:focus-visible{
    outline:3px solid var(--md-store-primary-glow);
    outline-offset:1px;
}

.ecommerce-chat__product{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    padding:9px 18px;
    border-bottom:1px solid #eaecf0;
    background:#f8fafc;
    color:#667085;
    font-size:11px;
    line-height:1.35;
}

.ecommerce-chat__product > span{
    flex:0 0 auto;
    font-size:10px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.ecommerce-chat__product strong{
    display:-webkit-box;
    min-width:0;
    flex:1 1 auto;
    overflow:hidden;
    color:#344054;
    font-size:12px;
    font-weight:700;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:1;
}

.ecommerce-chat__whatsapp-contact{
    display:flex;
    align-items:center;
    gap:11px;
    flex:0 0 auto;
    min-height:48px;
    padding:8px 18px;
    border-bottom:1px solid #d7eee0;
    background:#f6fef9;
    color:#166534;
    text-decoration:none;
}

.ecommerce-chat__whatsapp-contact:hover,
.ecommerce-chat__whatsapp-contact:focus{
    background:#ecfdf3;
    color:#14532d;
    text-decoration:none;
}

.ecommerce-chat__whatsapp-contact > .fa-whatsapp{
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:50%;
    background:#16a34a;
    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:#5f7868;
    font-size:10px;
    line-height:1.2;
}

.ecommerce-chat__whatsapp-contact strong{
    overflow:hidden;
    color:inherit;
    font-size:12.5px;
    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:10px;
    padding:18px;
    background:#f5f7fa;
    overscroll-behavior:contain;
    scrollbar-color:#cbd5e1 transparent;
    scrollbar-width:thin;
}

.ecommerce-chat__messages::-webkit-scrollbar{
    width:6px;
}

.ecommerce-chat__messages::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:#cbd5e1;
}

.ecommerce-chat__empty,
.ecommerce-chat__status{
    margin:auto 0;
    padding:22px 18px;
    border:1px dashed #d0d5dd;
    border-radius:16px;
    background:#fff;
    color:#667085;
    font-size:13.5px;
    line-height:1.55;
    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:8px 14px;
    border-top:1px solid #d9e5f2;
    background:#f1f6fc;
    color:#526d8b;
    font-size:11.5px;
    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:84%;
    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:10px 13px;
    border:1px solid #e1e6ec;
    border-radius:17px 17px 17px 5px;
    background:#fff;
    color:#1d2939;
    box-shadow:0 2px 5px rgba(16, 24, 40, .035);
    font-size:13.5px;
    line-height:1.48;
    overflow-wrap:anywhere;
}

.ecommerce-chat__message--customer .ecommerce-chat__bubble{
    border-color:var(--md-store-primary-border);
    border-radius:17px 17px 5px 17px;
    background:var(--md-store-primary-tint-strong);
    color:#182230;
    box-shadow:0 3px 8px color-mix(in srgb, var(--md-store-primary) 12%, transparent);
}

.ecommerce-chat__time{
    padding:0 3px;
    color:#98a2b3;
    font-size:10.5px;
}

.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:0;
    padding:10px 16px;
    border:0;
    border-top:1px solid #d7eee0;
    border-radius:0;
    background:#f0fdf4;
    color:#166534;
    box-shadow:none;
    font-size:11.5px;
    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{
    background:#dcfce7;
    color:#14532d;
    text-decoration:none;
}

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

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

@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;
    align-items:end;
    gap:9px;
    padding:12px 14px 14px;
    border-top:1px solid #eaecf0;
    background:#fff;
}

.ecommerce-chat__input{
    width:100%;
    min-height:46px;
    max-height:120px;
    padding:12px 14px;
    border:1px solid #d0d5dd;
    border-radius:16px;
    background:#f8fafc;
    resize:none;
    overflow-y:hidden;
    color:#172436;
    font:inherit;
    font-size:14px;
    line-height:1.45;
    outline:0;
}

.ecommerce-chat__input:focus{
    border-color:var(--md-store-primary);
    background:#fff;
    box-shadow:0 0 0 3px color-mix(in srgb, var(--md-store-primary) 13%, transparent);
}

.ecommerce-chat__send{
    width:46px;
    min-width:46px;
    height:46px;
    align-self:end;
    padding:0;
    border:0;
    border-radius:15px;
    background:var(--md-store-primary);
    color:var(--md-store-primary-text);
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 6px 14px color-mix(in srgb, var(--md-store-primary) 24%, transparent);
    transition:background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

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

.ecommerce-chat__send:hover:not(:disabled){
    background:var(--md-store-primary-hover);
    box-shadow:0 8px 18px color-mix(in srgb, var(--md-store-primary) 30%, transparent);
    transform:translateY(-1px);
}

.ecommerce-chat__send:active:not(:disabled){
    transform:translateY(0) scale(.96);
}

.ecommerce-chat__send:focus-visible{
    outline:3px solid var(--md-store-primary-glow);
    outline-offset:2px;
}

.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, .58);
    backdrop-filter:blur(6px);
}

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

.ecommerce-chat__contact-dialog-card{
    width:min(440px, 100%);
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:26px 22px 20px;
    border:1px solid #e1e6ec;
    border-radius:24px;
    background:#fff;
    box-shadow:0 24px 70px rgba(16, 24, 40, .28);
    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:14px;
    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:20px;
    line-height:1.3;
}

.ecommerce-chat__contact-dialog-copy p{
    margin:8px 0 18px;
    color:#526477;
    font-size:13.5px;
    line-height:1.55;
}

.ecommerce-chat__contact-dialog-form{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:10px;
    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:46px;
    padding:0 13px;
    border:1px solid #cfd8e3;
    border-radius:13px;
    color:#172436;
    font:inherit;
    font-size:14px;
    outline:0;
}

.ecommerce-chat__contact-dialog-form input:focus{
    border-color:var(--md-store-primary);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--md-store-primary) 13%, transparent);
}

.ecommerce-chat__contact-dialog-submit{
    min-width:126px;
    height:46px;
    padding:0 15px;
    border:0;
    border-radius:13px;
    background:var(--md-store-primary);
    color:var(--md-store-primary-text);
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.ecommerce-chat__contact-dialog-submit:hover{
    background:var(--md-store-primary-hover);
}

.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:11.5px;
    text-decoration:underline;
    cursor:pointer;
}

.ecommerce-chat__contact-dialog-card > small{
    margin-top:12px;
    color:#7b8998;
    font-size:11px;
    line-height:1.4;
}

@media (max-width: 767px){
    .ecommerce-chat{
        top:0;
        right:0;
        bottom:0;
        left:0;
        width:100%;
        max-width:none;
        height:100dvh;
        max-height:none;
        border:0;
        border-radius:0;
        box-shadow:none;
        animation:ecommerce-chat-screen-in .22s ease-out both;
    }

    .ecommerce-chat::before{
        display:none;
    }

    .ecommerce-chat__header{
        padding-top:max(12px, env(safe-area-inset-top));
    }

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

    @keyframes ecommerce-chat-screen-in{
        from{ opacity:0; transform:translateY(12px); }
        to{ opacity:1; 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(316px, calc(100vw - 24px));
    }

    .ecommerce-chat__header{
        grid-template-columns:40px minmax(0, 1fr) 40px;
        gap:10px;
        min-height:64px;
        padding-right:12px;
        padding-bottom:10px;
        padding-left:14px;
    }

    .ecommerce-chat__avatar{
        width:40px;
        height:40px;
    }

    .ecommerce-chat__title{
        font-size:14.5px;
    }

    .ecommerce-chat__product{
        min-height:40px;
        padding:8px 14px;
    }

    .ecommerce-chat__whatsapp-contact{
        min-height:46px;
        padding:7px 14px;
    }

    .ecommerce-chat__whatsapp-contact > .fa-whatsapp{
        width:30px;
        height:30px;
        font-size:17px;
    }

    .ecommerce-chat__messages{
        gap:10px;
        padding:14px 12px;
        scrollbar-gutter:auto;
    }

    .ecommerce-chat__message{
        max-width:90%;
    }

    .ecommerce-chat__bubble{
        padding:10px 12px;
        font-size:14px;
        line-height:1.45;
    }

    .ecommerce-chat__whatsapp-fallback{
        padding:9px 12px;
    }

    .ecommerce-chat__composer{
        padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .ecommerce-chat__input{
        min-height:46px;
        font-size:16px;
    }

    .ecommerce-chat__contact-dialog{
        align-items:flex-end;
        padding:0;
    }

    .ecommerce-chat__contact-dialog-card{
        width:100%;
        max-height:100dvh;
        padding:24px 18px calc(18px + env(safe-area-inset-bottom));
        border-right:0;
        border-bottom:0;
        border-left:0;
        border-radius:24px 24px 0 0;
        overflow-y:auto;
    }

    .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;
    }
}
