/* Ridee Food — sacola no padrão 99Food (frente Q2, 06/11/2026). Contrato: docs/marketplace-checkout/CONTRATO-COMPRA-99.md
   Identidade: amarelo #F9D515, tinta #1A1A1A, verde de preço #0A7C4C. Respiro de 16px dos lados. */

/* corpo da folha da sacola: respiro lateral resolvido AQUI (a regra global é da Q6) */
.mkt .mkt-sheet-ov.bag .mkt-sheet-body { padding: 4px 16px 20px; }
.mkt .cx-itens { display: flex; flex-direction: column; }

/* item */
.mkt .cx-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 0; align-items: flex-start; overflow: hidden; max-height: 400px; transition: max-height .24s ease, opacity .2s ease, padding .24s ease; }
.mkt .cx-item.cx-sai { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.mkt .cx-item .ph { width: 72px; height: 72px; border-radius: 16px; flex: 0 0 auto; object-fit: cover; }
.mkt .cx-item .tx { flex: 1; min-width: 0; }
.mkt .cx-item .tx b { font-size: 15px; font-weight: 700; line-height: 1.3; color: #1A1A1A; display: block; }
.mkt .cx-item .tx small { font-size: 12.5px; color: var(--ink-2); display: block; margin-top: 2px; line-height: 1.4; }
.mkt .cx-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.mkt .cx-item .pr { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mkt .cx-preco { font-size: 16px; font-weight: 800; color: #0A7C4C; }
.mkt .cx-de { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-decoration: line-through; }
.mkt .cx-ed { border: 0; background: none; padding: 8px 0 0; min-height: 36px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* stepper ⊖ n ⊕ */
.mkt .cx-qty { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; }
.mkt .cx-qty button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: #1A1A1A; padding: 0; }
.mkt .cx-qty button .ic { width: 26px; height: 26px; }
.mkt .cx-qty b { min-width: 20px; text-align: center; font-size: 15px; font-weight: 700; display: inline-block; }
.mkt .cx-qty b.fx-up, .mkt .cx-qty b.fx-down { display: inline-block; }

.mkt .cx-mais { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 2px; padding-top: 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; color: #1A1A1A; }
.mkt .cx-mais .ic { width: 18px; height: 18px; }

/* sugestão */
.mkt .cx-upsell:not(:empty) { margin-top: 14px; }
.mkt .cx-up-t { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.mkt .cx-up-rail { margin: 0 -16px; padding: 0 16px 4px; scroll-padding-left: 16px; }
.mkt .cx-up { display: flex; flex-direction: column; gap: 6px; width: 112px; flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.mkt .cx-up .ph { width: 96px; height: 96px; border-radius: 14px; }
.mkt .cx-up b { font-size: 12.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mkt .cx-up-pr { display: flex; align-items: center; justify-content: space-between; }
.mkt .cx-up-pr small { font-size: 13px; font-weight: 800; color: #0A7C4C; }
.mkt .cx-up-mais { width: 26px; height: 26px; border-radius: 50%; background: #F9D515; display: grid; place-items: center; color: #1A1A1A; }
.mkt .cx-up-mais .ic { width: 15px; height: 15px; }

/* talheres */
.mkt .cx-talh { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 8px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.mkt .cx-talh-ic .ic { width: 24px; height: 24px; }
.mkt .cx-talh-tx { flex: 1; font-size: 16px; font-weight: 700; }
.mkt .cx-talh input { position: absolute; opacity: 0; width: 44px; height: 44px; right: -6px; margin: 0; cursor: pointer; }
.mkt .cx-chk { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #1A1A1A; background: #fff; display: grid; place-items: center; color: #fff; transition: background .15s, transform .15s; }
.mkt .cx-chk .ic { width: 18px; height: 18px; opacity: 0; }
.mkt .cx-talh input:checked ~ .cx-chk { background: #1A1A1A; }
.mkt .cx-talh input:checked ~ .cx-chk .ic { opacity: 1; }
.mkt .cx-talh input:focus-visible ~ .cx-chk { outline: 3px solid #F9D515; outline-offset: 2px; }

/* faixa de cupons (a do módulo da Q4 traz o próprio estilo; esta é a de reserva) */
.mkt .cx-cupom-wrap { margin: 0 -16px; }
.mkt .cx-cupom { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; background: #EAF7F0; color: #1A1A1A; }
.mkt .cx-cupom-ic { display: grid; place-items: center; width: 24px; height: 24px; color: #0A7C4C; }
.mkt .cx-cupom-ic svg { width: 22px; height: 22px; }
.mkt .cx-cupom b { flex: 1; font-size: 15px; font-weight: 700; }
.mkt .cx-cupom-d { font-size: 13px; color: #1A1A1A; }
.mkt .cx-cupom .ic { width: 18px; height: 18px; }

/* avisos */
.mkt .cx-aviso { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #FFF6D6; color: #5E4500; font-size: 13.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mkt .cx-aviso .ic { width: 18px; height: 18px; flex: 0 0 auto; }
.mkt .cx-aviso-gr { display: block; background: #EAF7F0; color: #0A5C39; }
.mkt .cx-barra { height: 8px; border-radius: 99px; background: rgba(10, 124, 76, .18); margin-top: 8px; overflow: hidden; }
.mkt .cx-barra i { display: block; height: 100%; border-radius: 99px; background: #0A7C4C; transition: width .4s ease; }

/* rodapé fixo */
.mkt .cx-cta { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.mkt .cx-row { display: flex; align-items: center; gap: 14px; }
.mkt .cx-row .tot { flex: 1; min-width: 0; }
.mkt .cx-row .tot b { font-size: 20px; font-weight: 800; display: block; }
.mkt .cx-eco { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; min-height: 28px; font: inherit; font-size: 13px; font-weight: 700; color: #0A7C4C; cursor: pointer; }
.mkt .cx-eco .ic { width: 14px; height: 14px; transition: transform .2s; }
.mkt .cx-eco[aria-expanded="true"] .ic { transform: rotate(180deg); }
.mkt .cx-eco[hidden], .mkt .cx-eco-det[hidden] { display: none; }
.mkt .cx-cta .tot small { display: block; font-size: 12px; font-weight: 700; color: #0A7C4C; }
.mkt .cx-cta .tot small.cx-nota-av { color: #8A6100; }
.mkt .cx-cta .tot small:not(.cx-nota-ok):not(.cx-nota-av) { color: var(--ink-2); font-weight: 600; }
.mkt .cx-eco-det { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; margin-bottom: 8px; border-radius: 12px; background: #EAF7F0; font-size: 13px; color: #0A5C39; }
.mkt .cx-eco-det div { display: flex; justify-content: space-between; }
.mkt .cx-go { flex: 0 0 auto; min-width: 168px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; background: #F9D515; color: #1A1A1A; font-size: 17px; font-weight: 800; border-radius: 18px; }
.mkt .cx-go .cx-n { font-style: normal; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: #1A1A1A; color: #fff; font-size: 14px; display: inline-grid; place-items: center; }
.mkt .cx-go.btn-disabled { opacity: .45; }

.mkt .cx-ver-lojas { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .mkt .cx-item, .mkt .cx-barra i, .mkt .cx-eco .ic, .mkt .cx-chk { transition: none; }
}
