
.checkout-header { min-height: 76px; padding: 13px max(5vw, 20px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.checkout-main { width: min(100% - 40px, 1080px); margin: clamp(28px, 5vw, 60px) auto 56px; }
.checkout-main h1 { margin: 0 0 28px; font: 400 clamp(3rem, 7vw, 4.8rem)/.92 var(--serif); letter-spacing: -.025em; }
.checkout-card { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); background: #fffdfa; border-radius: 4px; }
.checkout-card h2 { margin: 0 0 16px; font: 400 2rem/1.1 var(--serif); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.checkout-steps { display: grid; gap: 16px; }
.checkout-summary { position: sticky; top: 18px; }
.checkout-summary ul { padding: 0; margin: 0 0 16px; list-style: none; }
.checkout-summary li, .checkout-totals div { display: flex; justify-content: space-between; gap: 14px; }
.checkout-summary li { padding: 7px 0; font-size: .9rem; }
.checkout-summary li strong { white-space: nowrap; }
.checkout-totals { margin: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.checkout-totals div { padding: 6px 0; }
.checkout-totals dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.checkout-summary .checkout-totals div:last-child, .receipt-total { font-weight: 750; }
.checkout-main label { display: grid; gap: 4px; font-size: .875rem; font-weight: 650; align-content: start; }
.checkout-main input:not([type="radio"]):not([type="checkbox"]), .checkout-main select { width: 100%; border: 1px solid #bdacb2; border-radius: 3px; padding: 8px 10px; background: #fffdfa; color: var(--ink); min-height: 46px; font: inherit; font-size: 1rem; }
.checkout-main small, .checkout-hint { color: var(--muted); font-weight: 400; }
.cep-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.checkout-options { padding: 0; margin: 22px 0 0; border: 0; }
.checkout-options legend { margin-bottom: 6px; font-weight: 700; }
.checkout-options label { grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); margin-bottom: 6px; padding: 10px; border-radius: 3px; }
.checkout-options label:has(:checked) { border-color: var(--berry); background: #f9eff2; }
.checkout-options input { accent-color: var(--berry); }
.checkout-options small { display: block; }
.address-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; }
.checkout-wide { grid-column: 1 / -1; }
.checkout-hint, .checkout-status { margin: 0; }
.cep-form + .checkout-hint, .profile-address .checkout-hint { margin-top: 8px; }
#checkout-cep-status:not(:empty) { margin-bottom: 12px; }
.checkout-status:not(:empty) { margin: 8px 0 0; color: var(--berry); }
.checkout-link { text-decoration: underline; text-underline-offset: 3px; }
.checkout-help { margin-top: 26px; }
.access-form { display: grid; gap: 12px; }
.access-form p { margin: 0; }
.access-form > .button { justify-self: start; }
.access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; overflow-wrap: anywhere; }
.access-actions .button { min-height: 42px; }
[data-access-status]:not(:empty) { margin-block: 0 14px; }
.google-sign-in {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid #747775; border-radius: 24px; background: #fff; color: #1f1f1f;
  font: 500 .875rem/1.25rem Roboto, Arial, sans-serif; cursor: pointer;
}
.google-sign-in:hover { background: #f8fafd; }
.google-sign-in:focus-visible { outline: 2px solid #0b57d0; outline-offset: 3px; }
.google-sign-in:disabled { cursor: wait; opacity: .65; }
.google-sign-in img { flex: 0 0 18px; display: block; object-fit: contain; }
.access-divider {
  display: flex; align-items: center; gap: 12px;
  margin-block: 18px; color: var(--muted); font-size: .875rem;
}
.access-divider::before, .access-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.profile-form { display: grid; gap: 16px; }
.profile-form > .button { justify-self: start; }
.profile-form input[readonly] { background: var(--paper); }
.profile-address { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.profile-address legend { padding-inline: 4px; font-weight: 600; }
.profile-address legend small { color: var(--muted); font-weight: normal; }
.profile-address > .button { margin-top: 12px; }
#my-profile-status:not(:empty) { margin-top: 12px; }
#my-profile-status[data-state="success"] { color: #27614c; }
#reload-profile { margin-top: 10px; }
.account-wishlist { margin: 0; padding: 0; list-style: none; }
.account-wishlist { margin-bottom: 14px; }
.account-wishlist li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.account-wishlist li > a { display: flex; flex: 1 1 210px; align-items: center; gap: 12px; color: inherit; }
.account-wishlist img { flex: 0 0 auto; width: 56px; height: 68px; object-fit: cover; border-radius: 5px; }
.account-wishlist small { display: block; color: var(--muted); margin-top: 3px; }
.account-wishlist button { min-height: 40px; }
#my-wishlist-status:not(:empty) { margin-bottom: 10px; }
.checkout-main .merchant-details { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; }
.checkout-terms { margin-block: 5px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); }
.checkout-terms h3 { margin: 0; font-size: 1rem; }
.checkout-terms p { margin: 8px 0; font-size: .9375rem; }
.checkout-terms label { grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-height: 40px; }
.checkout-terms input { margin: 0; width: 18px; height: 18px; accent-color: var(--berry); }
.receipt-items { list-style: none; margin: 0 0 10px; padding: 0; }
.receipt-items li { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.receipt-items strong { white-space: nowrap; }
.withdrawal { margin-block: 16px 6px; }
.withdrawal summary { cursor: pointer; color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
.withdrawal p { margin-bottom: 0; }
#withdrawal-status { overflow-wrap: anywhere; }
.receipt { max-width: 560px; }
.receipt .button { margin-top: 14px; }
.inline-payment { margin-top: 16px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inline-payment h3 { margin: 0 0 8px; font: 400 1.85rem/1 var(--serif); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-methods .button { margin-top: 0; }
.payment-methods [aria-pressed="true"] { border-color: var(--berry); background: #f5e8ee; }
.payment-instructions { margin-top: 10px; }
.payment-instructions p { margin: 8px 0; color: var(--muted); }
.payment-sandbox { margin: 6px 0 10px; font-size: .9rem; color: var(--berry); }
#payment-pix-qr { margin: 8px auto 12px; object-fit: contain; }
#payment-challenge-frame { display: block; width: 100%; min-height: 420px; border: 1px solid var(--line); }
#payment-card-fields { min-width: 0; }
#order-number { margin: 0 0 6px; color: var(--muted); }
@media (max-width: 680px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; grid-row: 1; }
  .checkout-summary h2 { margin-bottom: 7px; }
  .checkout-summary ul:empty { display: none; }
}
@media (max-width: 380px) {
  .checkout-main { width: calc(100% - 28px); }
  .checkout-main .button { padding-inline: 12px; }
}

.checkout-card-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout-card-form legend { margin-bottom: 10px; font-size: .93rem; font-weight: 750; }
.checkout-card-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-card-control { display: grid; gap: 5px; min-width: 0; font-size: .875rem; font-weight: 650; }
.checkout-card-control:first-child { grid-column: 1 / -1; }
.checkout-secure-field { min-height: 44px; padding: 0 10px; border: 1px solid #bdacb2; border-radius: 4px; background: #fffdfa; }
.checkout-secure-field iframe { display: block; width: 100%; height: 44px; border: 0; }
.checkout-secure-field:focus-within { outline: 2px solid var(--berry); outline-offset: 2px; }
.checkout-card-form .button { margin-top: 14px; }
@media (max-width: 480px) {
  .checkout-card-inputs label:has(input[name="holder"], input[name="email"]) { grid-column: 1 / -1; }
}

.checkout-reminder { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.checkout-reminder input { flex: 0 0 auto; }
