.sbexpod-cart-wrap,
.sbexpod-cart-wrap *,
.sbexpod-cart-wrap *::before,
.sbexpod-cart-wrap *::after {
    box-sizing: border-box;
}

.sbexpod-cart-wrap {
    width: 100%;
    max-width: var(--sanbar-conteudo, 760px);
    margin: 0 auto;
    font-size: 15px;
    isolation: isolate;
}

.sbexpod-cart-vazio {
    text-align: center;
    padding: 32px 16px;
}

.sbexpod-cart-itens {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    margin-bottom: 20px;
}

.sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto 44px !important;
    grid-template-areas: "thumb info commerce remove" !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    block-size: auto !important;
    min-block-size: 0 !important;
    max-block-size: none !important;
    aspect-ratio: auto !important;
    flex: none !important;
    margin: 0 !important;
    background: #f3f4f6;
    border-radius: var(--sbexpod-raio-card, 16px);
    padding: 12px 14px !important;
}

.sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item::before,
.sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item::after {
    content: none !important;
    display: none !important;
}

.sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item > :not([class]) {
    display: none !important;
}

.sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item-sem-thumb {
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    grid-template-areas: "info commerce remove" !important;
}

.sbexpod-cart-item-thumb {
    grid-area: thumb !important;
    display: grid;
    place-items: center;
    width: 56px !important;
    height: 56px !important;
    overflow: hidden;
    border-radius: var(--sbexpod-raio-mini, 12px);
    background: #ffffff;
}

.sbexpod-cart-item-thumb img {
    width: 56px !important;
    height: 56px !important;
    border-radius: var(--sbexpod-raio-mini, 12px);
    object-fit: cover;
    display: block;
}

.sbexpod-cart-item-info {
    grid-area: info !important;
    min-width: 0;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.sbexpod-cart-item-info > p {
    margin: 3px 0 0 !important;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sbexpod-cart-item-nome {
    display: -webkit-box;
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sbexpod-cart-item-commerce {
    grid-area: commerce !important;
    min-width: 0;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sbexpod-cart-item-valores {
    display: flex !important;
    flex: 0 1 auto !important;
    flex-flow: row nowrap !important;
    min-width: 0;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

.sbexpod-cart-item-valores > div {
    min-width: 58px;
}

.sbexpod-cart-item-valores dt {
    margin: 0 0 3px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbexpod-cart-item-valores dd {
    margin: 0;
    line-height: 1.3;
}

.sbexpod-cart-item-preco {
    color: #6b7280;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sbexpod-cart-qtd-bloco {
    box-sizing: border-box;
    flex: 0 0 116px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 40px !important;
}

.sbexpod-cart-wrap .sbexpod-cart-stepper {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 32px 40px 32px !important;
    grid-template-rows: 40px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 6px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sbexpod-cart-stepper::before,
.sbexpod-cart-stepper::after {
    content: none !important;
    display: none !important;
}

.sbexpod-cart-wrap .sbexpod-cart-stepper-btn {
    box-sizing: border-box;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid var(--sanbar-acao) !important;
    border-radius: var(--sbexpod-raio-ctl-p, 8px) !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    user-select: none;
    position: static !important;
    float: none !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none !important;
}

.sbexpod-cart-wrap .sbexpod-cart-stepper > .sbexpod-cart-stepper-btn[data-acao="menos"] {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.sbexpod-cart-wrap .sbexpod-cart-stepper > .sbexpod-cart-stepper-btn[data-acao="mais"] {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.sbexpod-cart-stepper-btn:hover {
    background: #f3f4f6 !important;
}

.sbexpod-cart-stepper-btn:active {
    transform: scale(0.95) !important;
}

.sbexpod-cart-stepper-btn:focus-visible,
.sbexpod-cart-item-remover:focus-visible,
.sbexpod-cart-confirma-sim:focus-visible,
.sbexpod-cart-confirma-nao:focus-visible,
.sbexpod-cart-cupom-chip a:focus-visible,
.sbexpod-cart-cupom-detalhe summary:focus-visible,
.sbexpod-cart-continuar:focus-visible {
    outline: 3px solid var(--sanbar-foco);
    outline-offset: 2px;
}

.sbexpod-cart-wrap input[type="number"].sbexpod-cart-item-qtd {
    box-sizing: border-box !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: normal !important;
    border: 1.5px solid var(--sanbar-acao) !important;
    border-radius: var(--sbexpod-raio-ctl, 10px) !important;
    font-size: 15px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    position: static !important;
    float: none !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none !important;
    
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.sbexpod-cart-wrap input[type="number"].sbexpod-cart-item-qtd::-webkit-outer-spin-button,
.sbexpod-cart-wrap input[type="number"].sbexpod-cart-item-qtd::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.sbexpod-cart-wrap input[type="number"].sbexpod-cart-item-qtd:focus {
    outline: none !important;
    border-color: var(--sanbar-foco) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.sbexpod-cart-remover-grupo {
    grid-area: remove !important;
    align-self: center !important;
    justify-self: end !important;
    position: relative;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sbexpod-cart-confirma-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.sbexpod-cart-item-remover {
    box-sizing: border-box;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--sbexpod-raio-ctl, 10px);
    color: #b91c1c;
    text-decoration: none;
    background: #fde2e2;
    cursor: pointer;
    user-select: none;
}

.sbexpod-cart-item-remover svg {
    display: block;
}

.sbexpod-cart-item-remover:hover,
.sbexpod-cart-item-remover:focus,
.sbexpod-cart-item-remover:active {
    
    background: #fde2e2;
    color: #b91c1c;
    filter: brightness(0.97);
}

.sbexpod-cart-confirma-popover {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 5;
    background: #ffffff;
    border-radius: var(--sbexpod-raio-mini, 12px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    padding: 12px 14px;
    white-space: nowrap;
}

.sbexpod-cart-confirma-toggle:checked ~ .sbexpod-cart-confirma-popover {
    display: block;
}

.sbexpod-cart-confirma-toggle:focus-visible + .sbexpod-cart-item-remover {
    outline: 3px solid var(--sanbar-foco);
    outline-offset: 2px;
}

.sbexpod-cart-confirma-popover span {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
}

.sbexpod-cart-confirma-acoes {
    display: flex;
    gap: 8px;
}

.sbexpod-cart-confirma-sim,
.sbexpod-cart-confirma-nao {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    border-radius: var(--sbexpod-raio-ctl-p, 8px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.sbexpod-cart-confirma-sim {
    background: #b91c1c;
    color: #ffffff;
}

.sbexpod-cart-confirma-sim:hover,
.sbexpod-cart-confirma-sim:focus,
.sbexpod-cart-confirma-sim:active {
    background: #b91c1c;
    filter: brightness(0.95);
    color: #ffffff;
}

.sbexpod-cart-confirma-nao {
    background: #e5e7eb;
    color: #374151;
}

.sbexpod-cart-confirma-nao:hover,
.sbexpod-cart-confirma-nao:focus,
.sbexpod-cart-confirma-nao:active {
    background: #e5e7eb;
    filter: brightness(0.97);
    color: #374151;
}

.sbexpod-cart-rodape {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.sbexpod-cart-wrap .sbexpod-cart-rodape > p {
    margin: 0 !important;
    padding: 0 !important;
}

.sbexpod-cart-wrap .sbexpod-cart-rodape > p:empty {
    display: none !important;
}

.sbexpod-cart-subtotal {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #4b5563;
    min-width: 140px;
}

.sbexpod-cart-subtotal strong {
    font-size: 20px;
    color: #111827;
}

.sbexpod-cart-wrap .sbexpod-cart-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: var(--sanbar-botao-borda-largura) solid var(--sanbar-botao-integrado-borda) !important;
    border-radius: var(--sbexpod-raio-btn, 12px) !important;
    padding: 14px 22px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: var(--sanbar-botao-integrado-peso) !important;
    line-height: 1.2 !important;
    text-transform: var(--sanbar-botao-transformacao) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    min-height: var(--sanbar-botao-integrado-altura) !important;
    cursor: pointer;
    transition: var(--sanbar-botao-carrinho-transicao);
}

.sbexpod-cart-wrap .sbexpod-cart-btn:active {
    transform: scale(0.98);
}

.sbexpod-cart-wrap .sbexpod-cart-btn-primario {
    background: var(--sanbar-botao-integrado-fundo) !important;
    color: var(--sanbar-botao-integrado-texto) !important;
    width: 100% !important;
    order: 3;
}

.sbexpod-cart-wrap .sbexpod-cart-btn-primario:hover {
    border-color: var(--sanbar-botao-integrado-hover-borda) !important;
    background: var(--sanbar-botao-integrado-hover-fundo) !important;
    color: var(--sanbar-botao-integrado-texto) !important;
    box-shadow: var(--sanbar-botao-hover-sombra) !important;
    filter: var(--sanbar-botao-integrado-hover-filtro);
    transform: var(--sanbar-botao-hover-transformacao);
}

.sbexpod-cart-wrap .sbexpod-cart-btn-secundario {
    background: #e5e7eb !important;
    color: #374151 !important;
}

.sbexpod-cart-wrap .sbexpod-cart-btn-secundario:hover {
    filter: brightness(0.97);
    color: #374151 !important;
}

@media (max-width: 600px) {
    .sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item {
        grid-template-columns: 56px minmax(0, 1fr) 44px !important;
        grid-template-areas:
            "thumb info info"
            "commerce commerce remove" !important;
        align-items: start !important;
        gap: 12px !important;
        min-height: 0 !important;
        padding: 12px !important;
    }

    .sbexpod-cart-wrap .sbexpod-cart-itens > .sbexpod-cart-item-sem-thumb {
        grid-template-columns: minmax(0, 1fr) 44px !important;
        grid-template-areas:
            "info info"
            "commerce remove" !important;
    }

    .sbexpod-cart-item-commerce {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 12px !important;
        align-self: center !important;
    }

    .sbexpod-cart-item-valores {
        gap: 12px !important;
    }

    .sbexpod-cart-item-valores > div {
        min-width: 54px;
    }

    .sbexpod-cart-remover-grupo {
        align-self: center !important;
    }

    .sbexpod-cart-rodape {
        position: sticky;
        bottom: 0;
        background: #ffffff;
        padding: 12px 0 16px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    }
}

.sbexpod-cart-aviso {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 14px;
    border-radius: var(--sbexpod-raio-card, 16px);
}

.sbexpod-cart-desfazer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    
    animation: sbexpod-cart-some 0.3s ease 12s forwards;
}

.sbexpod-cart-desfazer a {
    flex: 0 0 auto;
    padding: 8px 4px;
    min-height: 24px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

@keyframes sbexpod-cart-some {
    to { opacity: 0; visibility: hidden; }
}

.sbexpod-cart-gratis-barra {
    display: block;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.sbexpod-cart-gratis-barra > span {
    display: block;
    height: 100%;
    background: var(--sanbar-acao);
    border-radius: 999px;
}

.sbexpod-cart-item-var,
.sbexpod-cart-item-estoque {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sbexpod-cart-item-estoque {
    color: #b45309;
}

.sbexpod-cart-item-total {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.sbexpod-cart-bloco {
    margin: 12px 0;
    padding: 12px 14px;
    background: #f3f4f6;
    border-radius: var(--sbexpod-raio-card, 16px);
}

.sbexpod-cart-rotulo {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.sbexpod-cart-campo-acao {
    display: flex;
    gap: 8px;
}

.sbexpod-cart-campo-acao input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--sbexpod-raio-ctl, 10px);
}

.sbexpod-cart-campo-acao .sbexpod-cart-btn {
    flex: 0 0 auto;
}

.sbexpod-cart-nota {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.sbexpod-cart-opcoes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.sbexpod-cart-opcao {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--sbexpod-raio-ctl, 10px);
    font-size: 14px;
    cursor: pointer;
}

.sbexpod-cart-opcao-nome {
    flex: 1 1 auto;
}

.sbexpod-cart-opcao-preco {
    font-weight: 600;
}

.sbexpod-cart-cupom-detalhe summary {
    min-height: 32px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.sbexpod-cart-cupom-detalhe .sbexpod-cart-campo-acao {
    margin-top: 8px;
}

.sbexpod-cart-cupons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.sbexpod-cart-cupom-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.sbexpod-cart-cupom-chip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 50%;
}

.sbexpod-cart-resumo {
    margin: 12px 0 0;
    padding: 0 2px;
}

.sbexpod-cart-resumo > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
}

.sbexpod-cart-resumo dt,
.sbexpod-cart-resumo dd {
    margin: 0;
}

.sbexpod-cart-resumo-desconto dd {
    color: #166534;
}

.sbexpod-cart-resumo-total {
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    font-weight: 700;
    color: #111827 !important;
    font-size: 16px !important;
}

.sbexpod-cart-continuar {
    display: block;
    margin-top: 12px;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    color: #4b5563;
    text-decoration: underline;
}

.sbexpod-cart-selos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #6b7280;
}

.sbexpod-cart-selos li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

@media (max-width: 600px) {
    .sbexpod-cart-campo-acao .sbexpod-cart-btn {
        padding: 12px 16px !important;
    }
}
