:root {
  --tt: #fe2c55;
  --tt-dark: #e11d48;
  --tt-soft: #fff0f4;
  --tt-teal: #00a392;
  --tt-teal-bg: #e8f8f5;
  --tt-green: #00a86b;
  --fg: #161823;
  --muted: #6b7280;
  --border: #ededf0;
  --page: #f4f4f6;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: #e5e5e7;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font-family: inherit; }

.mc-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--page);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  padding-bottom: calc(164px + var(--safe-bottom));
  position: relative;
}

/* Topbar */
.mc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 50px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f3;
  padding: 0 6px;
}
.mc-back-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
}
.mc-topbar-title {
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mc-star { color: #f2b900; font-size: 15px; }

/* Cards */
.mc-card {
  background: #ffffff;
  margin-top: 8px;
  padding: 14px 16px;
}
.mc-card.mc-card-first {
  margin-top: 0;
  padding: 0;
}

/* Address section */
.mc-address-btn {
  width: 100%;
  border: 0;
  background: #ffffff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: block;
}
.mc-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mc-address-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.mc-address-cta {
  color: var(--tt);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.mc-address-preview {
  margin-top: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}
.mc-address-preview strong {
  color: var(--fg);
  font-weight: 700;
}
.mc-badge-default {
  display: inline-block;
  background: rgba(0, 168, 107, 0.12);
  color: var(--tt-green);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 5px;
}
.mc-envelope-stripe {
  height: 3.5px;
  background: repeating-linear-gradient(
    -45deg,
    #fe2c55 0,
    #fe2c55 12px,
    #ffffff 12px,
    #ffffff 18px,
    #25d9d0 18px,
    #25d9d0 30px,
    #ffffff 30px,
    #ffffff 36px
  );
}

/* Product card (matches model) */
.mc-product-card {
  margin-top: 0;
  padding-top: 12px;
}
.mc-seller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.mc-seller-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
}
.mc-seller-note-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #8a8b91;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.mc-product-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}
.mc-product-img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid #f0f0f2;
  background: #ffffff;
  object-fit: contain;
}
.mc-product-info {
  min-width: 0;
}
.mc-product-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-flash-line {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ffd4df;
}
.mc-flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(90deg, #fe2c55, #ff476e);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
}
.mc-flash-timer {
  background: #fff0f4;
  color: #d61c46;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  font-variant-numeric: tabular-nums;
}
.mc-return-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5a5b60;
}
.mc-return-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5b126;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
}
.mc-price-qty-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.mc-price-now-line {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mc-price-now {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--tt);
  line-height: 1.1;
}
.mc-ticket-mini {
  flex-shrink: 0;
}
.mc-price-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 11.5px;
}
.mc-price-old {
  color: #9ca3af;
  text-decoration: line-through;
}
.mc-price-off {
  background: #ffe8ee;
  color: var(--tt);
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10.5px;
}
.mc-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #f3f3f5;
  height: 28px;
  padding: 0 2px;
}
.mc-qty-ctrl button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mc-qty-ctrl button:disabled {
  color: #c4c4cc;
  cursor: default;
}
.mc-qty-ctrl output {
  min-width: 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

/* Delivery banner */
.mc-delivery-banner {
  margin-top: 12px;
  background: #eff7f8;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.mc-delivery-eta {
  color: var(--fg);
  font-weight: 500;
}
.mc-delivery-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.mc-ship-old {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 12.5px;
}
.mc-ship-free {
  color: var(--fg);
  font-weight: 800;
}
.mc-ship-ticket {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #dcf5f2;
  color: #009c8e;
}

/* Discount row */
.mc-discount-card {
  padding: 12px 16px;
}
.mc-discount-row {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.mc-discount-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
}
.mc-discount-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-discount-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.mc-tag-teal {
  background: var(--tt-teal-bg);
  color: var(--tt-teal);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.mc-tag-pink {
  background: #fff0f3;
  color: var(--tt);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.mc-chevron {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Order Bumps: Aproveite e leve junto (matches model) */
.mc-bumps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mc-bumps-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.mc-bumps-badge {
  background: #fff0f4;
  color: var(--tt);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mc-bumps-sub {
  margin: 4px 0 12px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.35;
}
.mc-bumps-list {
  display: grid;
  gap: 10px;
}
.mc-bump-item {
  display: grid;
  grid-template-columns: 20px 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1.25px dashed #d5d6dc;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
  position: relative;
}
.mc-bump-item.is-selected {
  border: 1.5px solid var(--tt);
  background: #fff7f9;
}
.mc-bump-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.mc-bump-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.6px solid #c9cbd2;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s;
}
.mc-bump-item.is-selected .mc-bump-check {
  background: var(--tt);
  border-color: var(--tt);
  color: #ffffff;
}
.mc-bump-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0f0f3;
}
.mc-bump-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mc-bump-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.mc-bump-desc {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.35;
}
.mc-bump-price {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tt);
}

/* Resumo do pedido */
.mc-summary-title {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fg);
}
.mc-summary-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
}
.mc-summary-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mc-caret {
  display: inline-block;
  font-size: 13px;
  color: #6b7280;
  transition: transform 0.16s;
  transform: translateY(-2px);
}
.mc-summary-toggle[aria-expanded="false"] .mc-caret {
  transform: rotate(-90deg);
}
.mc-summary-group {
  padding-bottom: 6px;
}
.mc-summary-group[hidden] {
  display: none;
}
.mc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0 4px 10px;
  color: #6b7280;
}
.mc-summary-row[hidden] {
  display: none;
}
.mc-summary-row.discount b {
  color: var(--tt);
  font-weight: 600;
}
.mc-summary-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mc-summary-total span {
  font-size: 15.5px;
  font-weight: 700;
}
.mc-summary-total-val {
  text-align: right;
}
.mc-summary-total-val strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--fg);
}
.mc-summary-total-val small {
  display: block;
  font-size: 11px;
  color: #8a8b91;
  margin-top: 2px;
}

/* Forma de pagamento (matches model) */
.mc-pay-box {
  border: 1px solid #ececf0;
  background: #fafafa;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mc-pay-left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mc-pix-ico {
  width: 24px;
  height: 24px;
  color: #2eb6a6;
  flex-shrink: 0;
}
.mc-pay-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  display: block;
}
.mc-pay-sub {
  font-size: 11.5px;
  color: #6b7280;
  display: block;
  margin-top: 2px;
}
.mc-pay-badge {
  color: #009c8e;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Sticky footer (matches model) */
.mc-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 40;
  padding-bottom: var(--safe-bottom);
}
.mc-savings-bar {
  background: #fff0f4;
  color: #d61c46;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-footer-inner {
  padding: 9px 14px 12px;
}
.mc-footer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}
.mc-footer-total-row span {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.mc-footer-total-row strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--tt);
}
.mc-submit-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--tt);
  color: #ffffff;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
  transition: transform 0.1s, opacity 0.2s;
}
.mc-submit-btn:active { transform: scale(0.99); }
.mc-submit-btn:disabled { opacity: 0.72; cursor: wait; }
.mc-submit-main {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.15;
}
.mc-submit-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Centered TikTok Shop "Adicionar endereço de entrega" Dialog */
.mc-prompt-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mc-prompt-backdrop.show {
  display: flex;
}
.mc-prompt-dialog {
  width: 100%;
  max-width: 312px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  animation: mcPopIn 0.18s ease-out;
}
@keyframes mcPopIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.mc-prompt-body {
  padding: 22px 20px 18px;
  text-align: center;
}
.mc-prompt-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.3;
}
.mc-prompt-text {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #5a5b60;
  line-height: 1.45;
}
.mc-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ececf0;
}
.mc-prompt-btn {
  border: 0;
  background: #ffffff;
  padding: 14px 10px;
  font-size: 15px;
  cursor: pointer;
  color: var(--fg);
}
.mc-prompt-btn:active {
  background: #f5f5f7;
}
.mc-prompt-later {
  font-weight: 500;
  color: #374151;
  border-right: 1px solid #ececf0;
}
.mc-prompt-add {
  font-weight: 700;
  color: var(--fg);
}
.mc-note-textarea {
  margin-top: 12px;
  width: 100%;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13.5px;
  color: var(--fg);
  resize: none;
  outline: none;
}
.mc-note-textarea:focus {
  border-color: var(--tt);
}

/* Fullscreen Modals (Address / Pix / Success) */
.mc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--page);
  overflow-y: auto;
}
.mc-modal.show { display: block; }
.mc-modal-inner {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  padding-bottom: calc(148px + var(--safe-bottom));
}
.mc-section-label {
  padding: 14px 16px 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #5a5b60;
}
.mc-field-group {
  background: #ffffff;
  margin: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.mc-field-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.mc-field-row:last-child { border-bottom: 0; }
.mc-field-row.is-invalid,
.mc-grid-col.is-invalid {
  background: #fff5f7;
  box-shadow: inset 3px 0 0 var(--tt-dark);
}
.mc-field-row.is-invalid { border-bottom-color: transparent; }
.mc-field-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.mc-field-input::placeholder { color: #9ca3af; font-weight: 400; }
.mc-field-row.is-invalid .mc-field-input::placeholder,
.mc-grid-col.is-invalid .mc-field-input::placeholder { color: #be123c; }
.mc-phone-prefix {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-right: 10px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.mc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.mc-grid-col {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mc-grid-col:first-child { border-right: 1px solid var(--border); }
.mc-field-error {
  display: none;
  padding: 0 14px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-dark);
  background: #fff5f7;
  border-bottom: 1px solid var(--border);
  box-shadow: inset 3px 0 0 var(--tt-dark);
  line-height: 1.35;
}
.mc-field-error:last-child { border-bottom: 0; }
.mc-field-error.show { display: block; }
.mc-grid-error {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tt-dark);
  line-height: 1.3;
}
.mc-grid-error.show { display: block; }
.mc-cep-loading {
  display: none;
  font-size: 11.5px;
  color: var(--tt-teal);
  font-weight: 700;
  white-space: nowrap;
}
.mc-error-summary {
  display: none;
  text-align: left;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}
.mc-error-summary.show { display: block; }
.mc-modal-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(14px + var(--safe-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 130;
}
.mc-privacy-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.4;
}
.mc-save-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--tt);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
}
@keyframes mcShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.mc-shake { animation: mcShake 0.32s ease; }

/* Pix Screen (Modelo Oficial TikTok Shop — idêntico a Ventilador/AR) */
.mc-pix-body {
  padding: 16px;
  text-align: center;
}
.mc-pix-modal {
  background: #e5e5e7;
}
.mc-pix-inner {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(24px + var(--safe-bottom));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}
.pix-page-header {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 20;
}
.pix-page-header-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-right: 38px;
}
.pix-gradient-aura {
  background: linear-gradient(180deg, #dcfce7 0%, #e0f2fe 35%, #fff1f2 70%, #ffffff 100%);
  padding: 16px 18px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pix-waiting-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}
.pix-waiting-price {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-top: 4px;
}
.pix-timer-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}
.pix-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tt);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.pix-deadline-text {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.pix-clock-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}
.pix-code-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin: -10px 16px 16px;
  padding: 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}
.pix-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pix-card-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf3f7;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}
.pix-card-brand-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.pix-official-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pix-qr-container {
  text-align: center;
  padding: 10px 0 6px;
}
.pix-qr-frame {
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.pix-qr-frame img {
  width: 190px;
  height: 190px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}
.pix-qr-caption {
  font-size: 12px;
  color: #4b5563;
  margin-top: 8px;
  font-weight: 500;
}
.pix-code-block {
  margin: 12px 0 16px;
  text-align: left;
}
.pix-code-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.pix-code-box {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #111827;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.35;
  max-height: 68px;
  overflow-y: auto;
  cursor: pointer;
}
.pix-btn-copy-main {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  background: var(--tt);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.25);
  transition: background-color 0.2s, transform 0.1s;
}
.pix-btn-copy-main:active {
  transform: scale(0.99);
}
.pix-btn-copy-main.is-copied {
  background: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.pix-order-summary {
  background: #ffffff;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 16px;
  margin: 4px 16px 14px;
  color: #172033;
  text-align: left;
}
.pix-order-summary:empty {
  display: none;
}
.pix-order-summary h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}
.pix-order-summary h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
}
.pix-order-summary p {
  font-size: 12.5px;
  color: #607086;
  line-height: 1.5;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.pix-summary-item {
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}
.pix-summary-item strong {
  display: block;
  font-size: 13.5px;
  color: #111827;
}
.pix-summary-item span {
  display: inline-block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tt);
}
.pix-instructions-block {
  padding: 6px 16px 18px;
  text-align: left;
}
.pix-help-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}
.pix-help-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}
.pix-btn-view-order {
  margin: auto 16px 8px;
  height: 46px;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Order Details Modal (Ver pedido) */
.mc-order-modal {
  z-index: 140;
  background: #e5e5e7;
}
.mc-order-inner {
  background: #f4f5f7;
  padding-bottom: calc(88px + var(--safe-bottom));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}
.order-top-header {
  background: linear-gradient(180deg, #d8f5eb 0%, #e6f7fa 40%, #f4f5f7 100%);
  padding: 12px 14px 18px;
  position: relative;
  overflow: hidden;
}
.order-top-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-header-title-box {
  flex: 1;
}
.order-status-title {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}
.order-status-subtitle {
  font-size: 13px;
  color: #4b5563;
  margin-top: 3px;
  font-weight: 500;
}
.order-header-clock-watermark {
  position: absolute;
  right: 16px;
  top: 10px;
  opacity: 0.15;
  pointer-events: none;
}
.order-card {
  background: #ffffff;
  margin: 10px 14px;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.order-total-header-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}
.order-pix-method-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}
.order-blue-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-top: 6px;
}
.order-blue-link-indent {
  padding-left: 20px;
}
.order-address-box {
  border-top: 1px solid #f3f4f6;
  margin-top: 12px;
  padding-top: 12px;
}
.order-customer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.order-customer-header svg {
  color: var(--muted);
  flex-shrink: 0;
}
.order-customer-email {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 2px;
  padding-left: 20px;
}
.order-customer-addr {
  font-size: 12.5px;
  color: #4b5563;
  margin-top: 3px;
  line-height: 1.4;
  padding-left: 20px;
}
.order-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.order-store-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.order-store-name img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.order-prod-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  align-items: flex-start;
  border-bottom: 1px solid #f3f4f6;
}
.order-prod-item:last-child {
  border-bottom: 0;
}
.order-prod-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: #f9fafb;
  flex-shrink: 0;
}
.order-prod-info {
  flex: 1;
  min-width: 0;
}
.order-prod-title-price {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.order-prod-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}
.order-prod-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.order-prod-variant-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}
.order-badge-return {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(179, 139, 77, 0.12);
  color: #9a6b26;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}
.order-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
  gap: 8px;
}
.order-copy-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}
.order-summary-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.order-pix-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}
.order-total-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}
.order-total-mini #order-summary-total-val {
  color: var(--tt);
}
.order-taxes-note {
  text-align: right;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.order-banner-return {
  background: #ffffff;
  margin: 10px 14px;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #374151;
}
.order-banner-return svg {
  color: var(--tt);
  flex-shrink: 0;
}
.order-protection-card {
  background: #ffffff;
  margin: 10px 14px;
  border-radius: 12px;
  padding: 14px 16px;
}
.order-prot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}
.order-prot-header svg {
  color: #b38b4d;
}
.order-prot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  font-size: 12px;
  color: #4b5563;
}
.order-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + var(--safe-bottom));
  z-index: 150;
}

/* Success Screen */
.mc-success-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 18px;
  border: 1px solid var(--border);
}
.mc-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}
.mc-track-code {
  margin: 14px auto;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f4f4f6;
  border: 1px dashed #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.mc-track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: #161823;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}

/* Toast */
.mc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  transform: translate(-50%, 10px);
  background: rgba(22, 24, 35, 0.94);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  max-width: min(380px, calc(100vw - 32px));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 220;
}
.mc-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
