/* F14: Looply-1.1 / 9272:73. Loaded only by the home route and iPad media. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="home-page-root"] [data-ui-part="home-hero"] h1 { font-size: 2.25rem !important; line-height: 1.25 !important; }
    [data-ui-part="home-hero-copy-content"] { margin-left: 0 !important; padding-inline: 3rem; }
    [data-ui-part="home-hero-copy-text"] { max-width: 21.875rem; }
    [data-ui-part="home-hero-copy-text"] p { max-width: 18.875rem; margin-top: 1rem; font-size: .875rem !important; line-height: 1.45; }
    [data-ui-part="home-page-root"] [data-ui-part="home-hero-cta-link"] { margin-top: 1.5rem !important; padding: .75rem 1rem !important; font-size: .75rem !important; }
    [data-ui-part="home-mobile-confidence"] { display: none; }
    [data-ui-part="home-tablet-authentication"] { display: block; padding: 2.25rem 2rem; }
    [data-ui-part="home-tablet-authentication"] > div:first-child { margin-bottom: 2rem; }
    [data-ui-part="home-tablet-authentication"] > div:first-child :is(p, a) { font-size: .875rem !important; }
    [data-ui-part="home-tablet-authentication"] h2 { font-size: 1.5rem !important; }
    [data-ui-part="home-tablet-authentication"] > div:last-child { gap: .8125rem; grid-template-rows: repeat(2, minmax(8.75rem, auto)); }
    [data-ui-part="home-tablet-authentication"] article { min-height: 8.75rem; }
    [data-ui-part="home-tablet-authentication"] article:first-child > div:first-child { height: 8.75rem; }
    [data-ui-part="home-tablet-authentication"] article:last-child > div:last-child { min-height: 8.75rem; }
    [data-ui-part="home-tablet-authentication"] article h3 { font-size: .875rem !important; }
    [data-ui-part="home-tablet-authentication"] article p { font-size: .75rem !important; line-height: 1.45; }
    [data-ui-part="home-collections"][data-surface="h5"] { padding-block: 2.25rem 1.25rem; }
    [data-ui-part="home-collections"][data-surface="h5"] h2 { padding-inline: 2rem; font-size: 1.5rem !important; }
    [data-ui-part="home-collections"][data-surface="h5"] [data-ui-part="home-collections-track"] { margin-top: 1.5rem; gap: 1.25rem; padding-inline: 2rem; scroll-padding-inline: 2rem; }
    [data-ui-part="home-collections"][data-surface="h5"] [data-ui-part="home-collections-track"] > a { width: 17.5rem !important; height: 22.3125rem !important; }
    [data-ui-part="home-collections"][data-surface="h5"] h3 { font-size: 1rem !important; }
    [data-ui-part="home-collections"][data-surface="h5"] [data-ui-part="home-collection-subtitle"] { font-size: .75rem !important; }
    [data-ui-part="home-collections"][data-surface="h5"] [data-ui-part="home-collections-track"] > a > span { font-size: .875rem !important; }
    [data-ui-part="home-collections-scroll-indicator"] {
      width: min(var(--ipad-track-width), calc(100vw - 64px)) !important;
      background: #cacaca;
    }
    [data-ui-part="home-collections-scroll-indicator"] > [data-ui-part="home-collections-scroll-thumb"] {
      width: 40px !important;
      transform: translateX(calc((min(var(--ipad-track-width), 100vw - 64px) - 40px) * var(--ipad-scroll-progress, 0))) !important;
    }
    [data-ui-part="home-collections"][data-surface="h5"] [data-ui-part="home-collections-scroll-indicator"]:is(*) {
      border-radius: 2px;
    }
    [data-ui-part="home-collections"][data-surface="h5"] div:has(> [data-ui-part="home-collections-scroll-indicator"]) {
      margin-top: 20px;
      height: 18px;
    }
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] { padding-top: 2.25rem; }
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] :is([data-ui-part="home-feed-grid"], [data-ui-part="home-feed-skeleton-grid"]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; column-gap: 1.25rem; row-gap: 1.5rem; padding-inline: 2rem; }
    [data-ui-part="home-feed"][data-feed-context="home"] [data-ui-part="product-card-title"] { font-size: .875rem !important; }
    [data-ui-part="home-feed"][data-feed-context="home"] :is([data-ui-part="product-card-details"], [data-ui-part="product-card-detail-stack"], [data-ui-part="product-card-copy"], [data-ui-part="product-card-pricing"]) { align-items: flex-start; text-align: left; }
    [data-ui-part="home-feed"][data-feed-context="home"] [data-ui-part="product-card-copy"] > p { font-size: .875rem !important; }
    [data-ui-part="home-feed"][data-feed-context="home"] [data-ui-part="product-card-current-price"] { font-size: 1rem !important; }
    [data-ui-part="home-feed"][data-feed-context="home"] [data-ui-part="product-card-sold-out-badge"] { font-size: .625rem !important; }
  }
}

@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="home-tablet-authentication-cta"] { display: inline-flex; align-items: center; gap: 8px; color: #070707; font-size: 14px !important; line-height: 20px; text-decoration: none; }
    [data-ui-part="home-tablet-authentication-cta"] svg { flex: none; }
  }
}

/* F14-f: reserve the third slot for the story card on portrait iPad. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] [data-ui-part="home-feed-grid"] > [data-ui-part="home-for-you-promo-card"] {
      grid-column: 3;
      grid-row: 1;
      height: calc((100vw - 104px) / 3 + 138px);
      background: #f9f9f9;
    }
    [data-ui-part="home-for-you-promo-card"] [data-ui-part="home-promo-original-image"] { opacity: 0; }
    [data-ui-part="home-for-you-promo-card"] [data-ui-part="home-promo-ipad-content"] { display: block; }
    [data-ui-part="home-promo-ipad-art"] {
      position: absolute;
      top: 57px;
      left: 50%;
      width: 330px;
      height: 330px;
      transform: translateX(-50%);
      background: url('/home/for-you/ipad-story-art.png') center / contain no-repeat;
    }
    [data-ui-part="home-promo-ipad-title"] {
      position: absolute;
      top: 28px;
      left: 20px;
      right: 20px;
      color: #5f5f5f;
      font-size: 18px;
      font-weight: 600;
      line-height: 22.5px;
      text-align: center;
    }
    [data-ui-part="home-promo-ipad-button"] {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      padding: 4px 16px;
      border-radius: 4px;
      background: white;
      color: #5f5f5f;
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
      white-space: nowrap;
    }
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] [data-ui-part="home-feed-grid"] > [data-home-feed-product-code] {
      min-height: calc((100vw - 104px) / 3 + 138px);
    }
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] [data-ui-part="product-card-details"] {
      margin-top: 16px;
      padding-inline: 0;
      gap: 10px !important;
    }
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] [data-ui-part="product-card-brand-linebox"] {
      font-size: 14px !important;
      line-height: 20px;
    }
    [data-ui-part="home-feed"][data-surface="h5"][data-feed-context="home"] [data-ui-part="product-card-title"] {
      height: 40px !important;
      min-height: 40px !important;
      max-height: 40px !important;
      line-height: 20px;
    }
  }
}
