/* Pedido */
.cart h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; padding-right: 56px; }
.field { margin: 16px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg { position: relative; height: 10px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.seg::after { content: ""; position: absolute; inset: 0; background: var(--flag); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
.seg.on::after { transform: scaleX(1); }
.seg-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field-msg { min-height: 22px; font-size: 14px; font-weight: 600; margin: 8px 0 12px; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 8px; box-shadow: var(--sh-1); }
.row img { width: 56px; height: 75px; object-fit: cover; border-radius: 8px; }
.row .t { font-weight: 700; line-height: 1.2; }
.row .s { color: var(--muted); font-size: 13px; line-height: 1.3; }
.row .p { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.row .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.row .ctl button { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: var(--chip); font-weight: 700; display: grid; place-items: center; }
.row .ctl button:active { scale: 0.95; }
.row .ctl .q { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.row .ctl .rm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-weight: 600; font-size: 14px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.row .ctl .rm svg { width: 16px; height: 16px; flex: none; }
.btn[data-clear] { background: transparent; border: 1px solid var(--line); min-height: 44px; }
.plink { border: 0; background: none; padding: 12px 0; min-height: 44px; margin: -12.25px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.sum { margin: 16px 0; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum .off { font-weight: 600; }
.sum .tot { font-size: 22px; font-weight: 700; padding-top: 8px; box-shadow: inset 0 1px 0 var(--outline); }
.lbl { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 6px; }
.fld { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1); font-size: 16px; }
.pay { display: grid; gap: 10px; margin-top: 14px; }
.fld[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--bad); }
.err { color: var(--bad); font-size: 13px; font-weight: 600; margin-top: 6px; }
.err[hidden] { display: none; }
.pstep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 4px; padding: 0; list-style: none; }
.pstep:focus { outline: none; }
.pstep li { padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: inset 0 3px 0 var(--line); }
.pstep li.done, .pstep li.cur { color: var(--ink); box-shadow: inset 0 3px 0 var(--btn); }
.sh { font-size: 18px; font-weight: 700; margin: 18px 0 4px; }
.sh:focus { outline: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.form .f { grid-column: 1 / -1; }
.form .f.half { grid-column: auto; }
.nav { display: grid; gap: 10px; margin-top: 16px; }
.recap { margin-top: 14px; background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--sh-1); display: grid; gap: 4px; }
.recap .rh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recap p { overflow-wrap: anywhere; }
.link { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: underline; }
.panel { margin-top: 12px; background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--sh-1); display: grid; gap: 10px; }
.panel[hidden] { display: none; }
.panel h3 { font-size: 16px; font-weight: 700; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv .k { color: var(--muted); font-size: 14px; }
.kv .v { font-weight: 700; word-break: break-all; text-align: right; font-variant-numeric: tabular-nums; }
.copy { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--chip); font-weight: 600; font-size: 14px; flex: none; }
.copy:active { scale: 0.97; }
.hint { color: var(--muted); font-size: 14px; text-wrap: pretty; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; text-wrap: pretty; }
.note strong { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; z-index: 200; transition-property: opacity, transform; transition-duration: 180ms; transition-timing-function: var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
