@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-method-switcher"],
  [data-ui-part="sell-method-single"],
  [data-ui-part="sell-methods-desktop"] {
    display: none !important;
  }

  [data-ui-part="sell-method-tablet-track"] {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-top: 1rem;
  }

  [data-ui-part="sell-method-tablet-track"]::-webkit-scrollbar {
    display: none;
  }

  [data-ui-part="sell-method-tablet-track"] > article {
    flex: 0 0 37.5rem;
    scroll-snap-align: start;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-media"] {
    height: 21.125rem;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-steps"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-step"] {
    height: auto;
  }
}

@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-home"] :is(section, [data-ui-part="sell-preparation-desktop"], [data-ui-part="sell-payment-desktop"]) { min-width: 0; }
  [data-ui-part="sell-home"] > div > section:not([data-ui-part="sell-hero"]):not([data-ui-part="sell-bottom-cta"]),
  [data-ui-part="sell-preparation"], [data-ui-part="sell-payment"] { padding: 2.25rem 2rem; }
  [data-ui-part="sell-home"] :is(h2, h2 span) { font-size: 1.5rem !important; }
  [data-ui-part="sell-home"] h3 { font-size: 1rem !important; }
  [data-ui-part="sell-home"] p { font-size: .875rem !important; }
  [data-ui-part="sell-brands-copy"] > div > div > p { font-size: .75rem !important; }
  [data-ui-part="sell-home"] :is([data-ui-part$="eyebrow"], [data-ui-part$="eyebrow"] span) { font-size: .75rem !important; }
  [data-ui-part="sell-hero"] { height: 29.375rem; min-height: 0; padding-bottom: 1.875rem; }
  [data-ui-part="sell-hero-banner"] { position: absolute; inset: 0 0 1.875rem; height: auto; }
  [data-ui-part="sell-hero-banner"] img:first-child { display: none; }
  [data-ui-part="sell-hero-banner"] img:last-child { display: block; }
  [data-ui-part="sell-hero-overlay"] { display: block; width: calc(100vw * 444 / 834); bottom: 1.875rem; }
  [data-ui-part="sell-hero-content"] { display: flex; align-items: center; height: 27.5rem; padding: 0 calc(100vw * 32 / 834); background: transparent; }
  [data-ui-part="sell-hero-copy"] { width: calc(100vw * 368 / 834); }
  [data-ui-part="sell-hero-title"] { max-width: 17.9375rem; line-height: 1.45 !important; }
  [data-ui-part="sell-hero-description"] { margin-top: .75rem; color: white; }
  [data-ui-part="sell-hero-method-line"] { font-size: .875rem !important; color: white; }
  [data-ui-part="sell-hero-actions"] { display: flex; gap: 1rem; margin-top: 1.5rem; }
  [data-ui-part="sell-hero-actions"] > * { padding-inline: 2rem; font-size: 1rem !important; }
  [data-ui-part="sell-benefits"] { height: auto; }
  [data-ui-part="sell-benefits-grid"] { height: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; }
  [data-ui-part="sell-benefit-card"] { height: auto; min-height: 10.9375rem; padding: 1rem; border: 0; border-radius: .25rem; background: white; }
  [data-ui-part="sell-benefit-copy"] { margin-top: .75rem; gap: .25rem; }
  [data-ui-part="sell-home"] [data-ui-part="sell-benefit-copy"] h2 { font-size: 1rem !important; }
  [data-ui-part="sell-benefit-copy"] p { font-size: .875rem !important; margin-top: 0; }
  [data-ui-part="sell-method-tablet-track"] { margin-right: -2rem; padding-right: 2rem; }
  [data-ui-part="sell-method-mobile-body"] { gap: 1.5rem; }
  [data-ui-part="sell-method-tablet-track"] :is(h3, h4) { font-size: 1.25rem !important; }
  [data-ui-part="sell-method-tablet-track"] h5 { font-size: 1rem !important; white-space: normal; }
  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-description"] { font-size: 1rem !important; }
  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-step-description"] { font-size: .875rem !important; }
  [data-ui-part="sell-method-tablet-track"] :is([data-ui-part="sell-method-mobile-badge"], [data-ui-part="sell-method-visit-address"] p) { font-size: .75rem !important; }
  [data-ui-part="sell-brands-layout"] { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; }
  [data-ui-part="sell-brands-copy"] { height: auto; width: 100%; gap: 0; }
  [data-ui-part="sell-brands-copy"] > div { gap: .75rem; }
  [data-ui-part="sell-brands-copy"] [data-ui-part="sell-brands-view-all"] { display: none; }
  [data-ui-part="sell-brands-layout"] > [data-ui-part="sell-brands-view-all"] { display: inline-flex; font-size: 1rem; }
  [data-ui-part="sell-brand-marquee-track"] { font-size: 1rem; }
  [data-ui-part="sell-brand-marquee-sequence"] { gap: 1rem; padding-right: 1rem; }
  [data-ui-part="sell-preparation-payment-sequence"] { display: flex; flex-direction: column; }
  [data-ui-part="sell-payment"] { order: 1; background: white; }
  [data-ui-part="sell-referral-slot"] { order: 2; }
  [data-ui-part="sell-preparation"] { order: 3; background: #f9f9f9; }
  [data-ui-part="sell-preparation-mobile"], [data-ui-part="sell-payment-mobile"] { display: none; }
  [data-ui-part="sell-preparation-desktop"], [data-ui-part="sell-payment-desktop"] { display: flex; flex-direction: column; gap: 1.5rem; padding: 0; }
  [data-ui-part="sell-preparation-desktop"] > div { align-items: flex-start; text-align: left; }
  [data-ui-part="sell-preparation-desktop"] :is(h2, h3, p) { width: auto; white-space: normal; }
  [data-ui-part="sell-preparation-desktop-steps"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  [data-ui-part="sell-preparation-desktop-step"] { height: auto; padding: 1rem; }
  [data-ui-part="sell-payment-desktop-heading"] { height: auto; gap: .5rem; }
  [data-ui-part="sell-payment-desktop-content"] { display: grid; height: auto; grid-template-columns: 1fr 1fr; gap: 1rem; }
  [data-ui-part="sell-payment-desktop-steps"] { height: auto; gap: 1.5rem; }
  [data-ui-part="sell-payment-desktop-step"] { padding-block: 0; }
  [data-ui-part="sell-payment-desktop-step"] p { font-size: .875rem !important; }
  [data-ui-part="sell-payment-desktop-media"] { height: auto; min-height: 15.125rem; }
  [data-ui-part="sell-faq-preview-pc-cta"] { display: none; }
  [data-ui-part="sell-faq-preview"] > a:last-child { display: flex; font-size: 1rem; }
  [data-ui-part="sell-faq-item"] summary { font-size: 1rem !important; }
  [data-ui-part="sell-bottom-cta"] { height: 20rem; }
  [data-ui-part="sell-bottom-cta-content"] { padding-inline: 2rem; gap: 1.5rem; }
  [data-ui-part="sell-bottom-cta-description"] { white-space: normal; }
  [data-ui-part="sell-referral-banner"] { padding-block: 1.5rem; }
  [data-ui-part="sell-referral-banner"] > div { flex-direction: row; justify-content: space-between; gap: 1.5rem; text-align: left; }
  [data-ui-part="sell-referral-banner-title"] { font-size: 1.5rem !important; }
  [data-ui-part="sell-referral-banner-cta"] { margin-top: 0; font-size: 1rem !important; }
  [data-ui-part="seller-discount-announcement"] { padding-inline: 2rem; font-size: .875rem !important; }

}

/* Important declarations in the existing route layer take precedence over
   unlayered important rules, so override the benefit title in that layer. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-benefit-copy"] h2 { font-size: 1rem !important; }
  }
}

@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-method-tablet-track"] > article { position: relative; }
  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-visit-address"] {
    position: absolute;
    top: 18.125rem;
    left: .5rem;
    width: calc(100% - 1rem);
    padding: .5rem .75rem;
    background: rgb(255 255 255 / 92%);
  }
  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-visit-address"] p { color: #070707; }
}
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-visit-address"] p { font-size: 1rem !important; }
  }
}

/* Match the route-components important layer without changing its PC/H5 rules. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-faq-preview"] > div:first-child h2,
    [data-ui-part="sell-home"] [data-ui-part="sell-bottom-cta"] h2,
    [data-ui-part="sell-home"] [data-ui-part="sell-hero"] h1,
    [data-ui-part="accepted-brands"] h1,
    [data-ui-part="sell-faq"] h1 { font-size: 1.5rem !important; }
    [data-ui-part="accepted-brands"] nav[aria-label] h2,
    [data-ui-part="accepted-brands"] section[aria-live] h2,
    [data-ui-part="sell-faq"] section > h2 { font-size: 1.5rem !important; }
  }
}
@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-preparation"] > div:nth-child(2) { padding-inline: 0; }
}

/* Service area and hero method line: iPad portrait only. */
@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="service-area"] > [data-ui-part="service-area-content-rail"] {
    padding-inline: 2rem;
  }
}

@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-hero-method-line"] {
      color: #fff !important;
      font-family: var(--font-sans) !important;
      font-size: .875rem !important;
      font-weight: 400 !important;
      line-height: 1.45 !important;
    }
  }
}

/* F8: only the specified C1 home card, step and FAQ titles. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-benefit-copy"] h2,
    [data-ui-part="sell-home"] [data-ui-part="sell-payment-desktop-step"] > div > :is(span, h3),
    [data-ui-part="sell-home"] [data-ui-part="sell-preparation-desktop-step-title"],
    [data-ui-part="sell-home"] [data-ui-part="sell-faq-item"] > summary { font-size: 1rem !important; }
  }
}

@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] :is([data-ui-part="sell-faq-preview"], [data-ui-part="sell-bottom-cta"]) h2,
    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] :is(h3, h4) { font-size: 1.5rem !important; }
    [data-ui-part="sell-home"] [data-ui-part="sell-hero"] :is(h1, h1 span) { font-size: 1.75rem !important; }
    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] h3 { font-size: 1rem !important; }
  }
}

@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="seller-request"] h1 { font-size: 1.5rem !important; }
    [data-ui-part="seller-request"] :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) { font-size: .875rem !important; }
  }
}

@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-faq-content"] { padding-inline: 2rem; }
}

@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="seller-request-action-buttons"] { max-width: none; }
}

@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="service-area"] h1 { font-size: 1.5rem !important; }
  }
}

/* F12 follow-up: Service Area card and ZIP panel titles are H3 roles. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="service-area"] [data-ui-part="service-area-zip-title"],
    [data-ui-part="service-area"] [data-ui-part="service-area-cards"] h2 { font-size: 1rem !important; }
  }
}

/* F17: iPad sell-home FAQ. Keep native details and existing links and tracking. */
@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-faq-preview"] {
      padding-inline: 2rem;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-preview"] > div:first-child p {
      font-size: .75rem !important;
      line-height: 1.45;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-list"] {
      margin-top: 1.5rem;
      border-top: 1px solid #ebebeb;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-item"] {
      padding: 1rem 0;
      border-bottom: 1px solid #ebebeb;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-item"] > summary > span {
      color: #deb17c !important;
      font-size: 1.25rem !important;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-item"] > div {
      max-width: none;
      margin-top: .75rem;
      color: #848484;
      font-size: .875rem !important;
      line-height: 1.45;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-item"] > div p {
      color: inherit;
      font-size: inherit !important;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-faq-preview"] > a:last-child {
      width: 100%;
      background: #fff;
      color: #070707;
      font-size: 1rem !important;
    }
  }
}

/* F18: only the C1 home Hero actions change in the iPad viewport. */
@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-hero-actions"] > [data-analytics-action="hero_sell_now"] { width: 220px; }
  [data-ui-part="sell-hero-actions"] > [data-analytics-action="hero_explore_options"] { display: none; }
}

/* F19: retain PC directory structure, with the iPad spacing/type scale. */
@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="accepted-brands-content"] { max-width: none; padding: 24px 32px 64px !important; }
  [data-ui-part="accepted-brands-content"] > div:first-child { display: block !important; }
  [data-ui-part="accepted-brands-content"] > div:first-child > p { font-size: 12px !important; }
  [data-ui-part="accepted-brands-content"] > div:first-child > h1 { margin-top: 8px; font-size: 24px !important; line-height: 1.45; }
  [data-ui-part="accepted-brands-content"] > div:nth-child(2) { display: block; margin-top: 32px; }
  [data-ui-part="accepted-brands-content"] > div:nth-child(2) > :is(a, button, h1) { display: none !important; }
  [data-ui-part="accepted-brands-search"] { display: block !important; position: relative; width: 100%; margin-left: 0; }
  [data-ui-part="accepted-brands-search-input-viewport"] { background: #f9f9f9; border-radius: 4px; overflow: hidden; }
  [data-ui-part="accepted-brands-search-input"] { background: #f9f9f9 !important; border: 0; padding: 10px 80px 10px 12px; font-size: 14px !important; }
  [data-ui-part="accepted-brands-search"] > span { position: absolute; top: 0; right: 0; width: 40px; height: 40px; align-items: center; justify-content: center; }
  [data-ui-part="accepted-brands-search-action"] { display: flex !important; border-left: 0; }
  [data-ui-part="accepted-brands-search"] > span:not([data-ui-part]) { display: none !important; }
  [data-ui-part="accepted-brands-body"] { display: block; margin-inline: 0; padding-top: 0; }
  [data-ui-part="accepted-brands-categories"] { display: none !important; }
  [data-ui-part="accepted-brands-body"] > div { display: grid; grid-template-columns: 216px minmax(0,1fr); gap: 32px; margin-top: 56px; }
  [data-ui-part="accepted-brands-body"] > div > nav { display: block !important; border-right: 1px solid #ebebeb; padding-right: 24px; }
  [data-ui-part="accepted-brands-body"] > div > nav h2 { margin-bottom: 16px; font-size: 16px !important; line-height: 1.45; }
  [data-ui-part="accepted-brands-body"] > div > nav button { padding-block: 16px; font-size: 14px !important; line-height: 1.45; }
  [data-ui-part="accepted-brands-body"] > div > nav button span:last-child:not(:first-child) { font-size: 12px !important; }
  [data-ui-part="accepted-brands-directory"] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; padding-inline: 0; }
  [data-ui-part="accepted-brands-group"], [data-ui-part="accepted-brands-group"] > div { display: block; }
  [data-ui-part="accepted-brands-letter"] { border-bottom: 1px solid #ebebeb; padding-bottom: 12px; font-size: 16px !important; line-height: 1.45; }
  [data-ui-part="accepted-brands-letter"] + span { display: none; }
  [data-ui-part="accepted-brands-group"] ul { display: flex; flex-direction: column; margin-top: 16px; gap: 16px; }
  [data-ui-part="accepted-brands-name"] { width: auto; margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 1.45; color: #070707 !important; overflow-wrap: anywhere; }
}
@layer route-components {
@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="accepted-brands"] [data-ui-part="accepted-brands-body"] :is(nav[aria-label] h2, [data-ui-part="accepted-brands-letter"]) { font-size: 16px !important; line-height: 1.45; }
  [data-ui-part="accepted-brands"] [data-ui-part="accepted-brands-body"] :is(nav[aria-label] button, [data-ui-part="accepted-brands-name"]) { font-size: 14px !important; }
  [data-ui-part="accepted-brands"] [data-ui-part="accepted-brands-body"] nav button span:last-child:not(:first-child) { font-size: 12px !important; }
}
}

/* F24 · 1799:4224. Preserve the existing snap track and card content. */
@media (min-width: 750px) and (max-width: 1023px) {
  [data-ui-part="sell-method-tablet-track"] > article {
    min-height: 41.75rem;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-media"] {
    border-radius: .25rem;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-body"] {
    gap: 1rem;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-detail-link"] {
    margin-inline-start: auto;
    text-align: end;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-visit-address"] {
    top: 18.0625rem;
    min-height: 2.5625rem;
    align-items: center;
    background: #fff;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-step"] {
    min-height: 5.875rem;
    border-radius: .25rem;
  }

  [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-step"] > div {
    white-space: normal;
  }
}

@layer route-components {
  @media (min-width: 750px) and (max-width: 1023px) {
    [data-ui-part="sell-home"] [data-ui-part="sell-methods"] [data-ui-part="sell-methods-title"] {
      font-size: 1.5rem !important;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-methods"] [data-ui-part="sell-methods-eyebrow"],
    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-step-description"] {
      font-size: .75rem !important;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-timeline"] > h4 {
      font-size: 1rem !important;
    }

    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] :is(
      [data-ui-part="sell-method-mobile-description"],
      [data-ui-part="sell-method-mobile-detail-link"],
      [data-ui-part="sell-method-visit-address"] p
    ),
    [data-ui-part="sell-home"] [data-ui-part="sell-method-tablet-track"] [data-ui-part="sell-method-mobile-step"] > div > :is(span, h5) {
      font-size: .875rem !important;
    }
  }
}
