body.smartphone5-mode .s5-label-list { display:block; }
body.smartphone5-mode .s5-label-card { padding:4px 0; border-bottom:1px solid var(--line); }
body.smartphone5-mode .s5-label-columns,
body.smartphone5-mode .s5-label-line { display:grid; grid-template-columns:minmax(0,1fr) 36px 58px 42px 32px 32px; gap:3px; align-items:center; }
body.smartphone5-mode .s5-label-columns { margin-top:8px; color:var(--muted); font-size:10px; }
body.smartphone5-mode .s5-label-columns>:not(:first-child) { text-align:center; }
body.smartphone5-mode .s5-label-line { min-height:48px; }
body.smartphone5-mode .s5-product { display:flex; align-items:center; gap:2px; min-width:0; line-height:1.3; }
body.smartphone5-mode .s5-product-text { flex:1; min-width:0; }
body.smartphone5-mode .s5-product strong { display:block; font-size:13px; overflow-wrap:anywhere; }
body.smartphone5-mode .s5-product small { display:block; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
body.smartphone5-mode .s5-code { font-size:12px; text-align:center; word-break:normal; overflow-wrap:normal; font-variant-numeric:tabular-nums; }
body.smartphone5-mode #smartphone2-root .s5-label-line input { width:100%; min-width:0; min-height:48px; margin:0; padding:5px 3px; font-size:16px; text-align:right; }
body.smartphone5-mode #smartphone2-root .s5-label-card button { min-width:0; min-height:48px; width:32px; margin:0; padding:0; font-size:20px; line-height:1; border:1px solid var(--line); border-radius:6px; touch-action:manipulation; }
body.smartphone5-mode #smartphone2-root .s5-add { background:#e4f3ec; color:#075b43; }
body.smartphone5-mode #smartphone2-root .s5-remove { background:#f5f6f7; color:var(--muted); }
body.smartphone5-mode .s5-extra-price { font-size:11px; color:var(--muted); padding-left:4px; }
body.smartphone5-mode .s5-empty-line { display:flex; align-items:center; gap:8px; min-height:48px; font-size:12px; }
body.smartphone5-mode .s5-empty-line .s5-product { flex:1; }
body.smartphone5-mode .s5-return-title { margin:14px 0 0; font-size:14px; }
body.smartphone5-mode .s5-hint { margin:4px 0 8px; font-size:11px; color:var(--muted); }
body.smartphone5-mode #smartphone2-root .s5-label-card .s5-add-weight { display:grid; place-items:center; flex:0 0 28px; width:28px; min-height:44px; margin:0; padding:0; color:#075b43; background:#edf7f2; border:0; }
body.smartphone5-mode .s5-add-weight svg { pointer-events:none; }
body.smartphone5-mode .s5-weight-line { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr) 32px; align-items:end; gap:5px; margin-top:6px; padding:6px; background:#edf7f2; border-radius:6px; }
body.smartphone5-mode #smartphone2-root .s5-weight-line label { margin:0; min-width:0; font-size:11px; }
body.smartphone5-mode #smartphone2-root .s5-weight-line input { width:100%; min-width:0; min-height:48px; margin:3px 0 0; padding:5px; font-size:16px; text-align:right; }
@media(max-width:350px){
 body.smartphone5-mode .s5-label-columns,
 body.smartphone5-mode .s5-label-line { grid-template-columns:minmax(0,1fr) 36px 49px 35px 24px 24px; gap:2px; }
 body.smartphone5-mode #smartphone2-root .s5-label-card button { width:24px; }
}

/* Compact returns and undo controls are scoped to smartphone 5. */
body.smartphone5-mode .s3-menu { gap:5px; margin:12px 0; }
body.smartphone5-mode .s3-menu button { min-height:44px; font-size:16px; padding:7px 10px; }
body.smartphone5-mode .s5-section-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:0 0 4px; }
body.smartphone5-mode .s5-section-heading h2 { margin:0; font-size:20px; }
body.smartphone5-mode #smartphone2-root .s5-undo { flex:none; width:auto; min-height:44px; padding:5px 8px; margin:0; font-size:12px; white-space:nowrap; }
body.smartphone5-mode .s5-undo:disabled { opacity:.45; }
body.smartphone5-mode .s5-returns .s2-list { padding:0 8px; }
body.smartphone5-mode .s5-returns .s2-ages { gap:4px; margin:6px 0; }
body.smartphone5-mode #smartphone2-root .s5-returns .s2-ages button { min-height:44px; padding:4px; font-size:14px; }
body.smartphone5-mode .s5-returns .s2-ages small { margin:0; font-size:10px; }
body.smartphone5-mode #smartphone2-root .s5-returns .s2-all { min-height:44px; padding:7px 6px; margin:6px 0; font-size:14px; }
body.smartphone5-mode .s5-return-help { font-size:12px; margin:0; }
body.smartphone5-mode .s5-return-help summary { min-height:32px; padding:6px 0; cursor:pointer; }
body.smartphone5-mode .s5-return-help p { margin:2px 0 6px; }
body.smartphone5-mode .s5-return-row { position:relative; margin:0; padding:8px 0; }
body.smartphone5-mode .s5-return-heading { display:flex; align-items:center; flex-wrap:wrap; gap:3px 6px; }
body.smartphone5-mode .s5-return-heading h3 { margin:0; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
body.smartphone5-mode .s5-return-heading .s3-saved { font-size:10px; padding:2px 4px; }
body.smartphone5-mode .s5-return-meta { margin:2px 0 4px; font-size:11px; color:var(--muted); }
body.smartphone5-mode .s5-return-saved { display:grid; grid-template-columns:minmax(0,1fr) 44px; column-gap:4px; }
body.smartphone5-mode .s5-return-saved .s5-return-heading,
body.smartphone5-mode .s5-return-saved .s5-return-meta { grid-column:1; }
body.smartphone5-mode #smartphone2-root .s5-correct { grid-column:2; grid-row:1 / span 2; align-self:center; min-height:44px; width:44px; margin:0; padding:0; font-size:12px; }
body.smartphone5-mode .s5-return-notes { grid-column:1 / -1; margin:2px 0 0; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
body.smartphone5-mode .s5-return-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:5px 0; }
body.smartphone5-mode #smartphone2-root .s5-return-row label { min-width:0; margin:0; font-size:11px; }
body.smartphone5-mode #smartphone2-root .s5-return-row input[type=text] { width:100%; min-width:0; min-height:44px; margin:2px 0 0; padding:5px; font-size:16px; text-align:right; }
body.smartphone5-mode .s5-return-row .w-markdown-details,
body.smartphone5-mode .s5-return-row .w-back-details { margin-top:3px; padding-top:0; }
body.smartphone5-mode .s5-return-row summary { min-height:36px; padding:7px 0; font-size:12px; }
body.smartphone5-mode #smartphone2-root .s5-return-row .w-tier { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px; gap:5px; margin:4px 0; padding:0; }
body.smartphone5-mode #smartphone2-root .s5-return-row .w-tier button { grid-column:auto; min-height:44px; padding:2px; margin:0; font-size:11px; align-self:end; }
body.smartphone5-mode #smartphone2-root .s5-return-row [data-w-add] { min-height:44px; margin:3px 0; padding:5px 8px; font-size:12px; }
body.smartphone5-mode .s5-return-row .w-price-reasons { margin:5px 0; padding:5px; }
body.smartphone5-mode .s5-return-row .w-price-reasons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 5px; min-width:0; }
body.smartphone5-mode .s5-return-required { color:#9c2f16; font-size:12px; margin:3px 0; }

.s5-label-date{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 0}.s5-label-date>span{text-align:center;font-size:14px;font-weight:700}.s5-label-date small{display:block;font-size:11px;font-weight:400;color:#52656e}.s5-label-date button{width:auto;min-height:40px;padding:6px 10px;font-size:13px;white-space:nowrap}
