/* The mobile commerce home is a separate touch-first surface. Keep it out of
   desktop routes so the existing desktop home and feature layouts stay intact. */
.ljMobileCommerce {
  display: none !important;
}
.ljCommerceModalDemoToggle { display: none; }

@media (max-width: 760px) {
  html[data-lj-mobile-commerce-active] .appShell > .appMain {
    height: var(--lj-mobile-visual-height, 100dvh) !important;
    min-height: 0 !important;
  }

  html[data-lj-mobile-commerce-active] .appShell > .appMain > .pageContent {
    box-sizing: border-box !important;
    height: calc(var(--lj-mobile-visual-height, 100dvh) - var(--mobile-topbar-height, 62px) - var(--mobile-bottom-nav-height, 74px)) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom)) !important;
    background: #f7f7fb !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
  }
  html[data-lj-mobile-commerce-active] .appShell > .appMain > .pageContent::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html[data-lj-mobile-commerce-active] .appShell > .appMain > .pageContent [class*="mobileCommerceHome_"] {
    display: none !important;
  }

  html[data-lj-mobile-commerce-active] .ljMobileCommerce {
    box-sizing: border-box;
    display: block !important;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    padding: 0 16px calc(18px + env(safe-area-inset-bottom));
    overflow-x: clip;
    color: #24212d;
    background: #f7f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }

  html[data-lj-mobile-commerce-active] .ljMobileCommerce[data-lj-commerce-view="feature"] {
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  html[data-lj-mobile-commerce-active] .ljMobileCommerce *,
  html[data-lj-mobile-commerce-active] .ljCommerceActiveFeature {
    box-sizing: border-box;
  }

  .ljMobileCommerce :is(button, a) {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .ljMobileCommerce button {
    color: inherit;
    cursor: pointer;
  }

  .ljMobileCommerce button:focus-visible,
  .ljMobileCommerce a:focus-visible,
  .ljCommerceActiveFeature :is(button, a, [role="button"]):focus-visible {
    outline: 3px solid #8c6ce2;
    outline-offset: 2px;
  }

  .ljMobileCommerce :is(h1, h2, h3, p) {
    overflow-wrap: anywhere;
  }

  /* The commerce phone surface owns its header height while preserving native routes. */
  html[data-lj-mobile-commerce-active] .appShell {
    --mobile-topbar-height: 0px !important;
  }
  html[data-lj-mobile-commerce-active] .appShell:has(#main-navigation.mobileOpen) .appMain > header.ljAccountMenuRail,
  html[data-lj-mobile-commerce-active] .appShell .appMain > header.ljAccountMenuRail,
  html[data-lj-mobile-commerce-active] .appShell .appMain > header[class*="topbar"] {
    display: none !important;
  }
  html[data-lj-mobile-commerce-active] .appShell > .appMain > .pageContent,
  html[data-lj-mobile-commerce-active] .ljMobileCommerce {
    background: #fff !important;
  }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce {
    padding: 0 16px calc(12px + env(safe-area-inset-bottom));
    color: #181828;
  }

  .ljCommerceHeader {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0 0;
  }
  .ljCommerceBrand { min-width: 0; }
  .ljCommerceBrand strong {
    display: inline-flex;
    gap: 3px;
    color: #181828;
    font-size: 22px;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -.04em;
  }
  .ljCommerceBrand strong span:last-child { color: #171716; }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceHeader > .ljCommerceRecords {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 4px 0 8px;
    border: 0 !important;
    border-radius: 10px !important;
    color: #69687a !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 550;
    white-space: nowrap;
  }
  .ljCommerceRecordsIcon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }

  .ljCommerceHero {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 8px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 6px;
    overflow: hidden !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 18px !important;
    color: #191919;
    background: #fff !important;
    box-shadow: 0 4px 16px rgb(0 0 0 / 4%) !important;
    text-align: left;
    appearance: none;
  }
  .ljCommerceHero > .ljCommerceHeroCopy { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .ljCommerceHeroSource { grid-column: 1; grid-row: 2; display: flex; width: 100%; min-width: 0; }
  .ljCommerceHeroSourceLabel { color: #777 !important; font-size: 11px; font-weight: 500; line-height: 1.3; }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceHeroSourcePhoto {
    display: block !important; width: 48px !important; height: 48px !important;
    max-width: 100% !important; object-fit: cover !important; object-position: center !important;
    border: 1px solid #ebebeb !important; border-radius: 8px !important;
  }
  .ljCommerceHeroHeadline {
    display: block;
    min-width: 0;
    margin: 0;
    color: #181828;
    font-size: 17px;
    font-weight: 780;
    line-height: 1.25;
    letter-spacing: -.035em;
  }
  .ljCommerceHeroHeadline span { display: inline; white-space: nowrap; }
  .ljCommerceHeroHeadline span:first-child { color: #191919; }
  .ljCommerceHeroHeadline span:nth-child(n+2) { color: #191919; }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceHeroAction {
    display: inline-flex;
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    color: #fff !important;
    background: #191919 !important;
    box-shadow: none;
    font-size: 13px;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
  }
  .ljCommerceHeroArrow { display: block; width: 19px; height: 19px; flex: 0 0 19px; filter: brightness(0) invert(1); }
  .ljCommerceIllustrationSlot {
    display: grid;
    width: 100%;
    min-width: 0;
    height: 100%;
    place-items: center;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .ljCommerceIllustrationSlot img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .ljCommerceSectionHeading {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 9px;
  }
  .ljCommerceSectionHeading h2 { margin: 0; color: #181828; font-size: 20px; font-weight: 760; line-height: 1.35; }
  .ljCommerceSectionHeading > button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 4px 0 8px;
    border: 0;
    color: #777688;
    background: transparent;
    font-size: 14px;
    font-weight: 550;
    white-space: nowrap;
  }
  .ljCommerceGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%; min-width: 0; }
  .ljCommerceCard {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: 112px auto;
    align-content: start;
    gap: 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden !important;
    border: 1px solid #dcdade !important;
    border-radius: 14px;
    background: #fafafa !important;
    color: #181828;
    box-shadow: none !important;
    text-align: left;
  }
  .ljCommerceCard > .ljCommerceIllustrationSlot-card {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 112px;
    min-height: 0;
    overflow: hidden !important;
  }
  .ljCommerceCard > .ljCommerceProductVideoArt {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    background: #f0eef1;
  }
  .ljCommerceCard > .ljCommerceImagePreview { grid-template-columns: minmax(0,1fr); }
  .ljCommercePreviewPane { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; }
  .ljCommercePreviewPane + .ljCommercePreviewPane { border-left: 1px solid rgb(255 255 255 / 65%); }
  .ljCommercePreviewLabel {
    position: absolute; top: 5px; left: 5px; z-index: 1; padding: 2px 5px;
    border-radius: 5px; color: #292531; background: rgb(255 255 255 / 90%);
    font: 600 10px/1.3 system-ui, sans-serif; white-space: nowrap; pointer-events: none;
  }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceProductVideoArt img,
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceProductVideoArt video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 0 !important;
    border-radius: 0 !important;
    pointer-events: none !important;
  }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceCard > .ljCommerceIllustrationSlot-card > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  .ljCommerceHeroGallery {
    display: grid; grid-column: 1 / -1; grid-row: 1; width: 100%; min-width: 0;
    aspect-ratio: 2.05; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,1.06fr);
    grid-template-rows: repeat(2,minmax(0,1fr)); gap: 4px; pointer-events: none;
  }
  .ljCommerceGalleryTile, .ljCommerceGalleryDetail {
    position: relative; display: block; min-width: 0; min-height: 0;
    overflow: hidden; border: 1px solid #ededed; border-radius: 8px; background: #fafafa;
  }
  .ljCommerceGalleryDetail { grid-column: 4; grid-row: 1 / span 2; }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceGalleryLayer {
    position: absolute; inset: 0; display: block !important; width: 100% !important; height: 100% !important;
    max-width: 100% !important; max-height: 100% !important; object-fit: cover !important; object-position: center !important;
    opacity: 0; transition: opacity 700ms ease !important; border: 0 !important; border-radius: 0 !important;
  }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceGalleryLayer[data-active="true"] { opacity: 1; }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceGalleryLongImage {
    display: block !important; width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important;
    object-fit: contain !important; border: 0 !important; border-radius: 0 !important;
    animation: ljSuiteDetailScan 20s ease-in-out infinite alternate !important; animation-play-state: paused !important;
  }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce [data-motion="running"] .ljCommerceGalleryLongImage { animation-play-state: running !important; }
  @keyframes ljSuiteDetailScan {
    0%, 12% { transform: translate3d(0,0,0); }
    88%, 100% { transform: translate3d(0,var(--lj-suite-detail-travel,0px),0); }
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceGalleryLayer { transition: none !important; }
    html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceGalleryLongImage { animation: none !important; }
  }
  .ljCommerceCard > .ljCommerceCardCopy {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    background: #fcfcfd;
  }
  .ljCommerceCardCopy strong {
    display: block;
    min-width: 0;
    margin: 0;
    color: #19192b;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
  }
  .ljCommerceCard > .ljCommerceCardCopy { text-align: center; }
  .ljCommerceApiCard {
    display: grid; grid-template-columns: 58px minmax(0,1fr) 44px; align-items: center; gap: 10px; width: 100%; min-width: 0;
    margin-top: 12px; padding: 10px 12px; border: 1px solid #dcdade; border-radius: 14px;
    background: #fcfcfd; color: #171716; text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .ljCommerceApiIcon { position: relative; width: 58px; height: 60px; }
  .ljCommerceApiSource, .ljCommerceApiTarget { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
  .ljCommerceApiSource { top: 0; left: 0; background: #171716; color: #fff; font-size: 12px; font-weight: 700; }
  .ljCommerceApiTarget { bottom: 0; right: 0; z-index: 1; border: 1px solid #dcdade; background: #fff; box-shadow: 0 0 0 3px #fcfcfd; color: #171716; font: 750 15px/1 system-ui,sans-serif; }
  .ljCommerceApiConnector { position: absolute; z-index: 2; top: 21px; left: 23px; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #fcfcfd; transform: rotate(45deg); }
  .ljCommerceApiCopy { display: grid; min-width: 0; gap: 8px; }
  .ljCommerceApiCopy strong { font-size: 16px; font-weight: 700; line-height: 1.4; }
  .ljCommerceApiCapabilities { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #777771; }
  .ljCommerceApiCapabilities > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.4; white-space: nowrap; }
  .ljCommerceApiCapabilities img { display: block; width: 13px; height: 13px; opacity: .65; }
  .ljCommerceApiAction { display: grid; justify-items: center; gap: 4px; color: #55554f; font-size: 11px; line-height: 1.2; }
  .ljCommerceApiActionIcon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #171716; }
  .ljCommerceApiArrow { display: block; width: 20px; height: 20px; filter: brightness(0) invert(1); }
  .ljCommerceApiCard:active .ljCommerceApiActionIcon { background: #3a3a37; }
  .ljCommerceAutoHitVideoCard[hidden] { display: none !important; }
  .ljCommerceAutoHitVideoCard {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0;
    margin-top: 12px; padding: 14px 14px 14px 16px; border: 1px solid #e4d9ef; border-radius: 16px;
    background: linear-gradient(120deg,#fff 0%,#fbf8ff 100%); color: #282431; text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .ljCommerceAutoHitVideoCopy { display: grid; min-width: 0; gap: 3px; }
  .ljCommerceAutoHitVideoEyebrow { color: #7a56a0; font-size: 11px; font-weight: 700; line-height: 1.4; }
  .ljCommerceAutoHitVideoCopy strong { color: #282431; font-size: 16px; font-weight: 720; line-height: 1.4; }
  .ljCommerceAutoHitVideoHighlight { color: #6f41a7; background: linear-gradient(transparent 62%,#e8d9ff 62%); }
  .ljCommerceAutoHitVideoCopy small { color: #716d7b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .ljCommerceAutoHitVideoAction { flex: 0 0 auto; border-radius: 10px; padding: 9px 11px; background: #6f41a7; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .ljCommerceAutoHitVideoCard:active .ljCommerceAutoHitVideoAction { background: #4f2b7d; }
  .ljCommerceCardCopy small {
    display: block;
    min-width: 0;
    margin: 0;
    color: #77778a;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .ljCommerceHelp { display: none !important; }

  .ljCommerceToolGroups { display: grid; gap: 9px; width: 100%; min-width: 0; margin-top: 16px; }
  .ljCommerceToolGroups[hidden] { display: none !important; }
  .ljCommerceToolGroups > h2 { margin: 0 0 4px; color: #302d34; font-size: 16px; }
  .ljCommerceToolTabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 4px; border-radius: 14px; background: #f0eef5; }
  .ljCommerceToolTabs > button { min-height: 44px; border: 0; border-radius: 10px; color: #71677f; background: transparent; font-size: 13px; font-weight: 600; }
  .ljCommerceToolTabs > button[aria-selected="true"] { color: #6742ad; background: #fff; box-shadow: 0 2px 8px #3024450b; }
  .ljCommerceToolRow { grid-template-columns: 44px minmax(0,1fr) 16px; min-height: 70px; margin-bottom: 0; border-color: #ece7df; border-radius: 15px; background: #fff; }
  .ljCommerceToolRow > .ljCommerceIllustrationSlot-row { grid-column: 1; grid-row: 1; }
  .ljCommerceToolRow > .ljCommerceCardCopy { display: grid; grid-column: 2; grid-row: 1; }
  .ljCommerceToolRow .ljCommerceCardCopy strong { color: #302c34; font-size: 14px; }
  .ljCommerceToolRow .ljCommerceCardCopy small { color: #746f79; font-size: 12px; white-space: normal; }

  .ljCommerceToolbar {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 8px 0 14px;
  }

  .ljCommerceToolbar > button,
  .ljCommerceDetailNav > button {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #e7e3ed;
    border-radius: 13px;
    color: #574a70;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
  }

  .ljCommerceToolbar h1 {
    min-width: 0;
    margin: 0;
    color: #26232e;
    font-size: 21px;
    font-weight: 740;
    line-height: 1.3;
  }

  .ljCommerceToolGroups {
    display: grid;
    gap: 22px;
    width: 100%;
    min-width: 0;
  }

  .ljCommerceToolGroups > section {
    min-width: 0;
  }

  .ljCommerceToolGroups h2 {
    margin: 0 0 9px;
    color: #33303a;
    font-size: 17px;
    font-weight: 730;
    line-height: 1.4;
  }

  .ljCommerceToolRow {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 72px;
    margin: 0 0 9px;
    padding: 10px 12px;
    border: 1px solid #ebe8f0;
    border-radius: 16px;
    color: #2c2933;
    background: #fff;
    text-align: left;
  }

  .ljCommerceToolRow > .ljCommerceCardCopy {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    margin: 0;
  }

  .ljCommerceToolRow .ljCommerceCardCopy strong {
    min-width: 0;
    color: #2a2731;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  .ljCommerceToolRow .ljCommerceCardCopy small {
    min-width: 0;
    margin-top: 2px;
    color: #7d7886;
    font-size: 13px;
    line-height: 1.4;
  }

  .ljCommerceToolRow::after {
    grid-column: 3;
    grid-row: 1;
    color: #aaa4b2;
    content: "›";
    font-size: 23px;
    line-height: 1;
  }

  .ljCommerceDetailNav {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
  }

  .ljCommerceDetailNav > strong {
    flex: 1 1 auto;
    min-width: 0;
    color: #302c38;
    font-size: 15px;
    font-weight: 700;
  }

  .ljCommerceDetailNav > button:last-child {
    min-width: 80px;
    padding-inline: 10px;
    color: #7152b7;
    border-color: #e4def0;
  }

  .ljCommerceDemoToggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #e6e1ed;
    border-radius: 13px;
    color: #5f4c86;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
  }

  .ljCommerceUnavailable {
    margin: 10px 0;
    padding: 16px;
    border: 1px solid #ebe7f0;
    border-radius: 15px;
    color: #746f7c;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
  }

  /* The host owns the feature DOM and handlers; only the selected section is
     presented as the active mobile detail view. */
  html[data-lj-mobile-commerce-active] [data-lj-commerce-page][data-lj-commerce-view="feature"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  html[data-lj-mobile-commerce-active] [data-lj-commerce-page][data-lj-commerce-view="feature"] > .ljCommerceActiveFeature {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  .ljCommerceActiveFeature,
  .ljCommerceActiveFeature :is(section, article, form, fieldset, div) {
    min-width: 0;
    max-width: 100%;
  }

  .ljCommerceActiveFeature :is(img, video, canvas, svg) {
    max-width: 100%;
  }

  .ljCommerceActiveFeature [class*="replicaSection_"],
  .ljCommerceActiveFeature [class*="replicaIntro_"],
  .ljCommerceActiveFeature [class*="replicaFlow_"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .ljCommerceActiveFeature [class*="replicaSection_"] {
    margin-inline: 0 !important;
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }

  .ljCommerceActiveFeature [class*="replicaIntro_"] {
    margin-inline: 0 !important;
  }

  .ljCommerceActiveFeature [class*="replicaIntro_"] h2,
  .ljCommerceActiveFeature [class*="replicaSection_"] h2,
  .ljCommerceActiveFeature .cfsFull :is(h1, h2, h3) {
    max-width: 100%;
    font-size: min(22px, 6vw) !important;
    line-height: 1.38 !important;
    overflow-wrap: anywhere;
  }

  .ljCommerceActiveFeature [class*="replicaIntro_"] :is(p, li),
  .ljCommerceActiveFeature [class*="replicaSection_"] :is(p, li),
  .ljCommerceActiveFeature .cfsFull :is(p, li) {
    font-size: 15px !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere;
  }

  .ljCommerceActiveFeature [class*="replicaFlow_"] {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    grid-auto-columns: minmax(220px, 82vw) !important;
    scroll-padding-inline: 0 !important;
  }

  .ljCommerceActiveFeature [class*="replicaFlow_"] > * {
    min-width: 0;
    max-width: 100%;
  }

  .ljCommerceActiveFeature [class*="replicaAction_"] button,
  .ljCommerceActiveFeature [class*="replicaAction_"][role="button"],
  .ljCommerceActiveFeature .cfsFull-upload button {
    box-sizing: border-box !important;
    min-height: 44px !important;
  }

  .ljCommerceActiveFeature .cfsFull {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    padding: 18px 14px !important;
    overflow-x: clip !important;
  }

  .ljCommerceActiveFeature .cfsFull-workflow {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
  }

  .ljCommerceActiveFeature .cfsFull-mainGrid,
  .ljCommerceActiveFeature .cfsFull-skuGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .ljCommerceActiveFeature .cfsFull-mainTile > span,
  .ljCommerceActiveFeature .cfsFull-skuTile > span {
    min-height: 44px;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .ljCommerceActiveFeature .cfsFull-detailViewport {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(300px, 52vh, 470px) !important;
  }
}
/* Keep the existing feature components mounted; only show the selected screen.
   Never hide the host main itself: its dialog siblings contain selected files. */
@media (max-width: 760px) {
  html[data-lj-mobile-commerce-active] [data-lj-commerce-page] {
    box-sizing: border-box !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 16px 24px !important;
    background: transparent !important;
    overflow: visible !important;
  }
  html[data-lj-mobile-commerce-active] [data-lj-commerce-page] > section:not(.ljCommerceActiveFeature),
  html[data-lj-mobile-commerce-active] [data-lj-commerce-page] > [class*="featureGalleryBoundary_"] {
    display: none !important;
  }
  html[data-lj-mobile-commerce-active] .ljMobileCommerce[data-lj-commerce-view="feature"] {
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  .ljCommerceActiveFeature.ljCommerceActiveFeature {
    margin: 0 !important;
    padding: 18px 16px !important;
    border: 1px solid #ece9f1 !important;
    border-radius: 18px !important;
    background: #fff !important;
  }
  .ljCommerceActiveFeature .ljCommerceOptionalDemo { display: none !important; }
  .ljCommerceActiveFeature[data-lj-commerce-demo="true"] .ljCommerceOptionalDemo { display: grid !important; }
  .ljCommerceDemoToggle { margin: 0 0 14px; min-height: 44px; font-size: 13px; }
  .ljCommerceActiveFeature :is(textarea,input[type="text"]) { font-size: 16px !important; max-width: 100%; }
  .ljCommerceActiveFeature [class*="replicaAction_"] { min-height: 48px !important; }
  /* Give the original video configuration its own usable mobile screen. */
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay):not(.ao-commerce-embedded) {
    top: var(--lj-mobile-visual-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--lj-mobile-visual-height, 100dvh) !important;
    padding: 0 !important;
  }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay):not(.ao-commerce-embedded) > .lj-commerce-video-setup-page {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) .lj-commerce-video-setup-header {
    flex-shrink: 0;
    padding: max(12px,env(safe-area-inset-top)) 16px 12px !important;
  }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) .lj-commerce-video-setup-body {
    flex: 1 1 auto;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) :is(input,textarea) { font-size: 16px !important; }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) :is(.lj-commerce-video-choice,.lj-commerce-video-option,.lj-commerce-video-mode-options > button,.lj-commerce-video-dropzone,.lj-commerce-video-close) {
    min-height: 44px !important;
  }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) .lj-commerce-video-setup-footer {
    flex-shrink: 0;
    gap: 10px !important;
    padding: 12px 14px max(12px,env(safe-area-inset-bottom)) !important;
  }
  .lj-commerce-video-summary { min-width: 0; }
  .lj-commerce-video-summary :is(b,small) { white-space: normal; overflow-wrap: anywhere; }
  .ljCommerceModalDemoToggle {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid #e8e4ee;
    border-radius: 12px;
    background: #faf9fc;
    color: #65547a;
    font: 600 13px/1.5 system-ui,sans-serif;
    text-align: left;
  }
  .ljCommerceCollapsedDemo:not([data-lj-demo-open="true"]) { display: none !important; }
  .appShell .pageContent:has(> .creationHistorySpace) {
    height: calc(var(--lj-mobile-visual-height,100dvh) - var(--mobile-topbar-height,62px) - var(--mobile-bottom-nav-height,74px)) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
  }
  .appShell .creationHistorySpace {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7f7fb !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .creationHistorySpace .creationHistoryHero { padding: 0 !important; background: transparent !important; }
  .creationHistorySpace .creationHistoryHero h1 { font-size: 24px !important; line-height: 1.35 !important; }
  .creationHistorySpace .creationHistoryHero p { font-size: 13px !important; line-height: 1.65 !important; }
  .creationHistorySpace .creationHistoryHero button { min-height: 44px; font-size: 13px !important; }
  .creationHistorySpace .creationHistoryNotice { padding: 12px !important; font-size: 12px !important; line-height: 1.6 !important; }
  .creationHistorySpace .creationHistoryNotice :is(strong,p,span) { font-size: 12px !important; line-height: 1.6 !important; }
  .creationHistorySpace :is(.creationHistoryTabs,.creationHistoryFilters) button { min-height: 44px; font-size: 13px !important; }
  .creationHistorySpace .creationHistoryEmpty { min-height: 220px !important; margin-bottom: 16px; padding: 32px 16px !important; background: #fff; }
  .creationHistorySpace .creationHistoryEmpty strong { font-size: 15px !important; line-height: 1.6 !important; }
  .creationHistorySpace .creationHistoryEmpty p { font-size: 13px !important; line-height: 1.6 !important; }
}
@media (max-width: 360px) {
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) .lj-commerce-video-setup-footer { flex-direction: column; align-items: stretch; }
  .lj-commerce-video-setup-overlay:not(.aoSuiteConfigOverlay) .lj-commerce-video-continue { width: 100%; min-height: 48px; }
}

@media (max-width: 380px) {
    html[data-lj-mobile-commerce-active] .ljMobileCommerce { padding-right: 12px; padding-left: 12px; }
    .ljCommerceHero { grid-template-columns: 44px minmax(0,1fr) auto; }
    .ljCommerceHeroHeadline { font-size: 16px; }
    html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceHeroSourcePhoto { width: 44px !important; height: 44px !important; }
    .ljCommerceCard { grid-template-rows: 106px auto; }
    .ljCommerceCard > .ljCommerceIllustrationSlot-card { height: 106px; }
    .ljCommerceCard > .ljCommerceCardCopy { padding-right: 10px; padding-left: 10px; }
    .ljCommerceCardCopy strong { font-size: 14px; }
    .ljCommerceCardCopy small { font-size: 12px; }
  }
@media (max-width: 340px) {
    .ljCommerceHeader { min-height: 48px; }
    .ljCommerceBrand strong { font-size: 20px; }
    .ljCommerceHeroSource { width: 44px; }
    .ljCommerceHeroHeadline { font-size: 15px; }
    html[data-lj-mobile-commerce-active] .ljMobileCommerce .ljCommerceHeroAction { padding-right: 10px; padding-left: 10px; font-size: 12px; }
    .ljCommerceHeroArrow { width: 17px; height: 17px; flex-basis: 17px; }
    .ljCommerceGrid { gap: 9px; }
    .ljCommerceCard { grid-template-rows: 92px auto; }
    .ljCommerceCard > .ljCommerceIllustrationSlot-card { height: 92px; }
    .ljCommerceCard > .ljCommerceCardCopy { padding-right: 8px; padding-left: 8px; }
    .ljCommerceCardCopy strong { font-size: 14px; }
    .ljCommerceCardCopy small { font-size: 12px; }
  }

@media (max-width: 760px) {
  /* The compact home hides the account rail, but its native dialog must stay visible. */
  html[data-lj-mobile-commerce-active] :is(.appShell:has(#main-navigation.mobileOpen), .appShell) .appMain > header.ljAccountMenuRail:has([data-account-menu], .ljAccountSupportDialog[open]) {
    display: block !important; position: fixed !important; inset: 0 !important;
    width: 100% !important; height: 0 !important; min-height: 0 !important;
    padding: 0 !important; border: 0 !important; background: transparent !important;
    z-index: 1400 !important; pointer-events: none;
  }
  html[data-lj-mobile-commerce-active] :is(.appShell:has(#main-navigation.mobileOpen), .appShell) header.ljAccountMenuRail:has([data-account-menu])::before {
    content: "" !important; display: block !important; position: fixed !important; inset: 0 !important;
    width: 100vw !important; height: var(--lj-mobile-visual-height, 100dvh) !important;
    background: rgb(20 18 30 / .35); pointer-events: auto;
  }
  html[data-lj-mobile-commerce-active] header.ljAccountMenuRail:has([data-account-menu], .ljAccountSupportDialog[open]) > :not([class*="topbarActions"]):not(.ljCommerceAccountClose):not(.ljAccountSupportDialog),
  html[data-lj-mobile-commerce-active] :is(.appShell:has(#main-navigation.mobileOpen), .appShell) .appMain > header.ljAccountMenuRail:has([data-account-menu]) > [class*="topbarActions"] > :not([data-account-menu]) { display: none !important; }
  html[data-lj-mobile-commerce-active] header.ljAccountMenuRail > [class*="topbarActions"] { position: static !important; }
  html[data-lj-mobile-commerce-active] header.ljAccountMenuRail:has(.ljAccountSupportDialog[open]) > [class*="topbarActions"] { display: none !important; }
  html[data-lj-mobile-commerce-active] :is(.appShell:has(#main-navigation.mobileOpen), .appShell) .appMain > header.ljAccountMenuRail [data-account-menu] {
    position: fixed !important; inset: 24px 12px auto !important; width: auto !important;
    max-height: calc(var(--lj-mobile-visual-height, 100dvh) - 48px) !important;
    overflow-y: auto !important; overscroll-behavior: contain; pointer-events: auto;
    margin: 0 !important; border-radius: 22px !important; z-index: 1 !important;
  }
  html[data-lj-mobile-commerce-active] :is(.appShell:has(#main-navigation.mobileOpen), .appShell) header.ljAccountMenuRail > .ljCommerceAccountClose {
    display: flex !important; align-items: center; justify-content: center;
    position: fixed !important; inset: 34px 24px auto auto !important; z-index: 2 !important;
    width: auto !important; min-width: 44px !important; height: 44px !important;
    min-height: 44px !important; padding: 0 10px !important; margin: 0 !important; border: 1px solid #eeebf2 !important;
    border-radius: 12px !important; background: #fff !important; color: #292531 !important; pointer-events: auto;
    font: 600 13px/1.4 system-ui, sans-serif !important;
  }
  /* The native support dialog is rendered beside the account panel. Keep its
     React-owned host alive after the account panel closes, and clickable above
     the overlay's pointer-events:none surface. */
  html[data-lj-mobile-commerce-active] header.ljAccountMenuRail:has(.ljAccountSupportDialog[open]) > .ljAccountSupportDialog {
    pointer-events: auto !important;
  }
  .ljCommerceMoreUtilities { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #eeebf2; }
  .ljCommerceMoreUtilities h2 { margin: 0 0 10px; color: #777280; font: 600 12px/1.4 system-ui, sans-serif; }
  .ljCommerceUtilitiesGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ljCommerceUtilitiesGrid button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 60px; padding: 10px 12px; color: #292531; background: #f8f6fb; border: 0; border-radius: 12px; text-align: left; font-family: inherit; touch-action: manipulation; }
  .ljCommerceUtilitiesGrid strong { font-size: 13px; line-height: 1.35; }
  .ljCommerceUtilitiesGrid small { color: #8b8593; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
  .ljCommerceUtilitiesGrid button:active { background: #efebf8; }
  .ljCommerceUtilitiesGrid button:focus-visible { outline: 3px solid #a489f6; outline-offset: 2px; }
  .ljCommerceUtilitiesGrid button:disabled { opacity: .5; }
}
