/* Compra mais clara sem mudar preços, frete, pedidos ou provedor de pagamento. */

/* Carrinho: produto à esquerda, confirmação do valor à direita. */
body.storefront #cart-dialog.cart-dialog {
  border-radius: 20px;
  border-color: #bccfb9;
}
body.storefront #cart-dialog .dialog-head { padding: 16px 0 12px; }
body.storefront #cart-dialog .dialog-head h2 { font-size: 26px; line-height: 1.2; }
body.storefront #cart-dialog .dialog-head p { line-height: 1.45; }
body.storefront #cart-dialog .cart-tools { padding: 12px 0; gap: 10px; }
body.storefront #cart-dialog .cart-tools h3,
body.storefront #cart-dialog .cart-checkout-footer h3 { font-size: 16px; font-weight: 800; }
body.storefront #cart-dialog .cart-market-item { border-color: #dbe5d7; }
body.storefront #cart-dialog .cart-market-item > img { background: #fff; border: 1px solid #e3e9df; border-radius: 9px; }
body.storefront #cart-dialog .cart-item-info > strong { display: block; font-size: 16px; line-height: 1.35; }
body.storefront #cart-dialog .cart-item-info > small { font-size: 13px; line-height: 1.4; margin: 4px 0 7px; color: #657566; }
body.storefront #cart-dialog .cart-unit-price { font-size: 13px; line-height: 1.4; }
body.storefront #cart-dialog .cart-line-amount b { font-size: 17px; }
body.storefront #cart-dialog .cart-line-amount small { font-size: 12px; line-height: 1.35; }
body.storefront #cart-dialog .qty { border-color: #bbceb8; background: white; }
body.storefront #cart-dialog .qty button:focus-visible,
body.storefront #cart-dialog .remove:focus-visible,
body.storefront #cart-dialog .online-action:focus-visible { outline: 3px solid #7ca251; outline-offset: 2px; }

body.storefront #cart-delivery { margin-top: 8px; padding-top: 13px; }
body.storefront #cart-delivery > label { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
body.storefront #cart-delivery-cep { background: white; border-color: #a9bfa9; }
body.storefront #cart-delivery-cep:focus-visible { border-color: #2a694b; outline: 3px solid #91ae7c; outline-offset: 2px; }
body.storefront #cart-delivery-message { font-size: 13px; margin: 6px 0 9px; }
body.storefront .cart-delivery-choice { border-color: #cbdcc6; transition: background .15s, border-color .15s; }
body.storefront .cart-delivery-choice:has(input:checked) { background: #e8f4e2; border-color: #3a7550; box-shadow: inset 0 0 0 1px #3a7550; }
body.storefront .cart-delivery-choice small { font-size: 13px; }

/* Regras longas ficam acessíveis sob demanda, sem ocupar o espaço dos produtos. */
body.storefront #free-shipping-hint .shipping-customer-note {
  display: block;
  padding: 12px 14px;
  margin: 12px 0 8px;
  background: #edf4e4;
  border: 1px solid #c8d9b8;
  border-radius: 12px;
  color: #244c36;
}
body.storefront #free-shipping-hint .shipping-customer-note > strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
}
body.storefront .cart-campaign-terms { margin-top: 6px; }
body.storefront .cart-campaign-terms > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  cursor: pointer;
  color: #285b3d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.storefront .cart-campaign-terms > p { margin: 5px 0 2px; font-size: 13px; line-height: 1.6; }

body.storefront #cart-dialog .cart-checkout-footer { background: #f4f8ef; }
body.storefront #cart-dialog .cart-summary-lines { font-size: 14px; gap: 6px; }
body.storefront #cart-dialog .cart-savings-banner { font-size: 13px; }
body.storefront #cart-dialog .cart-grand-total { padding-top: 12px; }
body.storefront #cart-dialog .cart-grand-total span { font-size: 15px; font-weight: 700; }
body.storefront #cart-dialog .cart-grand-total strong { font-size: 24px; color: #153e35; }
body.storefront #cart-dialog .online-action { min-height: 52px; font-size: 16px; font-weight: 800; }
body.storefront #cart-dialog .online-action:not(:disabled) { background: #153e35; color: #fff; }
body.storefront #cart-dialog .online-action:disabled { color: #506b54; background: #dfeadd; border-color: #c9d8c5; }
body.storefront #cart-dialog .checkout-footnote { font-size: 12px; color: #617365; }

/* Checkout: passos visíveis, campos confortáveis e total de alta prioridade. */
body.checkout-mobile-page { background: #f4f7f1; color: #173e31; }
body.checkout-mobile-page .checkout-main { padding-top: 18px; }
body.checkout-mobile-page .checkout-intro .eyebrow { font-size: 12px; letter-spacing: .12em; }
body.checkout-mobile-page .checkout-intro h1 { font-size: clamp(29px, 3vw, 35px); margin: 5px 0 5px; letter-spacing: -.045em; line-height: 1.18; }
body.checkout-mobile-page .checkout-intro .intro { font-size: 15px; line-height: 1.5; }
body.checkout-mobile-page .checkout-accepted { margin-top: 11px; gap: 7px; }
body.checkout-mobile-page .checkout-accepted > span { padding: 5px 11px; min-height: 36px; font-size: 14px; border-radius: 9px; }
body.checkout-mobile-page .checkout-accepted small { font-size: 12px !important; }
body.checkout-mobile-page .accepted-note { font-size: 12px; line-height: 1.5; margin: 5px 0 0; }
body.checkout-mobile-page .checkout-flow { margin: 17px 0 13px; border-radius: 11px; }
body.checkout-mobile-page .checkout-flow li { min-height: 49px; font-size: 14px; }
body.checkout-mobile-page .checkout-flow b { font-size: 13px; }
body.checkout-mobile-page .message { margin-bottom: 14px; padding: 12px 15px; font-size: 14px; line-height: 1.5; }
body.checkout-mobile-page .checkout-grid { gap: 17px; align-items: start; }
body.checkout-mobile-page .checkout-grid .box { padding: 23px; border-radius: 16px; border-color: #d5e1d0; box-shadow: 0 9px 26px #173e3109; }
body.checkout-mobile-page .checkout-step-heading { margin-bottom: 18px; }
body.checkout-mobile-page .checkout-step-heading h2 { font-size: 23px; line-height: 1.25; }
body.checkout-mobile-page .checkout-step-heading p { font-size: 14px !important; line-height: 1.55; }
body.checkout-mobile-page #freight-form { margin-bottom: 14px; }
body.checkout-mobile-page input { background: #fff; border-color: #adbea9; min-height: 50px; }
body.checkout-mobile-page input:focus-visible { outline: 3px solid #9ab983; outline-offset: 2px; }
body.checkout-mobile-page .primary { font-weight: 800; min-height: 50px; }
body.checkout-mobile-page .checkout-next { min-height: 52px; }
body.checkout-mobile-page .delivery-choice { border-color: #cbdccb; }
body.checkout-mobile-page .delivery-choice:has(input:checked) { border-color: #397454; background: #eaf5e6; box-shadow: inset 0 0 0 1px #397454; }
body.checkout-mobile-page .checkout-summary { background: #fafff8; }
body.checkout-mobile-page .checkout-summary #order-summary > summary { gap: 10px; }
body.checkout-mobile-page .checkout-summary summary b { font-size: 13px; }
body.checkout-mobile-page .checkout-totals .grand-total { margin-top: 10px; padding-top: 14px; border-top: 1px solid #cbdac8; }
body.checkout-mobile-page .checkout-totals .grand-total dt { font-weight: 800; }
body.checkout-mobile-page .checkout-totals .grand-total dd { font-size: 23px; font-weight: 850; color: #153e35; }
body.checkout-mobile-page .payment-choice:has(input:checked) { border-color: #397454 !important; background: #eaf5e5 !important; }
body.checkout-mobile-page #pay-button { min-height: 54px; font-weight: 800; }
body.checkout-mobile-page .checkout-charge-note { font-size: 13px !important; }

/* Um link direto de recuperação quando não há pedido para finalizar. */
body.checkout-mobile-page.checkout-needs-cart .checkout-grid { display: none; }
body.checkout-mobile-page.checkout-needs-cart .checkout-flow,
body.checkout-mobile-page.checkout-needs-cart .checkout-accepted,
body.checkout-mobile-page.checkout-needs-cart .accepted-note { display: none; }
body.checkout-mobile-page.checkout-needs-cart #checkout-message { margin-top: 18px; }
.checkout-recovery {
  max-width: 660px;
  margin: 0 0 20px;
  padding: 24px;
  background: white;
  border: 1px solid #d5e1ce;
  border-radius: 16px;
  box-shadow: 0 9px 26px #173e3109;
}
.checkout-recovery h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.checkout-recovery p { margin: 0 0 15px; font-size: 15px; line-height: 1.6; color: #526b56; }
.checkout-recovery a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; background: #153e35; color: white; border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 800; }
.checkout-recovery a:focus-visible { outline: 3px solid #83a86a; outline-offset: 3px; }

@media (max-width: 750px) {
  body.storefront #cart-dialog.cart-dialog { border-radius: 18px 18px 0 0; }
  body.storefront #cart-dialog .dialog-head { padding: 14px 0 11px; }
  body.storefront #cart-dialog .dialog-head h2 { font-size: 23px; }
  body.storefront #cart-dialog .cart-market-item { gap: 9px; }
  body.storefront #cart-dialog .cart-market-item > img { width: 54px; height: 61px; }
  body.storefront #cart-dialog .cart-item-info > strong { font-size: 15px; }
  body.storefront #cart-dialog .cart-line-amount b { font-size: 15px; }
  body.storefront #cart-dialog .cart-summary-lines { font-size: 13px; }
  body.storefront #cart-dialog .cart-grand-total strong { font-size: 21px; }
  body.storefront #cart-dialog .online-action { min-height: 50px; font-size: 15px; }
  body.checkout-mobile-page .checkout-main { padding-top: 12px !important; }
  body.checkout-mobile-page .checkout-intro h1 { font-size: 27px; }
  body.checkout-mobile-page .checkout-accepted > span { font-size: 13px; min-height: 34px; }
  body.checkout-mobile-page .checkout-flow { margin: 13px 0 11px; }
  body.checkout-mobile-page .checkout-flow li { gap: 6px; padding: 9px 8px; font-size: 12px; min-height: 47px; }
  body.checkout-mobile-page .checkout-flow b { flex: 0 0 22px; width: 22px; height: 22px; font-size: 12px; }
  body.checkout-mobile-page .checkout-grid { gap: 12px; }
  body.checkout-mobile-page .checkout-grid .box { padding: 17px; }
  body.checkout-mobile-page .checkout-step-heading h2 { font-size: 20px; }
  body.checkout-mobile-page .checkout-step-heading p { font-size: 14px !important; }
  body.checkout-mobile-page .checkout-summary .checkout-totals { margin-top: 7px; }
  body.checkout-mobile-page .checkout-summary .checkout-totals .grand-total dd { font-size: 22px; }
  body.checkout-mobile-page .checkout-mobile-action { border-radius: 14px 14px 0 0; }
  body.checkout-mobile-page .checkout-mobile-action small { font-size: 12px !important; }
  body.checkout-mobile-page .checkout-mobile-action strong { font-size: 20px; }
  body.checkout-mobile-page .checkout-mobile-action button.primary { min-height: 48px; }
  body.checkout-mobile-page .checkout-recovery { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  body.storefront .cart-delivery-choice { transition: none; }
}
