/* Mobile finish layer. Saved block styles, theme variables, order and visibility
   remain the source of truth. No image ratios or business layout are replaced. */
.mobile-body {
  background: var(--ds-canvas, #f5f6f8);
  font-family: var(--ds-font, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mobile-body :where(.device-shell) { background: #fcfbf8; box-shadow: 0 12px 64px #252a3210; }
.mobile-body :where(.local-ribbon) { padding: 6px 12px; background: #efeee9; color: #857e73; font-size: 10px; letter-spacing: .7px; }
.mobile-body :where(.app-view) { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.mobile-body :where(.app-header) { padding-top: 18px; padding-bottom: 15px; }
.mobile-body :where(.brand-name) { font-size: 18px; letter-spacing: .3px; }
.mobile-body :where(.brand-sub) { font-size: 9px; letter-spacing: 1.6px; }
.mobile-body :where(.icon-btn) { min-width: 44px; min-height: 44px; border-radius: 12px; }
.mobile-body :where(.header-actions) { gap: 8px; }
.mobile-body :where(.refresh-button) { min-height: 44px; padding: 8px; border-radius: 10px; }
.mobile-body :where(.title-row) { margin-top: 20px; margin-bottom: 14px; }
.mobile-body :where(.title-row h1) { font-size: 25px; letter-spacing: -.6px; line-height: 1.3; }
.mobile-body :where(.section-heading) { align-items: center; gap: 10px; margin-bottom: 13px; }
.mobile-body :where(.section-heading h2) { letter-spacing: -.25px; font-weight: 700; }
.mobile-body :where(.text-link) { min-height: 44px; font-size: 12px; }
.mobile-body :where(.store-context-picker) { border-radius: 12px; }
.mobile-body :where(.store-account-bar) { border-radius: 10px; font-size: 11px; }
.mobile-body :where(.business-search-box, .product-search, .training-search) { box-shadow: none; border-radius: 13px; }
.mobile-body :where(.business-search-box input, .product-search input, .training-search input) { min-height: 44px; }

/* The default brown copy gets neutral heading ink; custom colours keep priority. */
#app[style*="--m-ink:#683B25"] :where(.app-header, .title-row, .back-heading, .training-heading, .secondary-page-header),
#app[style*="--m-ink:#683b25"] :where(.app-header, .title-row, .back-heading, .training-heading, .secondary-page-header) { color: var(--ds-ink, #252a32); }

/* Product cards: bounded copy, intact original imagery and a clear price/action. */
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) { align-items: stretch; }
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) > .product-card {
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: var(--pb-item-radius, var(--pb-card-radius, 14px));
  background: var(--pb-card-background, #fff);
  overflow: hidden;
  box-shadow: none;
}
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) :where(.product-image) { border-radius: 0; }
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) :where(.product-body) { padding: 11px 11px 12px; gap: 5px; }
:is(.mobile-body,.pe-preview-scroll) :where(.product-name) { letter-spacing: -.15px; line-height: 1.5; }
:is(.mobile-body,.pe-preview-scroll) :where(.product-meta, .business-card-category) { font-size: 11px; line-height: 1.5; }
:is(.mobile-body,.pe-preview-scroll) :where(.business-card-description) { line-height: 1.6; }
:is(.mobile-body,.pe-preview-scroll) :where(.product-bottom) { min-height: 44px; gap: 8px; margin-top: auto; }
:is(.mobile-body,.pe-preview-scroll) :where(.product-bottom .price) { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.4px; }
:is(.mobile-body,.pe-preview-scroll) :where(.product-cart-add) { width: 40px; height: 40px; min-width: 44px; min-height: 44px; border-radius: 12px; box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.product-cart-state) { font-size: 11px; line-height: 1.5; margin-top: 4px; }
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) .is-in-cart :where(.product-bottom) { flex-wrap: wrap; }
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) .is-in-cart :where(.product-purchase-control) { width: 100%; }
:is(.mobile-body,.pe-preview-scroll) :where(.business-product-grid:not(.business-card-list), .product-grid:not(.business-product-grid)) .is-in-cart :where(.quantity) { justify-content: space-between; width: 100%; min-height: 44px; }
:is(.mobile-body,.pe-preview-scroll) :where(.quantity button, .cart-quantity button) { min-height: 44px; }
:is(.mobile-body,.pe-preview-scroll) :where(.catalog-heading) { font-size: 11px; margin-bottom: 10px; }

/* Personal centre: themes own the member-card colours and custom geometry. */
:is(.mobile-body,.pe-preview-scroll) :where(.pb-person-card, .member-identity) { box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.pb-person-name) { letter-spacing: -.7px; line-height: 1.3; }
:is(.mobile-body,.pe-preview-scroll) :where(.pb-person-tools) { gap: 7px; }
:is(.mobile-body,.pe-preview-scroll) :where(.pb-person-tools > .pb-appearance-switch) { border-radius: 10px; padding-left: 10px; padding-right: 10px; }
:is(.mobile-body,.pe-preview-scroll) :where(.pb-person-rights) { box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.member-assets) { font-variant-numeric: tabular-nums; }
:is(.mobile-body,.pe-preview-scroll) :where(.order-shortcuts) { gap: 9px; }
:is(.mobile-body,.pe-preview-scroll) :where(.order-shortcut) { min-height: 64px; }
:is(.mobile-body,.pe-preview-scroll) :where(.profile-services, .profile-orders, .profile-stores) { box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.pb-rating-card, .compact-store, .member-store-card) { box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.pb-rating-status, .pb-rating-comment) { line-height: 1.7; }
:is(.mobile-body,.pe-preview-scroll) :where(.profile-footer) { padding-top: 18px; padding-bottom: 12px; font-size: 11px; }
:is(.mobile-body,.pe-preview-scroll) :where(.stc-card) { border-color: color-mix(in srgb, currentColor 10%, transparent); padding: 16px; gap: 12px; }
:is(.mobile-body,.pe-preview-scroll) :where(.stc-copy p) { font-size: 12px; line-height: 1.65; }
:is(.mobile-body,.pe-preview-scroll) :where(.stc-status) { font-size: 11px; }
:is(.mobile-body,.pe-preview-scroll) :where(.stc-button) { border-radius: 10px; font-size: 12px; }
:is(.mobile-body,.pe-preview-scroll) :where(.stc-progress) { height: 5px; }

/* Learning centre keeps the configured grid count, cover shape and course rights. */
:is(.mobile-body,.pe-preview-scroll) :where(.training-heading) { margin-top: 4px; margin-bottom: 18px; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-heading h1) { font-size: 25px; line-height: 1.3; letter-spacing: -.6px; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-brand-cover, .training-carousel) { box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-tile-cover) { box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-tile-copy) { gap: 5px; padding-top: 10px; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-tile-copy > strong) { line-height: 1.5; letter-spacing: -.15px; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-tile-category, .training-tile-status) { font-size: 11px; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-tile-play) { box-shadow: 0 2px 9px #252a3214; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-categories > button) { min-height: 44px; border-radius: 11px; }
:is(.mobile-body,.pe-preview-scroll) :where(.training-grid) { row-gap: 19px; }

/* Tasks: quieter hero, stronger hierarchy and predictable status colours. */
.mobile-body :where(.ot-page) { background: var(--m-cream, #faf9f6); color: var(--m-ink, #252a32); }
.mobile-body :where(.ot-page-header) { min-height: 64px; border-bottom-color: color-mix(in srgb, currentColor 9%, transparent); background: #fffdfb; }
.mobile-body :where(.ot-page-header > strong) { font-size: 16px; letter-spacing: -.2px; }
.mobile-body :where(.ot-page-tabs) { gap: 32px; padding-top: 13px; padding-bottom: 13px; }
.mobile-body :where(.ot-page-tabs button) { font-size: 14px; }
.mobile-body :where(.ot-reward-hero) {
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--m-primary, #c85821) 18%, #fff);
  background: linear-gradient(125deg, #fffdf9, color-mix(in srgb, var(--m-primary, #c85821) 10%, #fff));
  padding: 19px 18px 17px;
}
.mobile-body :where(.ot-hero-main) { margin-top: 21px; }
.mobile-body :where(.ot-hero-main h1) { letter-spacing: -.8px; }
.mobile-body :where(.ot-hero-main .ot-coupon-amount) { font-size: 60px; font-variant-numeric: tabular-nums; }
.mobile-body :where(.ot-hero-progress) { margin-top: 20px; padding-top: 15px; }
.mobile-body :where(.ot-task-row, .ot-task-detail, .ot-reward-details > div, .ot-owner-only) { border-radius: 15px; box-shadow: none; }
.mobile-body :where(.ot-task-row) { padding: 16px 14px; border-color: color-mix(in srgb, currentColor 10%, transparent); }
.mobile-body :where(.ot-task-copy b) { font-size: 14px; line-height: 1.5; letter-spacing: -.15px; }
.mobile-body :where(.ot-task-copy small) { line-height: 1.6; }
.mobile-body :where(.ot-task-icon) { border-radius: 12px; }
.mobile-body :where(.ot-task-action) { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.mobile-body :where(.ot-task-row.is-done) { background: #f5faf7; border-color: #dfebe3; }
.mobile-body :where(.ot-task-detail) { padding: 20px 17px; }
.mobile-body :where(.ot-task-detail h2) { font-size: 21px; line-height: 1.45; letter-spacing: -.45px; }
.mobile-body :where(.ot-task-description) { font-size: 13px; line-height: 1.85; }
.mobile-body :where(.ot-primary) { min-height: 46px; border-radius: 12px; box-shadow: none; font-size: 14px; }
.mobile-body :where(.ot-proof-label textarea, .ot-contact, .ot-review-note) { border-radius: 10px; }
.mobile-body :where(.ot-benefit-strip) { border-radius: 12px; }
.mobile-body :where(.ot-inline-lock-note) { border-radius: 12px; }

/* Site messages use the same paper surfaces; unread badge keeps its contrast. */
.mobile-body :where(.member-information-page) { background: var(--m-cream, #faf9f6); }
.mobile-body :where(.secondary-page-header) { min-height: 66px; border-bottom-color: var(--ds-line, #e7e9ee); }
.mobile-body :where(.secondary-page-header h1) { font-size: 19px; letter-spacing: -.3px; }
.mobile-body :where(.member-information-content) { padding-top: 18px; }
.mobile-body :where(.member-information-store) { border-radius: 12px; background: #fff; border-color: var(--ds-line, #e7e9ee); }
.mobile-body :where(.mi-category-tabs) { gap: 8px; }
.mobile-body :where(.mi-category-tabs button) { min-height: 44px; border-radius: 10px; }
.mobile-body :where(.mi-thread-row) { border-radius: 14px; padding: 16px 14px; border-color: var(--ds-line, #e7e9ee); box-shadow: none; background: #fff; }
.mobile-body :where(.mi-thread-main strong) { font-size: 14px; line-height: 1.5; }
.mobile-body :where(.mi-thread-main p) { line-height: 1.65; }
.mobile-body :where(.mi-detail, .mi-reply) { border-radius: 14px; border-color: var(--ds-line, #e7e9ee); box-shadow: none; }
.mobile-body :where(.mi-message-body) { font-size: 14px; line-height: 1.9; }
.mobile-body :where(.mi-reply-form textarea) { min-height: 112px; border-radius: 12px; }
.mobile-body :where(.mi-reply-form button) { min-height: 44px; border-radius: 11px; }

/* Cart controls remain above the original navigation and safe-area boundary. */
.mobile-body :where(.shopping-cart-products) { border: 1px solid var(--ds-line, #e7e9ee); border-radius: 14px; box-shadow: none; }
.mobile-body :where(.shopping-cart-item) { padding-top: 17px; padding-bottom: 17px; }
.mobile-body :where(.cart-product-picture) { border-radius: 11px; }
.mobile-body :where(.cart-product-name) { font-size: 14px; line-height: 1.55; font-weight: 650; letter-spacing: -.15px; }
.mobile-body :where(.cart-product-meta) { line-height: 1.6; }
.mobile-body :where(.cart-product-price) { font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.mobile-body :where(.cart-quantity) { min-height: 44px; border-radius: 9px; }
.mobile-body :where(.cart-remove-product) { min-height: 44px; }
.mobile-body :where(.shopping-cart-checkout) { border-top-color: var(--ds-line, #e7e9ee); box-shadow: 0 -5px 22px #252a3205; }
.mobile-body :where(.cart-checkout-button, .cart-delete-selected) { min-height: 44px; border-radius: 11px; }
.mobile-body :where(.cart-float) { border-radius: 14px; box-shadow: 0 7px 24px #252a3214; }
.mobile-body :where(.cart-float strong) { font-variant-numeric: tabular-nums; letter-spacing: -.3px; }

/* Navigation: an icon-sized active cue, without a large selected colour panel. */
.mobile-body :where(.bottom-nav) { background: #fffefbf5; border-top-color: var(--ds-line, #e7e9ee); box-shadow: 0 -4px 22px #252a3204; }
.mobile-body :where(.nav-button) { min-height: 44px; position: relative; gap: 4px; }
.mobile-body :where(.nav-button > span) { letter-spacing: .1px; }
.mobile-body :where(.nav-button.active)::after { content: ""; display: block; position: absolute; top: -4px; left: calc(50% - 7px); width: 14px; height: 3px; border-radius: 4px; background: currentColor; opacity: .75; pointer-events: none; }

/* Login finish; the original fields, consent and authentication flow stay intact. */
.mobile-body :where(.login-view) { background: #fffaf4; }
.mobile-body :where(.login-top) { padding-top: 27px; }
.mobile-body :where(.login-card) { border-radius: 19px; box-shadow: 0 12px 35px #7642190a; border: 1px solid #eaded0; }
.mobile-body :where(.auth-form-title) { font-size: 23px; line-height: 1.35; letter-spacing: -.6px; }
.mobile-body :where(.auth-form-subtitle) { font-size: 13px; line-height: 1.75; }
.mobile-body :where(.login-card input) { border-radius: 11px; }
.mobile-body :where(.login-card button[type="submit"]) { min-height: 48px; border-radius: 12px; }
.mobile-body :where(.auth-tabs > button, .login-demo > button) { min-height: 42px; }
.mobile-body :where(.auth-consent) { font-size: 11px; line-height: 1.8; }

@media (max-width: 370px) {
  .mobile-body :where(.app-header) { gap: 8px; }
  .mobile-body :where(.brand-name) { font-size: 17px; }
  .mobile-body :where(.product-cart-add) { width: 44px; min-width: 44px; }
  
  .mobile-body :where(.ot-hero-main .ot-coupon-amount) { font-size: 55px; }
  .mobile-body :where(.ot-task-row) { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-body :where(.product-image img) { transition: none; transform: none; }
}

/* Shared component defaults have explicit scope so both live and DIY preview
   receive the finish. Values controlled by saved styles still use their vars. */
:is(.mobile-body,.pe-preview-scroll) .pb-functional-content .business-heading h2 { line-height: 1.35; }
:is(.mobile-body,.pe-preview-scroll) .pb-productCategories .business-button,
:is(.mobile-body,.pe-preview-scroll) .pb-courseCategories .business-button { padding: 6px; gap: 4px; }
:is(.mobile-body,.pe-preview-scroll) .pb-productCategories .business-button-label,
:is(.mobile-body,.pe-preview-scroll) .pb-courseCategories .business-button-label { line-height: 1.4; }
:is(.mobile-body,.pe-preview-scroll) .supplier-entry.supplier-entry-component .supplier-entry-copy { gap: 3px; }
:is(.mobile-body,.pe-preview-scroll) .supplier-entry.supplier-entry-component .supplier-entry-cta { padding: 3px 0; }
:is(.mobile-body,.pe-preview-scroll) .supplier-entry.supplier-entry-component .supplier-entry-footer { margin-top: 6px; line-height: 1.5; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid.business-image-default:not(.business-card-list) .product-image { aspect-ratio: 4/3; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid.business-image-default:not(.business-card-list) .product-image img { width: 100%; height: 100%; object-fit: contain; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-card { border: 1px solid #e8e8e3; box-shadow: none; background: var(--pb-card-background,#fff); border-radius: var(--pb-item-radius,var(--pb-card-radius,14px)); }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-body { padding: 10px 10px 11px; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-name { line-height: 1.5; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-bottom { min-height: 44px; }
:is(.mobile-body,.pe-preview-scroll) .product-card .product-cart-add { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 12px; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .is-in-cart .product-bottom { flex-wrap: wrap; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .is-in-cart .product-purchase-control { width: 100%; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .is-in-cart .quantity { width: 100%; min-height: 44px; justify-content: space-between; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid[style*="repeat(2,"] .quantity button { min-width: 44px; min-height: 44px; }
:is(.mobile-body,.pe-preview-scroll) .builder-page:not(.pb-design-orange):not(.pb-design-green):not(.pb-design-blackgold) .pb-person-card:not(.pb-person-skin-classic) { padding: 18px 18px 16px; box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) .pb-person-card:not(.pb-person-skin-classic) .pb-person-rights { min-height: 62px; padding: 12px 13px; margin-top: 16px; border-radius: 13px; box-shadow: none; }
:is(.mobile-body,.pe-preview-scroll) .pb-person-card:not(.pb-person-skin-classic) .pb-person-rights-mark { width: 30px; height: 34px; border-radius: 10px; }
:is(.mobile-body,.pe-preview-scroll) .pb-person-card:not(.pb-person-skin-classic) .pb-person-rights-copy > strong { font-size: 14px; line-height: 1.5; }
:is(.mobile-body,.pe-preview-scroll) .pb-person-card:not(.pb-person-skin-classic) .pb-person-rights-copy > small { font-size: 11px; line-height: 1.55; }
:is(.mobile-body,.pe-preview-scroll) .pb-person-card:not(.pb-person-skin-classic) .pb-person-rights-cta { padding: 8px 10px; font-size: 11px; border-radius: 9px; }
.mobile-body .bottom-nav .nav-button { min-height: 44px; }
.mobile-body .shopping-cart-checkout .cart-checkout-button,
.mobile-body .mi-reply-form button { min-height: 46px; }

/* Grid copy stays above the price and purchase action. Saved visibility and
   custom picture proportions remain the page builder's responsibility. */
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-body { display:flex; flex-direction:column; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-name { order:0; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-subtitle { order:1; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .business-card-category { order:2; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .business-card-description { order:3; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-meta { order:4; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-cart-state { order:5; }
:is(.mobile-body,.pe-preview-scroll) .business-product-grid:not(.business-card-list) .product-bottom { order:6; margin-top:auto; }
:is(.mobile-body,.pe-preview-scroll) .pb-productList .catalog-heading { margin:0 0 6px; padding:0; font-size:12px; line-height:18px; }
:is(.mobile-body,.pe-preview-scroll) .supplier-entry.supplier-entry-component .supplier-entry-description { line-height:1.5; }
:is(.mobile-body,.pe-preview-scroll) .supplier-entry.supplier-entry-component .supplier-entry-cta { padding-top:1px; padding-bottom:1px; line-height:1.45; }
:is(.mobile-body,.pe-preview-scroll) .supplier-entry.supplier-entry-component .supplier-entry-footer { margin-top:4px; }
