/*
 * Mobile-only refinements for the standalone marketplace review page.
 * The pinned marketplace bundle remains unchanged so desktop stays identical
 * to the source design.
 */

body.marketplace-focus-page {
  min-width: 0;
}

@media (max-width: 767px) {
  body.marketplace-focus-page header > div {
    min-height: 52px;
    gap: 8px;
    padding-inline: 12px;
  }

  body.marketplace-focus-page
    header
    a[aria-label="Quickvee marketplace home"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-block: 8px;
  }

  body.marketplace-focus-page header img[alt="Quickvee X"] {
    width: auto;
    height: 36px;
  }

  body.marketplace-focus-page header nav:last-of-type {
    gap: 4px;
  }

  body.marketplace-focus-page header nav:last-of-type > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 11px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  body.marketplace-focus-page button {
    min-height: 44px;
  }

  body.marketplace-focus-page section:has(h1) {
    min-height: 640px;
  }

  body.marketplace-focus-page section:has(h1) > div:nth-child(2) {
    justify-content: space-between;
    padding-inline: 20px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:first-child {
    flex: none;
    justify-content: flex-start;
    padding-block: 40px 0;
  }

  body.marketplace-focus-page section:has(h1) h1 {
    font-size: clamp(2.5rem, 10vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  body.marketplace-focus-page section:has(h1) h1 + div {
    max-width: 100%;
    margin-top: 24px;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    box-shadow:
      0 22px 48px -16px rgb(15 23 42 / 45%),
      0 10px 28px -16px rgb(15 23 42 / 35%);
  }

  body.marketplace-focus-page
    section:has(h1)
    h1
    + div
    > div:first-child {
    min-width: 0;
    padding-inline: 10px;
    border-radius: 12px;
  }

  body.marketplace-focus-page
    section:has(h1)
    input[placeholder="Enter your delivery address"] {
    min-width: 0;
    padding-block: 10px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child {
    width: 100%;
    padding-bottom: 24px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid {
    gap: 8px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid
    > div {
    padding: 14px 10px;
    border-radius: 14px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid
    > div
    > div:first-child {
    font-size: 24px;
    line-height: 1.05;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid
    > div
    > div:last-child {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.25;
  }

  body.marketplace-focus-page section:has(h1) picture img {
    opacity: 0.42;
    object-position: 38% 50%;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:first-child
    > div:last-child {
    height: 14rem;
  }

  body.marketplace-focus-page section.px-8.pt-6.pb-28 {
    padding-inline: 16px;
    padding-bottom: 64px;
  }

  body.marketplace-focus-page
    section.px-8.pt-6.pb-28
    > div.relative.mx-auto {
    padding: 32px;
  }

  body.marketplace-focus-page section.px-8.pt-6.pb-28 h2 {
    font-size: 30px;
    line-height: 1.12;
  }
}

@media (max-width: 639px) {
  body.marketplace-focus-page section:has(h1) h1 + div {
    flex-direction: column;
  }

  body.marketplace-focus-page section:has(h1) h1 + div > a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
  }
}

@media (max-width: 359px) {
  body.marketplace-focus-page header > div {
    min-height: 52px;
    gap: 6px;
    padding-inline: 10px;
  }

  body.marketplace-focus-page
    header
    a[aria-label="Quickvee marketplace home"] {
    padding-block: 7px;
  }

  body.marketplace-focus-page header img[alt="Quickvee X"] {
    height: 32px;
  }

  body.marketplace-focus-page header nav:last-of-type > a {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  body.marketplace-focus-page
    section.px-8.pt-6.pb-28
    > div.relative.mx-auto {
    padding: 24px;
  }

  body.marketplace-focus-page section:has(h1) {
    min-height: 620px;
  }

  body.marketplace-focus-page section:has(h1) > div:nth-child(2) {
    padding-inline: 16px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:first-child {
    padding-top: 34px;
  }

  body.marketplace-focus-page section:has(h1) h1 {
    font-size: 2.375rem;
  }

  body.marketplace-focus-page section:has(h1) h1 + div {
    margin-top: 20px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid
    > div {
    padding: 12px 6px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid
    > div
    > div:first-child {
    font-size: 22px;
  }

  body.marketplace-focus-page
    section:has(h1)
    > div:nth-child(2)
    > div:last-child
    > .grid
    > div
    > div:last-child {
    font-size: 10px;
  }
}
