/* Mobile service pages share the approved storefront's surfaces and accent.
   This file is loaded last, and is deliberately scoped away from the PC site. */
body[data-app="mall-mobile"] {
  --msv-bg: #f5f6f8;
  --msv-ink: #202631;
  --msv-muted: #7b8190;
  --msv-line: #eef0f3;
  --msv-accent: var(--mo-accent, var(--store-accent, #f45136));
  --msv-soft: color-mix(in srgb, var(--msv-accent) 7%, #fff);
}
body[data-app="mall-mobile"] :is(.member-benefits-dialog,.member-invoices-dialog,.mf-recharge-dialog,.checkout-dialog,#orderDetailDialog) {
  box-sizing: border-box; inset: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--msv-bg); color: var(--msv-ink); box-shadow: none; transform: none;
}
body[data-app="mall-mobile"] :is(.member-benefits-dialog,.member-invoices-dialog,.mf-recharge-dialog,.checkout-dialog,#orderDetailDialog) * { box-sizing: border-box; letter-spacing: 0; }
body[data-app="mall-mobile"] :is(.member-benefits-dialog,.member-invoices-dialog,.mf-recharge-dialog,.checkout-dialog,#orderDetailDialog) [hidden] { display: none !important; }
body[data-app="mall-mobile"] :is(.benefit-back,.mi-close) { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--msv-ink); border-radius: 50%; }
body[data-app="mall-mobile"] :is(.benefit-back,.mi-close) svg { width: 21px; height: 21px; }
body[data-app="mall-mobile"] :is(.member-benefits-dialog>header,.member-invoices-dialog>.mi-heading) {
  display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 0;
  position: sticky; top: 0; z-index: 4; min-height: 56px; padding: env(safe-area-inset-top) 8px 0;
  border: 0; border-bottom: 1px solid var(--msv-line); background: #fff;
}
body[data-app="mall-mobile"] :is(.member-benefits-dialog>header,.mi-heading) h2 { margin: 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--msv-ink); }
body[data-app="mall-mobile"] :is(.benefit-primary,.mi-primary,.ap-primary) { background: var(--msv-accent); border-color: var(--msv-accent); color: #fff; box-shadow: none; }
body[data-app="mall-mobile"] :is(.member-benefits-dialog,.member-invoices-dialog,.agent-prices) button { min-height: 44px; }
body[data-app="mall-mobile"] :is(.member-benefits-dialog,.member-invoices-dialog,.agent-prices,.msv-settings) :focus-visible { outline: 2px solid var(--msv-accent); outline-offset: 3px; }

/* Points and coupons: one current section, with history still reachable. */
body[data-app="mall-mobile"] .member-benefits-content { padding: 14px 12px max(24px,env(safe-area-inset-bottom)); }
body[data-app="mall-mobile"] .benefit-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 16px; border-radius: 12px; background: #fff; }
body[data-app="mall-mobile"] .benefit-balance>div { display: grid; gap: 7px; text-align: center; }
body[data-app="mall-mobile"] .benefit-balance>div+div { border-left: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] .benefit-balance span { color: var(--msv-muted); font-size: 12px; }
body[data-app="mall-mobile"] .benefit-balance strong { font-size: 29px; line-height: 1.3; color: var(--msv-accent); font-variant-numeric: tabular-nums; }
body[data-app="mall-mobile"] .benefit-note { margin: 10px 3px; font-size: 12px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .benefit-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border-bottom: 1px solid #e5e8ee; }
body[data-app="mall-mobile"] .benefit-tabs button { position: relative; min-width: 0; padding: 12px 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; color: #737b88; }
body[data-app="mall-mobile"] .benefit-tabs button[aria-pressed="true"] { color: var(--msv-accent); font-weight: 600; }
body[data-app="mall-mobile"] .benefit-tabs button[aria-pressed="true"]::after { position: absolute; content: ""; width: 24px; height: 3px; left: calc(50% - 12px); bottom: -1px; border-radius: 2px; background: var(--msv-accent); }
body[data-app="mall-mobile"] .member-benefits-content .benefit-panel { margin-top: 12px; }
body[data-app="mall-mobile"] .benefit-filters { display: flex; gap: 8px; margin-bottom: 10px; }
body[data-app="mall-mobile"] .benefit-filters button { padding: 4px 15px; border: 0; border-radius: 22px; background: #fff; color: var(--msv-muted); font-size: 12px; }
body[data-app="mall-mobile"] .benefit-filters button[aria-pressed="true"] { background: var(--msv-soft); color: var(--msv-accent); }
body[data-app="mall-mobile"] .benefit-row { padding: 15px 13px; gap: 10px; margin: 0 0 8px; border: 0; border-radius: 10px; background: #fff; }
body[data-app="mall-mobile"] .benefit-coupon { border-left: 3px solid color-mix(in srgb,var(--msv-accent) 55%,#fff); }
body[data-app="mall-mobile"] .benefit-row strong { font-size: 13px; line-height: 1.7; }
body[data-app="mall-mobile"] .benefit-row small { font-size: 11px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .benefit-row>button { flex-shrink: 0; padding: 7px 12px; border-radius: 22px; }
body[data-app="mall-mobile"] .benefit-delta { color: var(--msv-accent); font-variant-numeric: tabular-nums; }
body[data-app="mall-mobile"] .benefit-empty { padding: 30px 12px; text-align: center; }

/* Plugin entries use the member template's existing service grid or list. */
body[data-app="mall-mobile"] .msv-plugin-entry { display: flex; flex-direction: column; align-items: center; gap: 10px; justify-content: flex-start; min-width: 0; min-height: 70px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: center; box-shadow: none; cursor: pointer; }
body[data-app="mall-mobile"] .msv-plugin-entry>span:last-child { max-width: 100%; font-size: var(--mmc-label-size,13px); line-height: 1.5; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .msv-plugin-icon.benefits { color: #e69632; background: #fff7e9; }
body[data-app="mall-mobile"] .msv-plugin-icon.invoices { color: #467cec; background: #edf3ff; }
body[data-app="mall-mobile"] .mmc-component[data-layout="list"] .msv-plugin-entry { flex-direction: row; min-height: 62px; gap: 12px; text-align: left; border-top: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] .msv-plugin-services { padding: 16px; margin-top: 12px; border-radius: 12px; background: #fff; }
body[data-app="mall-mobile"] .msv-plugin-services h3 { margin: 0 0 15px; font-size: 14px; }
body[data-app="mall-mobile"] .msv-plugin-menu { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }

/* Invoices and logistics share a compact top bar and grouped rows. */
body[data-app="mall-mobile"] .mi-body { min-height: 0; padding: 14px 12px max(24px,env(safe-area-inset-bottom)); }
body[data-app="mall-mobile"] .mi-toolbar { gap: 10px; margin: 0 0 12px; }
body[data-app="mall-mobile"] .mi-toolbar select { min-height: 44px; border: 0; border-radius: 8px; background: #fff; font-size: 13px; }
body[data-app="mall-mobile"] .mi-invoice-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
body[data-app="mall-mobile"] :is(.mi-invoice,.mi-shipment) { padding: 15px; border: 0; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .mi-invoice .mi-row>strong:first-child { font-size: 14px; }
body[data-app="mall-mobile"] .mi-order { font-size: 11px; margin: 8px 0 12px; }
body[data-app="mall-mobile"] .mi-amount { font-size: 20px; color: var(--msv-accent); }
body[data-app="mall-mobile"] .mi-actions { margin-top: 12px; justify-content: flex-end; }
body[data-app="mall-mobile"] .mi-actions :is(button,a) { border-radius: 22px; min-height: 40px; }
body[data-app="mall-mobile"] .mi-help { margin: 0 0 12px; padding: 0 13px; border: 0; border-radius: 9px; background: #fff; color: var(--msv-muted); font-size: 12px; }
body[data-app="mall-mobile"] .mi-help>summary { padding: 13px 0; cursor: pointer; }
body[data-app="mall-mobile"] .mi-help>p { margin: 0; padding-bottom: 13px; font-size: 12px; line-height: 1.8; }
body[data-app="mall-mobile"] .mi-detail-title { margin: 0; padding: 16px; border-radius: 11px 11px 0 0; background: #fff; }
body[data-app="mall-mobile"] .mi-detail-title h3 { font-size: 16px; }
body[data-app="mall-mobile"] .mi-facts { display: block; margin: 0 0 12px; padding: 0 16px 6px; border-radius: 0 0 11px 11px; background: #fff; }
body[data-app="mall-mobile"] .mi-facts>div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 12px 0; }
body[data-app="mall-mobile"] .mi-facts dt { margin: 0; font-size: 12px; }
body[data-app="mall-mobile"] .mi-facts dd { font-size: 13px; text-align: right; }
body[data-app="mall-mobile"] .mi-form { padding: 16px; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .mi-form :is(input,select) { min-height: 46px; border-color: #e4e7ed; background: #fafbfc; font-size: 16px; }
body[data-app="mall-mobile"] .mi-form-footer { position: sticky; bottom: 0; z-index: 1; padding: 12px 0 max(12px,env(safe-area-inset-bottom)); background: #fff; }
body[data-app="mall-mobile"] .mi-form-footer button { border-radius: 23px; }
body[data-app="mall-mobile"] .mi-shipment h3 { font-size: 16px; }
body[data-app="mall-mobile"] .mi-timeline p { font-size: 13px; }
body[data-app="mall-mobile"] .mi-pagination { gap: 8px; margin-top: 16px; }

/* Recharge keeps its existing amount/channel validation and payment handler. */
body[data-app="mall-mobile"] .mf-recharge-dialog>form { display: flex; flex-direction: column; gap: 0; height: 100%; max-height: 100%; }
body[data-app="mall-mobile"] .mf-recharge-dialog>form>header { display: flex; align-items: center; flex-shrink: 0; min-height: 56px; padding: env(safe-area-inset-top) 12px 0; background: #fff; border-bottom: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] .mf-recharge-dialog h2 { display: block; flex: 1; padding-left: 44px; text-align: center; font-size: 17px; }
body[data-app="mall-mobile"] .mf-recharge-dialog h2::before { display: none; }
body[data-app="mall-mobile"] .mf-recharge-dialog [data-mf-close] { min-width: 44px; min-height: 44px; }
body[data-app="mall-mobile"] .mf-recharge-dialog .mf-modal-body { flex: 1; min-height: 0; overflow: auto; padding: 12px; background: var(--msv-bg); }
body[data-app="mall-mobile"] .mf-recharge-shell { display: grid; gap: 12px; }
body[data-app="mall-mobile"] .mf-recharge-summary { display: block; min-height: 0; padding: 16px; background: #fff; border: 0; border-radius: 12px; }
body[data-app="mall-mobile"] .mf-recharge-balance { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
body[data-app="mall-mobile"] .mf-recharge-balance::after { display: none; }
body[data-app="mall-mobile"] .mf-recharge-balance>span { color: var(--msv-muted); font-size: 12px; }
body[data-app="mall-mobile"] .mf-recharge-balance>strong { display: block; margin: 6px 0; font-size: 30px; color: var(--msv-accent); }
body[data-app="mall-mobile"] .mf-recharge-balance>p { margin: 0; padding: 0; border: 0; font-size: 11px; line-height: 1.6; color: var(--msv-muted); }
body[data-app="mall-mobile"] .mf-recharge-summary-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border: 0; border-top: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] .mf-recharge-summary-side>div { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body[data-app="mall-mobile"] .mf-recharge-summary-side span { font-size: 11px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .mf-recharge-summary-side strong { font-size: 15px; color: var(--msv-ink); }
body[data-app="mall-mobile"] .mf-recharge-section { min-width: 0; padding: 15px; border: 0; border-radius: 12px; background: #fff; }
body[data-app="mall-mobile"] .mf-recharge-step { gap: 8px; margin-bottom: 14px; }
body[data-app="mall-mobile"] .mf-recharge-step>b { display: none; }
body[data-app="mall-mobile"] .mf-recharge-step h3 { font-size: 14px; }
body[data-app="mall-mobile"] .mf-recharge-step p { margin-top: 4px; font-size: 11px; }
body[data-app="mall-mobile"] .mf-recharge-amount-row { display: flex; gap: 10px; align-items: center; min-height: 58px; border: 0; overflow: visible; }
body[data-app="mall-mobile"] .mf-recharge-amount { flex: 1; min-width: 0; padding: 8px 10px !important; border: 1px solid #e5e8ee; border-radius: 8px; }
body[data-app="mall-mobile"] .mf-recharge-amount input { width: 100%; min-width: 0; height: 38px; min-height: 38px; font-size: 25px; }
body[data-app="mall-mobile"] .mf-recharge-payable { flex-shrink: 0; min-width: 54px; min-height: 0; padding: 0; background: none; text-align: right; color: var(--msv-muted); }
body[data-app="mall-mobile"] .mf-recharge-payable small { font-size: 10px; }
body[data-app="mall-mobile"] .mf-recharge-payable strong { font-size: 15px; color: var(--msv-accent); }
body[data-app="mall-mobile"] .mf-recharge-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
body[data-app="mall-mobile"] .mf-recharge-presets button { min-width: 0; min-height: 44px; padding: 6px 0; font-size: 13px; border-radius: 8px; background: var(--msv-soft); border-color: var(--msv-line); color: var(--msv-accent); }
body[data-app="mall-mobile"] .mf-recharge-rules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px 0 0; border: 0; margin: 0; background: none; }
body[data-app="mall-mobile"] .mf-recharge-rules>div { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; border: 0; font-size: 11px; }
body[data-app="mall-mobile"] .mf-recharge-rules>div:nth-child(n) { border: 0; }
body[data-app="mall-mobile"] .mf-recharge-rules strong { font-size: 11px; font-weight: 400; }
body[data-app="mall-mobile"] .mf-recharge-hint { margin: 10px 0 0; font-size: 11px; }
body[data-app="mall-mobile"] .mf-recharge-channels { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
body[data-app="mall-mobile"] .mf-recharge-channel { min-height: 64px; padding: 10px; border-radius: 9px; }
body[data-app="mall-mobile"] .mf-recharge-channel:has(input:checked) { border-color: var(--msv-accent); background: var(--msv-soft); box-shadow: none; }
body[data-app="mall-mobile"] .mf-recharge-channel-check { color: var(--msv-accent); }
body[data-app="mall-mobile"] .mf-recharge-channel:has(input:checked) .mf-recharge-channel-check { background: var(--msv-accent); border-color: var(--msv-accent); color: #fff; }
body[data-app="mall-mobile"] .mf-recharge-dialog>form>footer { flex-shrink: 0; display: block; margin: 0; padding: 10px 16px max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--msv-line); background: #fff; }
body[data-app="mall-mobile"] .mf-recharge-dialog>form>footer>[data-mf-close] { display: none; }
body[data-app="mall-mobile"] .mf-recharge-dialog>form>footer>.mf-primary { width: 100%; min-height: 46px; border-radius: 23px; background: var(--msv-accent); border-color: var(--msv-accent); color: #fff; }
body[data-app="mall-mobile"] .mf-recharge-dialog .mf-error:not([hidden]) { flex-shrink: 0; max-height: 100px; overflow: auto; margin: 0; padding: 10px 16px; }

/* A short redemption flow fits a bottom sheet, without an empty-page spacer. */
body[data-app="mall-mobile"] dialog.msv-voucher-dialog { inset: auto 0 0; width: 100%; max-width: 100%; height: auto; max-height: 85dvh; margin: 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; transform: none; }
body[data-app="mall-mobile"] .msv-voucher-dialog>form { max-height: 85dvh; display: flex; flex-direction: column; }
body[data-app="mall-mobile"] .msv-voucher-dialog>form>header { padding: 18px 18px 12px; }
body[data-app="mall-mobile"] .msv-voucher-dialog h2 { font-size: 17px; }
body[data-app="mall-mobile"] .msv-voucher-dialog .mf-modal-body { overflow: auto; min-height: 0; padding: 8px 18px 16px; }
body[data-app="mall-mobile"] .msv-voucher-dialog .mf-empty { min-height: 0; margin: 0 0 14px; padding: 12px; font-size: 12px; background: var(--msv-bg); border-radius: 8px; }
body[data-app="mall-mobile"] .msv-voucher-dialog :is(input,textarea) { min-height: 46px; font-size: 16px; border-radius: 8px; }
body[data-app="mall-mobile"] .msv-voucher-dialog>form>footer { padding: 12px 18px max(18px,env(safe-area-inset-bottom)); }
body[data-app="mall-mobile"] .msv-voucher-dialog>form>footer>button { flex: 1; min-height: 44px; border-radius: 22px; }
body[data-app="mall-mobile"] .msv-voucher-dialog .mf-primary { background: var(--msv-accent); border-color: var(--msv-accent); color: #fff; }

/* Checkout's <main> must not inherit the storefront shell's width/margins. */
body[data-app="mall-mobile"] .checkout-dialog #checkoutForm { height: 100%; max-height: 100dvh; }
body[data-app="mall-mobile"] .checkout-dialog .checkout-heading { min-height: 56px; gap: 0; padding: env(safe-area-inset-top) 12px 0; background: #fff; }
body[data-app="mall-mobile"] .checkout-heading>div:first-child { flex: 1; padding-left: 36px; }
body[data-app="mall-mobile"] .checkout-dialog h2 { text-align: center; font-size: 17px; }
body[data-app="mall-mobile"] .checkout-eyebrow { display: none; }
body[data-app="mall-mobile"] .checkout-workspace { flex: 1; display: block; min-height: 0; overflow: auto; scrollbar-gutter: auto; background: var(--msv-bg); padding: 12px; }
body[data-app="mall-mobile"] .checkout-dialog main.checkout-items { display: block; width: 100%; max-width: none; min-height: 0; height: auto; margin: 0; padding: 15px; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .checkout-section-heading { padding-bottom: 0; }
body[data-app="mall-mobile"] .checkout-dialog h3 { font-size: 14px; }
body[data-app="mall-mobile"] .checkout-line { padding: 14px 0; }
body[data-app="mall-mobile"] .checkout-product { gap: 10px; }
body[data-app="mall-mobile"] .checkout-product-image { width: 48px; height: 48px; border: 0; border-radius: 7px; }
body[data-app="mall-mobile"] .checkout-product-name p { margin-top: 5px; font-size: 12px; }
body[data-app="mall-mobile"] .checkout-line-amounts { margin-top: 12px; padding: 10px 0; gap: 8px; }
body[data-app="mall-mobile"] .checkout-line-amounts dd { margin-top: 4px; font-size: 13px; }
body[data-app="mall-mobile"] .checkout-fields { margin-top: 15px; gap: 12px; }
body[data-app="mall-mobile"] .checkout-fields legend { padding-bottom: 12px; }
body[data-app="mall-mobile"] .checkout-fields :is(input,select,textarea) { border-color: #e4e7ed; border-radius: 8px; background: #fafbfc; }
body[data-app="mall-mobile"] .checkout-summary { margin: 12px 0 0; padding: 15px; border: 0; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .checkout-summary dl { margin: 10px 0 0; }
body[data-app="mall-mobile"] .checkout-summary dl>div { margin-top: 8px; }
body[data-app="mall-mobile"] .checkout-summary dl>.checkout-summary-amount { display: flex; margin-top: 12px; padding-top: 12px; }
body[data-app="mall-mobile"] .checkout-summary-amount dd { font-size: 18px; }
body[data-app="mall-mobile"] :is(.checkout-summary-amount dd,.checkout-total strong,.checkout-line-amounts>div:last-child dd) { color: var(--msv-accent); }
body[data-app="mall-mobile"] .checkout-benefits { margin-top: 12px; padding: 0; border-color: var(--msv-line); }
body[data-app="mall-mobile"] .benefit-checkout-toggle { padding: 13px 0 0; color: #55606f; font-size: 13px; cursor: pointer; }
body[data-app="mall-mobile"] .checkout-dialog #checkoutForm>footer { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--msv-line); box-shadow: none; }
body[data-app="mall-mobile"] .checkout-total { flex: 1; display: grid; gap: 1px; justify-content: start; }
body[data-app="mall-mobile"] .checkout-total>span { font-size: 11px; }
body[data-app="mall-mobile"] .checkout-total strong { font-size: 21px; }
body[data-app="mall-mobile"] .checkout-actions { display: block; }
body[data-app="mall-mobile"] .checkout-actions>.secondary-action { display: none; }
body[data-app="mall-mobile"] .checkout-actions>.primary-action { min-width: 130px; min-height: 46px; border-radius: 23px; padding: 10px 15px; background: var(--msv-accent); border-color: var(--msv-accent); }

/* Order detail is a scrollable page; keep the existing cashier handlers intact. */
body[data-app="mall-mobile"] #orderDetailDialog>div { padding: 0; }
body[data-app="mall-mobile"] #orderDetailDialog>div>header { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; padding: 12px 14px !important; background: #fff; border-bottom: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] #orderDetailDialog>div>header h2 { font-size: 17px; margin: 0 0 3px; }
body[data-app="mall-mobile"] #orderDetailDialog>div>header p { display: none; }
body[data-app="mall-mobile"] #orderDetailDialog .order-detail-meta { font-size: 10px; color: var(--msv-muted); }
body[data-app="mall-mobile"] #orderDetailDialog .order-detail-content { padding: 12px; gap: 12px; background: var(--msv-bg); }
body[data-app="mall-mobile"] #orderDetailDialog .oc-hero { margin: 0; padding: 16px; gap: 10px; border: 0; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .oc-heading h3 { font-size: 17px; margin: 8px 0; }
body[data-app="mall-mobile"] .oc-heading p { margin: 5px 0; }
body[data-app="mall-mobile"] .oc-amount { gap: 8px; }
body[data-app="mall-mobile"] .oc-amount strong { font-size: 29px; color: var(--msv-accent); }
body[data-app="mall-mobile"] .oc-state { color: var(--msv-accent); }
body[data-app="mall-mobile"] .oc-clock { font-size: 19px; }
body[data-app="mall-mobile"] #orderDetailDialog :is(.order-detail-section,.oc-payment-panel,.oc-records) { padding: 15px; border: 0; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] #orderDetailDialog .order-detail-section h3,body[data-app="mall-mobile"] .oc-payment-panel>h3 { font-size: 14px; margin: 0 0 12px; }
body[data-app="mall-mobile"] #orderDetailDialog .order-item-row { padding: 10px; background: #f8f9fb; border-radius: 8px; }
body[data-app="mall-mobile"] .oc-methods { grid-template-columns: minmax(0,1fr); gap: 8px; }
body[data-app="mall-mobile"] .oc-method { padding: 10px; min-height: 62px; border-radius: 9px; }
body[data-app="mall-mobile"] .oc-method:has(input:checked) { border-color: var(--msv-accent); background: var(--msv-soft); box-shadow: none; }
body[data-app="mall-mobile"] .oc-method>svg { color: var(--msv-accent); }
body[data-app="mall-mobile"] .oc-actions { position: sticky; bottom: 0; border-top: 1px solid var(--msv-line); padding-top: 12px; background: #fff; }
body[data-app="mall-mobile"] .oc-actions :is(button,a) { min-height: 44px; border-radius: 22px; }
body[data-app="mall-mobile"] .oc-actions :is(.primary-action,.oc-payment-link) { background: var(--msv-accent); border-color: var(--msv-accent); }
body[data-app="mall-mobile"] #orderDetailDialog>div>footer { padding: 10px 12px max(12px,env(safe-area-inset-bottom)) !important; border: 0; }

/* Agent prices: product/specification groups with all membership prices. */
body[data-app="mall-mobile"] .agent-prices { margin: 0; padding: 0 12px 24px; border: 0; background: var(--msv-bg); }
body[data-app="mall-mobile"] .ap-heading { align-items: center; margin: 0 -12px 12px; padding: 12px 16px; border: 0; background: #fff; }
body[data-app="mall-mobile"] .ap-heading h1 { font-size: 17px; margin: 0 0 4px; }
body[data-app="mall-mobile"] .ap-heading a { min-height: 44px; display: flex; align-items: center; font-size: 12px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .ap-result-count { font-size: 11px; }
body[data-app="mall-mobile"] .ap-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 13px; margin: 0; border: 0; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .ap-query { grid-column: 1/-1; }
body[data-app="mall-mobile"] .ap-filters label { min-width: 0; }
body[data-app="mall-mobile"] .ap-filters label>span { font-size: 11px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .ap-filters :is(input,select) { min-width: 0; width: 100%; min-height: 44px; font-size: 16px; border-color: #e5e8ee; border-radius: 8px; background: #fafbfc; }
body[data-app="mall-mobile"] .ap-filters button { border-radius: 22px; }
body[data-app="mall-mobile"] .ap-feedback { margin: 10px 0; font-size: 12px; }
body[data-app="mall-mobile"] .ap-feedback:empty { margin: 12px 0 0; }
body[data-app="mall-mobile"] .ap-products { display: grid; gap: 12px; }
body[data-app="mall-mobile"] .ap-product-group { min-width: 0; padding: 14px; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .ap-product { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; max-width: none; padding: 0 0 12px; border: 0; background: none; text-align: left; color: var(--msv-ink); }
body[data-app="mall-mobile"] .ap-product>span { flex: 1; min-width: 0; }
body[data-app="mall-mobile"] .ap-product strong { display: block; font-size: 14px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .ap-product small { display: block; max-width: none; margin-top: 5px; font-size: 11px; color: var(--msv-muted); overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .ap-product img { flex-shrink: 0; width: 44px; height: 44px; object-fit: cover; border-radius: 7px; }
body[data-app="mall-mobile"] .ap-product>svg { flex-shrink: 0; width: 16px; height: 16px; color: #a7adb5; }
body[data-app="mall-mobile"] .ap-sku { padding: 12px 0; border-top: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] .ap-sku:last-child { padding-bottom: 0; }
body[data-app="mall-mobile"] .ap-sku h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: #59616e; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .ap-level-prices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
body[data-app="mall-mobile"] .ap-level-prices>div { min-width: 0; padding: 10px; border-radius: 7px; background: #f8f9fb; }
body[data-app="mall-mobile"] .ap-level-prices dt { font-size: 11px; color: var(--msv-muted); overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .ap-level-prices dd { margin: 6px 0 0; text-align: left; font-size: 15px; white-space: normal; overflow-wrap: anywhere; color: var(--msv-accent); font-variant-numeric: tabular-nums; }
body[data-app="mall-mobile"] .ap-level-prices .ap-unavailable { color: #99a0ab; font-size: 12px; }
body[data-app="mall-mobile"] .ap-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 16px 0 0; font-size: 12px; }
body[data-app="mall-mobile"] .ap-pager :is(button,select) { min-height: 44px; min-width: 0; padding: 8px; border-radius: 8px; font-size: 12px; }

/* Existing subsite: concise status, followed by expandable service settings. */
body[data-app="mall-mobile"] #memberDashboard.member-dashboard [data-member-panel="subsite"] { background: var(--msv-bg); }
body[data-app="mall-mobile"] #subsiteContent { display: grid; gap: 12px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase { padding: 15px; border: 0; border-radius: 11px; margin: 0; background: #fff; box-shadow: none; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase>header { padding: 0; margin: 0 0 12px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase>header p { display: none; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase>header h3 { font-size: 14px; margin: 0 0 5px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase>header span { color: var(--msv-muted); font-size: 11px; line-height: 1.6; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-card { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--msv-line); border-radius: 0; background: none; box-shadow: none; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-card>div:first-child { flex: 1; min-width: 0; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-card>div>span { display: none; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-card strong { font-size: 14px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-card small { font-size: 11px; line-height: 1.6; }
body[data-app="mall-mobile"] #subsiteContent .subsite-purchase-card button { flex-shrink: 0; width: auto; min-height: 44px; padding: 8px 13px; border-radius: 22px; font-size: 12px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-upgrade { flex-direction: column; align-items: stretch; }
body[data-app="mall-mobile"] #subsiteContent .subsite-upgrade-controls { min-width: 0; display: flex; gap: 8px; }
body[data-app="mall-mobile"] #subsiteContent .subsite-upgrade-controls select { flex: 1; min-width: 0; max-width: 100%; }
body[data-app="mall-mobile"] .msv-subsite-summary { padding: 16px; border-radius: 12px; background: #fff; }
body[data-app="mall-mobile"] .msv-subsite-heading { display: flex; align-items: center; gap: 10px; }
body[data-app="mall-mobile"] .msv-subsite-heading>div { flex: 1; min-width: 0; }
body[data-app="mall-mobile"] .msv-subsite-heading h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .msv-subsite-heading p { margin: 5px 0 0; font-size: 11px; color: var(--msv-muted); overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .msv-subsite-symbol { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: var(--msv-soft); color: var(--msv-accent); }
body[data-app="mall-mobile"] .msv-subsite-symbol svg { width: 23px; height: 23px; }
body[data-app="mall-mobile"] .msv-subsite-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] .msv-subsite-summary dt { font-size: 11px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .msv-subsite-summary dd { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .msv-settings { min-width: 0; border-radius: 11px; background: #fff; }
body[data-app="mall-mobile"] .msv-settings>summary { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
body[data-app="mall-mobile"] .msv-settings>summary::-webkit-details-marker { display: none; }
body[data-app="mall-mobile"] .msv-settings>summary>span { flex: 1; min-width: 0; font-size: 14px; }
body[data-app="mall-mobile"] .msv-settings summary small { display: block; margin-top: 4px; font-size: 11px; color: var(--msv-muted); }
body[data-app="mall-mobile"] .msv-settings summary svg { width: 20px; height: 20px; color: var(--msv-accent); }
body[data-app="mall-mobile"] .msv-settings summary svg:last-child { width: 16px; color: #a0a7b1; }
body[data-app="mall-mobile"] .msv-settings[open] summary svg:last-child { transform: rotate(180deg); }
body[data-app="mall-mobile"] #subsiteSettingsForm { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; padding: 0 16px 16px; margin: 0; border: 0; }
body[data-app="mall-mobile"] #subsiteSettingsForm label { display: grid; gap: 7px; min-width: 0; font-size: 12px; color: #687181; }
body[data-app="mall-mobile"] #subsiteSettingsForm :is(input,select) { width: 100%; min-width: 0; min-height: 46px; border-radius: 8px; border: 1px solid #e5e8ee; background: #fafbfc; font-size: 16px; }
body[data-app="mall-mobile"] #subsiteSettingsForm .primary-action { min-height: 44px; border-radius: 22px; background: var(--msv-accent); border-color: var(--msv-accent); }
body[data-app="mall-mobile"] .msv-site-facts { margin: 0; padding: 0 16px 8px; }
body[data-app="mall-mobile"] .msv-site-facts>div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--msv-line); font-size: 12px; }
body[data-app="mall-mobile"] .msv-site-facts dt { color: var(--msv-muted); }
body[data-app="mall-mobile"] .msv-site-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .msv-subsite-footer { padding: 4px 0 14px; text-align: center; }
body[data-app="mall-mobile"] #disableSubsite { min-height: 44px; padding: 8px 16px; border: 0; background: transparent; color: #9098a4; font-size: 12px; }
body[data-app="mall-mobile"] #subsiteFinancePanel { --mf-blue: var(--msv-accent); margin: 0; padding: 15px; border: 0; border-radius: 11px; background: #fff; }
/* Other member plugins also use .mf-heading; their hidden headers must not hide finance actions. */
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-heading { display: flex; margin: 0 0 12px; gap: 8px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-actions { width: auto; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-heading h2 { font-size: 14px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-balances { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-bottom: 14px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-balances dd { font-size: 20px; margin-top: 5px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-balances dt { font-size: 11px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-tabs { gap: 15px; margin-top: 12px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-search { gap: 8px; margin: 12px 0; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-search-input { min-width: 120px; }
body[data-app="mall-mobile"] #subsiteFinancePanel :is(button,select) { min-height: 44px; }
body[data-app="mall-mobile"] #subsiteFinancePanel table,body[data-app="mall-mobile"] #subsiteFinancePanel tbody { display: block; width: 100%; }
body[data-app="mall-mobile"] #subsiteFinancePanel thead { display: none; }
body[data-app="mall-mobile"] #subsiteFinancePanel tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--msv-line); }
body[data-app="mall-mobile"] #subsiteFinancePanel td { display: block; width: 100%; max-width: none; padding: 6px 0 6px 92px; border: 0; position: relative; font-size: 12px; }
body[data-app="mall-mobile"] #subsiteFinancePanel td::before { content: attr(data-label); position: absolute; left: 0; top: 6px; width: 82px; color: var(--msv-muted); font-size: 11px; }
body[data-app="mall-mobile"] #subsiteFinancePanel .mf-pagination { gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  body[data-app="mall-mobile"] :is(.msv-settings,.ap-products,.benefit-panel) { scroll-behavior: auto; }
}
