/* ---------- Drawer (sacola e checkout) ---------- */
.m-drawer { display: none; position: fixed; z-index: 51; inset: 0; background: var(--surface); flex-direction: column; }
.m-drawer.active { display: flex; }
@media (min-width: 768px) { .m-drawer { left: auto; width: 460px; box-shadow: -12px 0 40px rgba(0,0,0,.14); border-radius: 24px 0 0 24px; } }
.m-drawer-h { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.m-drawer-h small { display: block; font-size: 12px; color: var(--txt2); }
.m-drawer-h b { font-size: 16px; color: var(--ink-strong); font-weight: 700; letter-spacing: -.01em; }
.m-drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px 28px; }
.m-cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.m-cart-item img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; }
.m-cart-item .info { flex: 1; min-width: 0; }
.m-cart-item .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-strong); }
.m-cart-item .acts { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.m-sub { color: var(--txt2); font-size: 13px; margin-top: 3px; }
.m-h { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-strong); margin: 26px 0 12px; }
.m-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--txt2); margin: 8px 0; }
.m-line.total { font-weight: 700; font-size: 17px; color: var(--ink-strong); padding-top: 10px; border-top: 1px dashed var(--line2); }
.m-line .free { color: var(--ok); font-weight: 600; }
.m-field { margin-bottom: 14px; }
.m-field label { font-weight: 600; font-size: 13px; color: var(--ink-strong); margin: 0 0 6px; }
.m-field input, .m-field textarea { border-radius: 12px; padding: 12px 14px; font-family: inherit; border-color: var(--line); color: var(--ink-strong); }
.m-field input:focus, .m-field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
/* Campo com erro (marcado ao tentar enviar) */
.m-field [aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 4px rgb(220 38 38 / 12%); }
.m-field input::placeholder, .m-field textarea::placeholder { color: var(--txt2); opacity: .7; }
.m-seg { display: flex; background: var(--soft-2); border-radius: 12px; padding: 4px; gap: 4px; }
.m-seg button { flex: 1; border: none; background: none; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--txt2); cursor: pointer; }
.m-seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.m-paygroup { font-size: 12px; font-weight: 700; color: var(--txt2); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.m-paylist { display: grid; gap: 8px; }
.m-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin: 0; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--ink-strong); transition: border-color .12s, background .12s; }
.m-pay:hover { border-color: var(--line2); }
.m-pay input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.m-pay:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.m-pay:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.m-pay-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--soft-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.m-pay:has(input:checked) .m-pay-ic { background: var(--surface); color: var(--brand); }
.m-pay-txt { display: flex; flex-direction: column; line-height: 1.25; }
.m-pay-txt b { font-weight: 600; }
.m-pay-txt small { color: var(--txt2); font-size: 12px; }
.m-segopt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 9px; font-size: 14px !important; font-weight: 500 !important; color: var(--txt2) !important; cursor: pointer; margin: 0 !important; }
.m-segopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-segopt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
.m-segopt:has(input:checked) { background: var(--surface); color: var(--brand) !important; font-weight: 700 !important; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.m-paychips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.m-paychips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.m-paychips svg { width: 18px; height: 18px; color: var(--brand); }
.m-note { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.m-drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.m-success { text-align: center; padding: 44px 8px; }
.m-success .big { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 34px; font-weight: 700; }
.m-success .big.muted { background: var(--soft-2); color: var(--txt2); }
.m-success h2 { color: var(--ink-strong); font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.m-success .m-btn { margin-top: 16px; }
.m-success .m-btn.ghost { margin-top: 10px; }
