/* Developer & Lead Architect: Morris Robinson / morrisrobinson1688@aol.com
 * GENE 359R468 — CANONICAL shared focused/reduced layout geometry.
 * Header, content window and footer share one measured, centered track.
 * Source of truth is the rendered window, never a global fixed header width.
 */
body.um-focused-body { --um-focused-track-r468: 1020px; }
body.um-focused-body:is(.um-focused-page-account_login, .um-focused-page-password_recovery, .um-focused-page-staff_portal_login) { --um-focused-track-r468: 610px; }
body.um-focused-body.um-focused-page-account_security { --um-focused-track-r468: 930px; }
body.um-focused-body:is(.um-focused-page-offer_checkout, .um-focused-page-auction_checkout, .um-focused-page-payment_request_checkout) { --um-focused-track-r468: 860px; }
body.um-focused-body.um-merchant-onboarding-shell-r409:not(.um-merchant-approval-wall-page-r77) { --um-focused-track-r468: 1180px; }
/* The layout is built from the SAME shared grid track. No module may independently
 * set its own header or footer width. The JS measures the actual window where
 * a specialized workflow intentionally uses a narrower content surface. */
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > :is(.um-focused-topline, .um-focused-main, .um-focused-footer) {
  box-sizing: border-box !important;
  width: min(100%, var(--um-focused-track-r468)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main > .um-focused-window {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}
/* Merchant guided onboarding is deliberately a wider workflow (steps 1–8).
 * The approval wall has a separate, specialized header and remains untouched. */
body.um-focused-body.um-merchant-onboarding-shell-r409:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main > .um-focused-window {
  width: 100% !important;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  gap: 16px;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-brand-plaque {
  min-width: 0;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-footer-plaque {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
/* Preserve the solid import workspace introduced in 359R467. */
body.um-focused-product-import-r467 .um-focused-main > .um-focused-window {
  background: #E8F5F3 !important;
}
body.um-focused-product-import-r467 .um-focused-window :is(.um-focused-content, .um-focused-content-inner) {
  background: transparent !important;
}
@media (max-width: 760px) {
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 10px;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap !important;
    justify-content: center !important;
    white-space: normal;
    overflow-x: visible;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque > a {
    white-space: normal;
    text-align: center;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-footer-plaque {
    max-width: 100%;
  }
}

/* Canonical merge: source gene-focused-shared-track.css */
/* Developer & Lead Architect: Morris Robinson / morrisrobinson1688@aol.com
 * GENE 359R466 — ONE shared alignment track for all standard reduced pages.
 * Uses the existing focused layout markup. No page-specific duplicated shells.
 * 359R409's special merchant approval-wall layout is intentionally excluded:
 * it independently aligns the brand, language control, and approval status.
 */
body.um-focused-body { --um-focused-shared-track-r466: 1020px; }
body.um-focused-body:is(.um-focused-page-account_login,
  .um-focused-page-password_recovery,.um-focused-page-staff_portal_login) {
  --um-focused-shared-track-r466: 610px;
}
body.um-focused-body.um-focused-page-account_security { --um-focused-shared-track-r466: 930px; }
body.um-focused-body:is(.um-focused-page-offer_checkout,
  .um-focused-page-auction_checkout,.um-focused-page-payment_request_checkout) {
  --um-focused-shared-track-r466: 860px;
}
/* Steps of the standard merchant setup wizard retain their original large workspace. */
body.um-focused-body.um-merchant-onboarding-shell-r409:not(.um-merchant-approval-wall-page-r77) {
  --um-focused-shared-track-r466: 1180px;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > :is(.um-focused-topline,.um-focused-main,.um-focused-footer) {
  width: min(var(--um-focused-shared-track-r466), 100%) !important;
  max-width: 100% !important;
  min-width: 0;
  margin-inline: auto !important;
  box-sizing: border-box;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main {
  display: flex;
  justify-content: center;
  align-items: center;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main > .um-focused-window {
  flex: 0 1 auto;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin-inline: 0 !important;
  box-sizing: border-box;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline {
  justify-content: space-between;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-brand-plaque {
  min-width: 0;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-footer-plaque {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque {
    justify-content: center;
    flex-wrap: wrap !important;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    white-space: normal;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque > a {
    white-space: nowrap;
  }
}


/* Canonical merge: source gene-focused-shared-track.css */
/* Developer & Lead Architect: Morris Robinson / morrisrobinson1688@aol.com
 * GENE 359R467 — SINGLE authoritative track inside shared focused layout.
 * This stylesheet is embedded at render time in views/layouts/focused.php.
 * It does not depend on stale browser/PWA css caches. No module-specific shell.
 */
body.um-focused-body { --um-focused-track-r467: 1020px; }
body.um-focused-body.um-focused-page-account_login,
body.um-focused-body.um-focused-page-password_recovery,
body.um-focused-body.um-focused-page-staff_portal_login { --um-focused-track-r467: 610px; }
body.um-focused-body.um-focused-page-account_security { --um-focused-track-r467: 930px; }
body.um-focused-body.um-focused-page-offer_checkout,
body.um-focused-body.um-focused-page-auction_checkout,
body.um-focused-body.um-focused-page-payment_request_checkout { --um-focused-track-r467: 860px; }
body.um-focused-body.um-merchant-onboarding-shell-r409:not(.um-merchant-approval-wall-page-r77) { --um-focused-track-r467: 1180px; }
/* The header, panel and footer are three DIRECT children of the shared shell.
 * Width is controlled here once, not by independent portal templates.
 */
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline,
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main,
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-footer {
  box-sizing: border-box !important;
  width: min(100%, var(--um-focused-track-r467)) !important;
  max-width: 100% !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-main > .um-focused-window {
  flex: 0 1 auto;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline {
  display: flex;
  justify-content: space-between !important;
  align-items: center;
  gap: 16px;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-brand-plaque { min-width: 0; }
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-footer-plaque {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
/* Make the import wizard legible even over the photo background; preserve
 * other reduced pages' existing background options and merchant branding.
 */
body.um-focused-product-import-r467 .um-focused-main > .um-focused-window {
  background: #E8F5F3 !important;
}
body.um-focused-product-import-r467 .um-focused-window .um-focused-content,
body.um-focused-product-import-r467 .um-focused-window .um-focused-content-inner {
  background: transparent !important;
}
@media (max-width: 760px) {
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell > .um-focused-topline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 10px;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap !important;
    justify-content: center !important;
    white-space: normal;
    overflow-x: visible;
  }
  body.um-focused-body:not(.um-merchant-approval-wall-page-r77) .um-focused-shell .um-focused-actions-plaque > a {
    white-space: nowrap;
  }
}

