:root {
  font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  color: #161823;
  background: #e4e4e6;
  --pink: #fe2c55;
  --red: #ce1540;
  --pale: #fff2f5;
  --muted: #62636d;
  --line: #e9e9ec;
  --width: 440px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
a { color: var(--red); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.checkout { min-height: 100dvh; max-width: var(--width); margin-inline: auto; padding-bottom: calc(122px + env(safe-area-inset-bottom)); background: white; box-shadow: 0 0 32px #16182310; font-size: 14px; }
.top { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 44px; border-bottom: 1px solid #f3f3f3; background: white; text-align: center; }
.top h1 { font-size: 16px; font-weight: 800; }
.top a { display: grid; min-height: 44px; place-items: center; color: inherit; text-decoration: none; }
.back { font-size: 28px; line-height: 1; }
.store img { display: block; border-radius: 5px; object-fit: contain; }
.block { padding: 14px 16px; border-bottom: 7px solid #f5f5f5; }
.block h2 { margin-bottom: 5px; font-size: 15px; font-weight: 760; }
.delivery-address { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; width: 100%; min-height: 55px; padding: 12px 16px 15px; border: 0; background: white; text-align: left; }
.delivery-address::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: repeating-linear-gradient(110deg, #30d6d1 0 24px, white 24px 31px, var(--pink) 31px 55px, white 55px 62px); content: ""; }
.address-title { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.address-action { color: var(--red); font-size: 13px; font-weight: 690; }
.address-preview { grid-column: 1 / -1; padding-left: 22px; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.pin { position: relative; width: 12px; height: 12px; flex: none; border: 1.8px solid; border-radius: 60% 60% 60% 0; transform: rotate(-45deg); }
.pin::after { position: absolute; inset: 2.5px; border: 1px solid; border-radius: 50%; content: ""; }

.store-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.store-heading h2 { flex: none; }
.note { min-width: 0; margin-left: auto; text-align: right; font-size: 12px; }
.note summary { color: var(--muted); list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note input { width: 100%; max-width: 235px; margin-top: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 4px; }
.items { display: grid; gap: 9px; margin: 8px 0 13px; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 79px minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; gap: 3px 10px; }
.item img { grid-row: 1 / 3; display: block; width: 79px; height: 79px; border-radius: 7px; object-fit: cover; background: #f5f5f5; }
.item-heading { grid-column: 2 / 4; min-width: 0; }
.item-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.25; }
.item-variant { color: var(--muted); font-size: 12px; }
.item-info { align-self: end; display: grid; gap: 3px; }
.item-tag { justify-self: start; padding: 2px 4px; border-radius: 3px; background: var(--pale); color: var(--red); font-size: 10px; font-weight: 760; }
.item-price { color: var(--red); font-size: 17px; font-weight: 800; white-space: nowrap; }
.stepper { display: inline-flex; align-self: end; align-items: center; overflow: hidden; border-radius: 4px; background: #f1f1f2; font-size: 12px; }
.stepper button, .stepper output { display: inline-grid; min-width: 27px; min-height: 26px; place-items: center; padding: 0; border: 0; background: none; color: inherit; }
.stepper output { background: #f7f7f8; }

.shipping { min-width: 0; padding: 0; margin: 0; border: 0; }
.shipping legend { margin-bottom: 7px; padding: 0; font-weight: 760; }
.choices, [data-shipping] { display: grid; gap: 6px; }
.choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 1px solid #dedee3; border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--pink); background: #fff7f9; }
.choice:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.choice input { margin: 0; width: 17px; height: 17px; accent-color: var(--red); }
.choice p { margin-top: 2px; }
.choice-name { display: block; line-height: 1.22; font-size: 14px; font-weight: 760; }
.choice-price { font-size: 13px; font-weight: 800; white-space: nowrap; }
.complement { grid-template-columns: 62px minmax(0, 1fr) auto; }
.complement img { display: block; width: 62px; height: 62px; border-radius: 5px; object-fit: contain; }
.complement .choice-price { display: block; margin-top: 4px; color: var(--red); }
.muted { color: var(--muted); font-size: 12px; line-height: 1.4; }
[data-complement-block] > .muted { margin-bottom: 9px; }

.breakdown p { display: flex; justify-content: space-between; gap: 9px; padding: 6px 0; font-size: 13px; }
.breakdown .breakdown-total { margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 16px; }
.pix-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 52px; }
.pix-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 6px; color: #007963; background: #dff8f2; font-size: 27px; font-weight: 800; }
.radio-mark { width: 15px; height: 15px; border: 5px solid var(--red); border-radius: 50%; }

.bottom { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; width: min(100%, var(--width)); margin-inline: auto; padding: 0 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f0f0; background: white; }
.benefit { margin: 0 -16px; padding: 6px 16px; color: var(--red); background: var(--pale); font-size: 12px; font-weight: 650; }
.bottom-total { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 9px; }
.bottom-total strong:last-child { color: var(--red); font-size: 18px; }
.primary, .secondary { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 28px; font-weight: 800; }
.primary { border: 2px solid #df1640; background: #df1640; color: white; }
.primary:hover { background: #c91238; }
.secondary { border: 1px solid var(--line); background: white; color: var(--red); }

.address-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.address-form legend { display: block; width: 100%; padding: 13px 16px; color: var(--muted); background: #f5f5f5; font-size: 13px; }
.address-form label { display: flex; min-width: 0; align-items: center; border-bottom: 1px solid var(--line); }
.address-form input, .address-form select { min-width: 0; width: 100%; min-height: 51px; padding: 10px 16px; border: 0; border-radius: 0; background: white; color: inherit; }
.address-form input:focus-visible, .address-form select:focus-visible { outline-offset: -2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; }
.form-row > label + label { border-left: 1px solid var(--line); }
.phone-field > span:first-child { flex: none; padding-left: 16px; }
.form-note { padding: 9px 16px; color: var(--muted); font-size: 12px; }
.postal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); }
.postal-row label { border-bottom: 0; }
.postal-row button { margin-right: 12px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--red); font-size: 12px; font-weight: 750; }
.address-form [aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: -2px; }
.feedback { scroll-margin-top: 52px; }
.address-bottom { padding-top: 8px; }

.payment { display: grid; justify-items: center; gap: 10px; text-align: center; }
.payment h2 { margin: 3px 0; font-size: 20px; }
.payment-amount { color: var(--red); font-size: 23px; font-weight: 800; }
.payment [data-pix] { display: grid; width: 100%; gap: 9px; }
.payment img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.payment textarea { display: block; width: 100%; margin-top: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.feedback { padding: 10px 16px; color: #83142f; background: var(--pale); font-size: 13px; }
