.atendimento-site-mensagens {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.atendimento-site-msg {
    align-self: flex-start;
    max-width: 86%;
    padding: .55rem .7rem;
    border: 1px solid var(--vc-border,#dde8e0);
    border-radius: .75rem .75rem .75rem .2rem;
    background: var(--vc-card,#fff);
    color: var(--vc-text,#203d31);
}

.atendimento-site-msg.is-own {
    align-self: flex-end;
    border-radius: .75rem .75rem .2rem .75rem;
    background: var(--vc-own,#e3f1e7);
}

.atendimento-site-msg p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.atendimento-site-msg small {
    display: block;
    margin-top: .25rem;
    color: var(--vc-muted,#4b6256);
    font-size: .72rem;
}

.atendimento-site-msg-anexo {
    display: grid;
    gap: .3rem;
    max-width: 16rem;
    color: inherit;
    font-size: .875rem;
    text-decoration: none;
}

.atendimento-site-msg p + .atendimento-site-msg-anexo { margin-top: .4rem; }
.atendimento-site-msg-anexo:hover { text-decoration: underline; }
.atendimento-site-msg-anexo img {
    display: block;
    width: 100%;
    height: 10rem;
    border-radius: .4rem;
    background: var(--vc-selected,#eaf3ec);
    object-fit: contain;
}

.atendimento-site-msg-anexo-nome {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    overflow-wrap: anywhere;
}

.atendimento-site-msg.is-aviso {
    align-self: center;
    max-width: min(100%, 32rem);
    padding: .5rem .85rem;
    border: 0;
    border-radius: .55rem;
    background: var(--vc-selected,#eaf3ec);
    color: var(--vc-accent,#264f3d);
    font-size: .875rem;
    line-height: 1.4;
    text-align: center;
}

[data-shop-chat-open].tem-alerta {
    outline: 2px solid #ac2335;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    [data-shop-chat-open].tem-alerta {
        animation: shop-chat-alerta 1.25s ease-in-out infinite;
    }
}

@keyframes shop-chat-alerta {
    6%, 18% { rotate: -9deg; }
    12%, 24% { rotate: 9deg; }
    30%, 100% { rotate: 0deg; }
}

.atendimento-site-older {
    display: block;
    margin: 0 auto .65rem;
    padding: .45rem .5rem;
    border: 0;
    background: transparent;
    color: var(--vc-accent,#17613d);
    font: inherit;
    font-size: .82rem;
    text-decoration: underline;
    cursor: pointer;
}

.shop-site-chat [hidden] { display: none !important; }
.shop-site-chat .shop-floating-whatsapp { border: 0; cursor: pointer; }
.shop-site-chat-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    border: 2px solid white;
    border-radius: 50%;
    background: #ac2335;
    color: white;
    padding: 0 .15rem;
    font: 700 .74rem/1.05rem system-ui, sans-serif;
}

#shop-site-chat {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(26px + env(safe-area-inset-bottom));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100vw - 36px));
    max-height: min(33rem, calc(100dvh - 3.5rem));
    overflow: hidden;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: 1rem;
    background: var(--vc-surface,#fff);
    color: var(--vc-text,#203d31);
    box-shadow: 0 14px 44px #192c2840;
}

.shop-site-chat.is-left #shop-site-chat {
    right: auto;
    left: max(18px, env(safe-area-inset-left));
}

#shop-site-chat > header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    padding: .45rem .6rem .45rem 1rem;
    background: #204d39;
    color: #fff;
}

#shop-site-chat h2 { margin: 0; font-size: 1rem; color: inherit; }
.shop-site-chat-atendimento {
    flex-shrink: 0;
    margin: 0;
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--vc-border,#d5e3da);
    background: var(--vc-selected,#eaf3ec);
    color: var(--vc-accent,#264f3d);
    font-size: .875rem;
    text-align: center;
}
#shop-site-chat > header button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#shop-site-chat > header button:hover { background: #ffffff26; }
#shop-site-chat > header button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
.shop-site-chat-header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.shop-site-chat-options { position: relative; }
#shop-site-chat [data-shop-chat-toggle-options][aria-expanded=true] { background: #ffffff26; }
.shop-site-chat-menu {
    position: absolute;
    z-index: 2;
    inset-block-start: calc(100% + .2rem);
    inset-inline-end: 0;
    display: grid;
    box-sizing: border-box;
    width: 11.5rem;
    padding: .25rem;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: .6rem;
    background: var(--vc-surface,#fff);
    color: var(--vc-text,#203d31);
    box-shadow: 0 .4rem 1rem #192c2826;
}

#shop-site-chat .shop-site-chat-menu button {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    min-height: 44px;
    padding: .4rem .55rem;
    border-radius: .4rem;
    font: inherit;
    font-size: .875rem;
    text-align: start;
}

#shop-site-chat .shop-site-chat-menu button:hover { background: var(--vc-selected,#eaf3ec); }

dialog.shop-site-chat-confirm {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(420px, calc(100% - 36px));
    margin: auto;
    border: 0;
}

.shop-site-chat-confirm::backdrop { background: rgba(18, 24, 34, .44); }
.shop-site-chat-confirm .shop-cart-confirm-actions { flex-wrap: wrap; }

#shop-site-chat [data-shop-chat-start] { display: grid; gap: .55rem; padding: 1rem; }
#shop-site-chat [data-shop-chat-start] label { font-weight: 650; }
#shop-site-chat :is(input, textarea), #vc-hub-site textarea {
    width: 100%;
    min-width: 0;
    padding: .6rem .7rem;
    border: 1px solid var(--vc-field-border,#bdcec2);
    border-radius: .55rem;
    background: var(--vc-field,#fff);
    color: var(--vc-text,#203d31);
    font: inherit;
    resize: none;
}

#shop-site-chat button[type=submit], #shop-site-chat [data-shop-chat-new], #vc-hub #vc-hub-site button[type=submit] {
    min-width: 44px;
    min-height: 44px;
    padding: .55rem .85rem;
    border: 0;
    border-radius: .55rem;
    background: #166640;
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

#shop-site-chat button:disabled { opacity: .55; cursor: wait; }
.shop-site-chat-encerrada { padding: .7rem .85rem; text-align: center; }
.shop-site-chat-encerrada p { margin: 0 0 .5rem; }
.shop-site-chat-history, .vc-site-history {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: .8rem;
    background: var(--vc-canvas,#f3f5ef);
}

.shop-site-chat-history { flex: 1 1 20rem; }
.shop-site-chat-compose, .vc-site-compose {
    flex-shrink: 0;
    min-width: 0;
    padding: .6rem .8rem;
    border-top: 1px solid var(--vc-border,#d5e3da);
    background: var(--vc-surface,white);
}

.atendimento-site-editor {
    position: relative;
    padding: .15rem .4rem .25rem;
    border: 1px solid var(--vc-field-border,#d5e3da);
    border-radius: .85rem;
    background: var(--vc-field,#fff);
    color: var(--vc-text,#203d31);
}

.atendimento-site-editor:focus-within { border-color: var(--vc-accent,#166640); }
:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor textarea {
    display: block;
    box-sizing: border-box;
    min-height: 3rem;
    padding: .4rem .3rem .1rem;
    border: 0;
    outline: 0;
    background: transparent;
    line-height: 1.35;
}

.atendimento-site-editor-acoes {
    display: flex;
    align-items: center;
    gap: .1rem;
}

:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor button:focus-visible {
    outline: 2px solid var(--vc-accent,#166640);
    outline-offset: 1px;
}

:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor button[type=button]:not(:disabled):hover {
    background: var(--vc-selected,#eaf3ec);
}

:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor button[type=submit] {
    margin-inline-start: auto;
    background: #166640;
    color: #fff;
}

:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor button:disabled {
    opacity: .55;
    cursor: default;
}

:is(#shop-site-chat, #vc-hub #vc-hub-site) .atendimento-site-editor button[type=submit]:disabled {
    opacity: 1;
    background: var(--vc-selected,#eaf3ec);
    color: var(--vc-muted,#52695d);
}

.atendimento-site-arquivo {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .25rem .3rem;
    padding-inline-start: .55rem;
    border-radius: .45rem;
    background: var(--vc-selected,#eaf3ec);
    font-size: .85rem;
}

.atendimento-site-arquivo span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atendimento-site-erro-anexo {
    margin: .3rem;
    color: var(--vc-danger,#9b2b24);
    font-size: .8rem;
}

.atendimento-site-emojis {
    position: absolute;
    z-index: 1;
    bottom: calc(100% + .35rem);
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(15rem, 100%);
    max-height: min(11rem, 40dvh);
    overflow: auto;
    padding: .3rem;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: .65rem;
    background: var(--vc-field,#fff);
    box-shadow: 0 .35rem .9rem #203d3126;
}

.atendimento-site-editor [hidden] { display: none !important; }

.shop-site-chat-status, .vc-site-status {
    margin: 0;
    padding: .55rem .8rem;
    color: var(--vc-muted,#52695d);
    font-size: .85rem;
}

.vc-site-status:empty { display: none; }

@media (max-width: 767px) {
    #shop-site-chat {
        bottom: max(12px, env(safe-area-inset-bottom));
        max-height: min(32rem, calc(100dvh - 2rem));
    }
}

#vc-hub #vc-hub-site {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

.vc-site-sidebar { min-height: 0; overflow: auto; padding: .65rem .85rem; }
#vc-hub-site .vc-hub-search input, #vc-site-client-dialog .vc-hub-search input { border-radius: 10px; }
#vc-hub-site .vc-hub-order[aria-current=true] { background: var(--vc-selected,#eaf1e7); border-radius: 8px; }
.vc-site-order-date { margin-top: .2rem; }
#vc-hub-site .vc-row-menu { min-width: min(12rem, 75vw); }
#vc-site-client-dialog {
    width: min(30rem, calc(100vw - 2rem));
    max-height: min(33rem, calc(100dvh - 2rem));
    padding: .75rem 1rem 1rem;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: .85rem;
    background: var(--vc-surface,#fff);
    color: var(--vc-text,#203d31);
    overflow: auto;
}
#vc-site-client-dialog::backdrop { background: #183c2e59; }
#vc-site-client-dialog header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#vc-site-client-dialog h3 { margin: 0; font-size: 1.1rem; }
#vc-hub #vc-site-client-dialog [data-site-client-id] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .6rem .5rem;
    border-bottom: 1px solid var(--vc-row-border,#e1eae5);
    text-align: left;
    overflow-wrap: anywhere;
}
#vc-hub #vc-site-client-dialog [data-site-client-id]:hover { background: var(--vc-hover,#edf4ef); }
#vc-site-client-dialog [data-site-client-id] small { display: block; color: var(--vc-muted,#52695d); }
.vc-site-detail { display: none; min-width: 0; min-height: 0; background: var(--vc-canvas,#f3f5ef); }
.vc-site-welcome { align-self: center; padding: 1.5rem; color: var(--vc-muted,#52695d); text-align: center; }
.vc-site-welcome i { color: var(--vc-canvas-accent,#387259); font-size: 2rem; }
.vc-site-welcome h3, .vc-site-visitor h3 { margin: .35rem 0; color: var(--vc-text,#203d31); font-size: 1.15rem; }
.vc-site-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vc-site-meta { padding: .6rem .85rem; border-bottom: 1px solid var(--vc-border,#d5e3da); background: var(--vc-surface,white); }
.vc-site-visitor { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; overflow-wrap: anywhere; }
.vc-site-visitor h3 { min-width: 0; }
.vc-site-presence { color: var(--vc-accent,#0e6740); font-size: .82rem; font-weight: 650; }
.vc-site-presence.is-away { color: var(--vc-warning,#803817); }
.vc-site-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
#vc-hub :is(.vc-site-end, .vc-site-cart-toggle) {
    min-height: 40px;
    padding: .35rem .6rem;
    border: 1px solid var(--vc-danger-border,#e5c8c4);
    border-radius: .55rem;
    color: var(--vc-danger,#86352e);
    font-size: .85rem;
}
#vc-hub :is(.vc-site-end, .vc-site-cart-toggle):not(:disabled):hover { background: var(--vc-danger-bg,#f9eeec); }
#vc-hub .vc-site-cart-toggle {
    position: relative;
    min-width: 40px;
    padding-inline: .45rem;
    font-size: 1rem;
}
#vc-hub .vc-site-cart-toggle[aria-expanded=true] { background: var(--vc-danger-bg,#f9eeec); }
#vc-hub .vc-site-alert {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--vc-warning-border,#e2c79c);
    border-radius: .55rem;
    color: var(--vc-warning,#7b4b0e);
    font-size: 1.1rem;
    font-weight: 750;
}
#vc-hub .vc-site-alert:hover { background: var(--vc-warning-bg,#fff3dd); }
.vc-site-cart-toggle span {
    position: absolute;
    top: -.35rem;
    inset-inline-end: -.35rem;
    min-width: 1.15rem;
    padding: .05rem .25rem;
    border: 1px solid #fff;
    border-radius: 1rem;
    background: #166640;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.15;
}
.vc-site-cart-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    background: rgb(0 0 0 / 35%);
}
.vc-site-cart-overlay .vc-site-cart {
    display: flex;
    flex-direction: column;
    width: min(26rem, 80%);
    background: var(--vc-canvas,#f3f5ef);
    box-shadow: -12px 0 32px #1b22302e;
}
.vc-site-cart header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--vc-border,#d5e3da);
    background: var(--vc-surface,#fff);
}
.vc-site-cart h4 {
    margin: 0;
    color: var(--vc-text,#203d31);
    font-size: 1.05rem;
    font-weight: 700;
}
#vc-hub [data-site-cart-close] {
    display: grid;
    flex: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--vc-counter-bg,#edf2ee);
    color: var(--vc-muted,#52695d);
}
#vc-hub [data-site-cart-close]:hover { background: var(--vc-hover,#e2ebe5); }
.vc-site-cart ul {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    list-style: none;
}
.vc-site-cart li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .35rem .65rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--vc-row-border,#e1eae5);
    background: var(--vc-surface,#fff);
    color: var(--vc-text,#203d31);
    font-size: .85rem;
    overflow-wrap: anywhere;
}
.vc-site-cart-item-details {
    display: grid;
    min-width: 0;
    gap: .15rem;
}
.vc-site-cart li small { color: var(--vc-muted,#52695d); font-size: .8rem; }
.vc-site-cart-item-notes { grid-column: 1 / -1; }
.vc-site-cart-item-price { white-space: nowrap; }
#vc-hub [data-site-cart-edit-item] {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: .45rem;
    color: var(--vc-accent,#166640);
}
.vc-site-cart-footer { padding: .85rem 1rem; background: var(--vc-surface,white); border-top: 1px solid var(--vc-border,#d5e3da); }
.vc-site-cart-footer [role=status] { margin: 0 0 .6rem; font-size: .85rem; }
#vc-hub [data-site-cart-order-discount]:not([hidden]) {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .65rem;
    padding: .65rem .75rem;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: .45rem;
    background: var(--vc-field,#f5f8f5);
    color: var(--vc-accent,#166640);
    text-align: left;
    font-size: .85rem;
}
#vc-hub :is([data-site-cart-edit-item], [data-site-cart-order-discount]):not(:disabled):hover { background: var(--vc-hover,#e7f0e9); }
#vc-hub :is([data-site-cart-action], [data-site-cart-submit]) {
    min-height: 42px;
    padding: .5rem .7rem;
    border: 1px solid var(--vc-accent,#166640);
    border-radius: .5rem;
    color: var(--vc-accent,#166640);
    font-weight: 650;
}
#vc-hub :is([data-site-cart-action], [data-site-cart-submit]):hover { background: var(--vc-hover,#edf4ef); }
.vc-site-cart-footer [data-site-cart-action] { margin: .15rem .15rem .15rem 0; font-size: .875rem; }
.vc-site-cart-dialog {
    width: min(28rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid var(--vc-border,#d5e3da);
    border-radius: .75rem;
    color: var(--vc-text,#203d31);
    background: var(--vc-surface,white);
}
.vc-site-cart-dialog::backdrop { background: #0006; }
.vc-site-cart-dialog footer, .vc-site-cart-fields { padding: .75rem 1rem; }
.vc-site-cart-dialog footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    border-top: 1px solid var(--vc-border,#d5e3da);
}
#vc-hub [data-site-cart-remove] {
    margin-right: auto;
    padding: .5rem .7rem;
    border: 1px solid var(--vc-danger-border,#ecc5bd);
    border-radius: .5rem;
    color: var(--vc-danger,#923a2b);
}
#vc-hub [data-site-cart-remove]:not(:disabled):hover { background: var(--vc-danger-bg,#f9eeec); }
.vc-site-cart-fields label { display: block; margin-bottom: .55rem; }
.vc-site-cart-fields :is(input:not([type=checkbox]), select) {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: .4rem .55rem;
    border: 1px solid var(--vc-field-border,#bdcec2);
    border-radius: .45rem;
    background: var(--vc-field,white);
    color: inherit;
}
.vc-site-cart-input-group { display: flex; }
.vc-site-cart-input-group select { width: auto; }
.vc-site-cart-results { max-height: 9rem; overflow: auto; }
#vc-hub .vc-site-cart-results button {
    display: block;
    width: 100%;
    padding: .5rem 0;
    border-bottom: 1px solid var(--vc-border,#d5e3da);
    text-align: left;
}
@media (prefers-reduced-motion: no-preference) {
    .vc-site-cart-overlay .vc-site-cart { animation: vc-site-cart-entrar .2s ease-out; }
}
@keyframes vc-site-cart-entrar {
    from { transform: translateX(100%); }
}
.vc-site-meta dl { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: .3rem 0 0; }
.vc-site-meta dl div { min-width: 0; max-width: 100%; }
.vc-site-meta dt { color: var(--vc-muted,#52695d); font-size: .76rem; font-weight: 600; }
.vc-site-meta dd { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.vc-site-history { flex: 1; }
#vc-hub-site [data-site-back] { min-height: 44px; padding: .25rem .5rem .25rem 0; }

@media (min-width: 700px) {
    #vc-hub #vc-hub-site { grid-template-columns: clamp(16rem, 33%, 24rem) minmax(0, 1fr); }
    .vc-site-detail { display: grid; }
    #vc-hub-site [data-site-back] { display: none; }
}

@media (max-width: 699px) {
    #vc-hub-site.has-conversa .vc-site-sidebar { display: none; }
    #vc-hub-site.has-conversa .vc-site-detail { display: grid; }
    .vc-site-compose { padding-bottom: max(.7rem, env(safe-area-inset-bottom)); }
}

#vc-hub :is(.vc-site-compose textarea, .vc-site-cart-fields input)::placeholder {
    color: var(--vc-muted, #52695d);
}
