/* Asa Clean 2.0 — load after checkout.css and the shared brand tokens. */
.checkout-page,
.checkout-empty,
.consent-banner {
  color: var(--ink, #101820);
  font-family: Inter, sans-serif;
}

.checkout-heading h1,
.checkout-section-title h2,
.pix-result h2,
.checkout-empty h1 {
  font-family: Sora, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.checkout-panel,
.checkout-summary,
.consent-banner {
  min-width: 0;
  background: var(--white, #fff);
  border-color: var(--line, #e3e8ef);
  border-radius: var(--radius-card, 24px);
  box-shadow: 0 4px 20px #10182005;
}

.checkout-summary { background: var(--light, #f4f7fb); }
.checkout-heading strong { color: var(--ink, #101820); }
.checkout-breadcrumb,
.checkout-heading p,
.checkout-section-note,
.checkout-field span,
.checkout-method div span,
.checkout-item p,
.checkout-privacy,
.checkout-protection,
.pix-result > p,
.pix-code-details,
.pix-only-note span,
.pix-price-note,
.checkout-items > summary span,
.consent-banner p { color: var(--muted, #526170); }

.checkout-page a,
.checkout-page .text-link,
.consent-banner p a { color: var(--blue, #265cff); }

.checkout-page a:hover,
.checkout-page .text-link:hover,
.consent-banner p a:hover { color: var(--blue-hover, #1749db); }

.step-number { background: var(--blue, #265cff); }
.delivery-title,
.checkout-item,
.checkout-items > summary,
.checkout-totals .checkout-total { border-color: var(--line, #e3e8ef); }

.checkout-field input,
.pix-code-details textarea {
  box-sizing: border-box;
  min-height: 48px;
  border-color: var(--line, #e3e8ef);
  border-radius: var(--radius-field, 16px);
  background: var(--white, #fff);
  color: var(--ink, #101820);
  font-family: Inter, sans-serif;
  font-size: 16px;
}

.checkout-field input::placeholder { color: var(--muted, #526170); }
.checkout-field input:focus {
  border-color: var(--blue, #265cff);
  outline: 2px solid var(--blue, #265cff);
  outline-offset: 3px;
  box-shadow: none;
}

.checkout-page :is(a, button, summary, textarea):focus-visible,
.checkout-empty a:focus-visible,
.consent-banner :is(a, button):focus-visible,
.privacy-settings:focus-visible {
  outline: 2px solid var(--blue, #265cff);
  outline-offset: 3px;
}

.checkout-fields-group:disabled input {
  background: var(--light, #f4f7fb);
  color: var(--muted, #526170);
}

.checkout-method {
  background: var(--white, #fff);
  border-color: var(--line, #e3e8ef);
  border-radius: var(--radius-field, 16px);
}

.checkout-thumb {
  background: var(--white, #fff);
  border-radius: var(--radius-field, 16px);
}

.checkout-page .button,
.checkout-empty .button,
.consent-actions button {
  min-height: 48px;
  border-radius: var(--radius-pill, 999px);
  font-family: Inter, sans-serif;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.checkout-page .button-dark,
.checkout-empty .button-dark,
.consent-actions button:first-child {
  background: var(--blue, #265cff);
  border-color: var(--blue, #265cff);
  color: var(--white, #fff);
}

.checkout-page .button-dark:hover:not(:disabled),
.checkout-empty .button-dark:hover,
.consent-actions button:first-child:hover {
  background: var(--blue-hover, #1749db);
  border-color: var(--blue-hover, #1749db);
  color: var(--white, #fff);
}

.checkout-page .text-link,
.checkout-items > summary,
.pix-code-details summary { min-height: 48px; }
.checkout-submit { min-height: 54px; }
.checkout-total dd,
.pix-amount { color: var(--ink, #101820); font-weight: 600; }
.pix-only-note { background: transparent; border-color: var(--blue, #265cff); }
.pix-qr {
  box-sizing: border-box;
  background: #fff;
  border-color: var(--line, #e3e8ef);
  border-radius: var(--radius-field, 16px);
}
.pix-qr img { height: auto; }
.pix-result-mark:has(.pix-method-logo) { background: transparent; }
.checkout-recovery {
  background: var(--light, #f4f7fb);
  border-color: var(--blue, #265cff);
  border-radius: var(--radius-field, 16px);
  color: var(--muted, #526170);
}

/* Keep validation and payment status semantic, including result paragraphs. */
.checkout-field input[aria-invalid="true"] { border-color: #b42318; }
.checkout-field-error,
.checkout-error,
.pix-result > .checkout-error { color: #b42318; }
.consent-actions { flex-wrap: wrap; }
.consent-actions button {
  background: var(--white, #fff);
  border-color: var(--line, #e3e8ef);
  color: var(--ink, #101820);
}
.consent-actions button:not(:first-child):hover { background: var(--light, #f4f7fb); }

/* Compact order editing, with full-size touch controls. */
.checkout-cart-item { grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; padding: 16px 0; }
.checkout-cart-item .checkout-thumb { grid-column: 1; grid-row: 1; width: 52px; height: 60px; }
.checkout-cart-description { grid-column: 2; min-width: 0; }
.checkout-cart-description h3 { font-family: Sora, sans-serif; overflow-wrap: anywhere; }
.checkout-cart-price { display: block; margin-top: 6px; font-size: 14px; }
.checkout-cart-controls { grid-column: 1 / -1; display: flex; align-items: end; gap: 8px; flex-wrap: wrap; min-width: 0; }
.checkout-cart-size { display: grid; gap: 4px; min-width: 64px; max-width: 100%; flex: 1 1 64px; font-size: 11px; }
.checkout-cart-size select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 8px; font: 16px Inter, sans-serif; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; color: var(--ink, #101820); background: #fff; }
.checkout-cart-controls button { box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 8px; font: 14px Inter, sans-serif; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; color: var(--blue, #265cff); background: #fff; cursor: pointer; }
.checkout-cart-quantity { display: flex; align-items: center; flex: 0 0 auto; }
.checkout-cart-quantity > span { min-width: 24px; text-align: center; font-size: 13px; }
.checkout-cart-controls [data-checkout-action="remove"] { font-size: 11px; padding-inline: 6px; border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.checkout-cart-controls :disabled { opacity: .5; cursor: not-allowed; }
.checkout-page :is(select, input):focus-visible { outline: 2px solid var(--blue, #265cff); outline-offset: 3px; }
.checkout-gift { padding: 14px 0; border-bottom: 1px solid var(--line, #e3e8ef); }
.checkout-gift label { display: flex; align-items: center; min-height: 44px; gap: 10px; cursor: pointer; font-size: 13px; }
.checkout-gift input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--blue, #265cff); }
.checkout-gift label > span { min-width: 0; }
.checkout-gift strong { display: inline-block; margin-left: 4px; color: var(--blue, #265cff); font-size: 11px; }
.checkout-gift p { margin: 0 0 0 30px; color: var(--muted, #526170); font-size: 11px; line-height: 1.5; }
.checkout-gift:has(input:disabled) label { opacity: .6; cursor: not-allowed; }

@media (max-width: 380px) {
  .checkout-section-title { flex-wrap: wrap; }
  .checkout-section-title h2 { max-width: 100%; }
  .checkout-method { flex-wrap: wrap; }
  .checkout-method > div { flex: 1 1 100px; }
  .checkout-page .button { padding-inline: 16px; }
  .checkout-totals > div { gap: 12px; flex-wrap: wrap; }
  .checkout-breadcrumb { flex-wrap: wrap; }
}
.checkout-summary > .checkout-section-title { flex-wrap: wrap; }
.checkout-summary > .checkout-section-title > a { margin-left: auto; }
.checkout-delivery { min-width: 0; padding: 0; margin: 20px 0 0; border: 0; }
.checkout-delivery legend { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.checkout-delivery label { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line, #e3e8ef); border-radius: 16px; cursor: pointer; }
.checkout-delivery label:has(input:checked) { border-color: var(--blue, #265cff); background: #edf2ff; }
.checkout-delivery input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--blue, #265cff); }
.checkout-delivery label > span { display: grid; gap: 4px; min-width: 0; }
.checkout-delivery strong, .checkout-delivery b { font-size: 13px; }
.checkout-delivery small { color: var(--muted, #526170); font-size: 12px; }
.checkout-delivery b { margin-left: auto; white-space: nowrap; }
.checkout-delivery:disabled label { cursor: default; }
.checkout-delivery input:focus-visible { outline: 2px solid var(--blue, #265cff); outline-offset: 4px; }
.checkout-cart-locked { color: var(--muted, #526170); font-size: 12px; line-height: 1.5; margin: 14px 0 0; }

/* One visible checkout stage, with a compact progress indicator on mobile. */
.checkout-panel [hidden] { display: none !important; }
.checkout-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; }
.checkout-progress li { display: grid; justify-items: center; gap: 8px; min-width: 0; color: var(--muted, #526170); font-size: 11px; text-align: center; }
.checkout-progress li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line, #e3e8ef); border-radius: 50%; background: #fff; font-weight: 600; }
.checkout-progress .is-current { color: var(--blue, #265cff); font-weight: 600; }
.checkout-progress .is-current > span { color: #fff; background: var(--blue, #265cff); border-color: var(--blue, #265cff); }
.checkout-progress .is-complete > span { color: var(--blue, #265cff); background: #edf2ff; border-color: #c8d5ff; }
.checkout-step-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.checkout-step-actions .button { flex: 1 1 200px; justify-content: center; min-height: 54px; }
.checkout-step-actions .checkout-back { min-height: 48px; padding: 8px 4px; flex: 0 0 auto; }
.checkout-address-review { padding: 16px; border-radius: var(--radius-field, 16px); background: var(--light, #f4f7fb); color: var(--muted, #526170); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.checkout-fields-group h2:focus { outline: none; }
