html[data-theme="dark"] .toast {
  background: #d94f28 !important;
  color: #fff !important;
  border: 2px solid #ffb08f !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.45) !important;
}

.store-meta > .open-status:not(.closed) {
  border-color: #7ec99d !important;
  background: #eaf7f0 !important;
  color: #117a45 !important;
}

.store-meta > .open-status.closed {
  border-color: #c9c4c0 !important;
  background: #f4f2f0 !important;
  color: #766f69 !important;
}

/* A ação do acompanhamento precisa permanecer evidente no cartão mobile. */
#showReceipt.subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px !important;
  border: 1px solid var(--primary-dark) !important;
  border-radius: 9px !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
}

#showReceipt.subtle:hover,
#showReceipt.subtle:active {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .tracking-banner { align-items: stretch !important; }
  #showReceipt.subtle { min-width: 112px; }
}

html[data-theme="dark"] .checkout-back,
html[data-theme="dark"] .secondary,
html[data-theme="dark"] .quantity-control button {
  background: #2a211d !important;
  color: #fff !important;
  border-color: #806b61 !important;
}

html[data-theme="dark"] .remove-item {
  color: #ff9d7c !important;
}

/* Sacola pública: leitura clara no resumo, no celular e no fechamento do pedido. */
.bag-heading h2 {
  color: #211914 !important;
  font-size: 1.25rem !important;
  font-weight: 850 !important;
}

.bag-heading > span,
.preview-line > b {
  color: #8f2f08 !important;
  font-size: .92rem !important;
  font-weight: 900 !important;
}

.preview-line {
  color: #31251f !important;
  font-size: .96rem !important;
  line-height: 1.5 !important;
}

.preview-line span { font-weight: 700 !important; }
.preview-line strong {
  color: #211914 !important;
  font-size: .95rem !important;
  font-weight: 850 !important;
}

.bag-preview-total {
  color: #3b2d25 !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
}

.bag-preview-total strong {
  color: #17100d !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
}

.bag-preview > .muted.small,
.bag-note,
.empty-bag {
  color: #62564f !important;
  font-size: .9rem !important;
  line-height: 1.55 !important;
}

.mobile-bag,
.mobile-bag span,
.mobile-bag strong {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
}

.mobile-bag b {
  background: #fff !important;
  color: #8f210d !important;
  font-size: .9rem !important;
  font-weight: 950 !important;
}

.checkout-dialog .dialog-top h2,
.checkout-item-copy b,
.checkout-item-copy strong,
.checkout-totals,
.total-row {
  color: #211914 !important;
}

.checkout-item-copy b { font-size: 1.05rem !important; }
.checkout-item-copy small {
  color: #5f534c !important;
  font-size: .92rem !important;
}
.checkout-item-copy strong {
  font-size: 1rem !important;
  font-weight: 850 !important;
}
.checkout-totals,
.total-row { font-size: 1rem !important; }
.total-row.final {
  color: #17100d !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
}

html[data-theme="dark"] .bag-heading h2,
html[data-theme="dark"] .preview-line,
html[data-theme="dark"] .preview-line span,
html[data-theme="dark"] .preview-line strong,
html[data-theme="dark"] .bag-preview-total,
html[data-theme="dark"] .bag-preview-total strong,
html[data-theme="dark"] .checkout-dialog .dialog-top h2,
html[data-theme="dark"] .checkout-item-copy b,
html[data-theme="dark"] .checkout-item-copy strong,
html[data-theme="dark"] .checkout-totals,
html[data-theme="dark"] .total-row,
html[data-theme="dark"] .total-row.final {
  color: #fff8f2 !important;
}

html[data-theme="dark"] .bag-heading > span,
html[data-theme="dark"] .preview-line > b {
  color: #ff9a69 !important;
}

html[data-theme="dark"] .bag-preview > .muted.small,
html[data-theme="dark"] .bag-note,
html[data-theme="dark"] .empty-bag,
html[data-theme="dark"] .checkout-item-copy small {
  color: #d4c5bc !important;
}

#changeField small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 740px) {
  body {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .page,
  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .store-name,
  .store-copy h1 {
    font-size: 1.55rem !important;
  }

  .menu-section h2 {
    font-size: 1.45rem !important;
  }

  .product-card h3,
  .checkout-item b {
    font-size: 1.13rem !important;
  }

  .product-card p,
  .product-description,
  .muted,
  .small {
    font-size: .98rem !important;
  }

  .product-price,
  .product-card strong {
    font-size: 1.08rem !important;
  }

  .store-meta,
  .store-meta span,
  .fulfillment-info span,
  .section-heading span,
  .product-badge,
  .optional,
  .bag-note,
  .payment-note,
  .privacy-note,
  .checkout-item small,
  .checkout-totals,
  .site-footer,
  .site-footer a {
    font-size: .92rem !important;
    line-height: 1.45 !important;
  }

  .fulfillment-info strong,
  .store-actions button,
  .bag-preview,
  .coupon-row button {
    font-size: 1rem !important;
  }

  .eyebrow {
    font-size: .84rem !important;
    letter-spacing: .1em !important;
  }

  .categories button,
  .service-choice label,
  label,
  button,
  .checkout-back {
    font-size: 1rem !important;
  }

  input,
  select,
  textarea {
    min-height: 50px !important;
    font-size: 16px !important;
  }

  dialog {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    margin: 8px auto !important;
  }

  .checkout-dialog {
    padding: 18px !important;
  }

  .toast {
    width: calc(100% - 32px) !important;
    max-width: 430px !important;
    font-size: 1rem !important;
    text-align: center !important;
  }
}
