/* Mobile/tablet fixes for the extracted listing intake page only. */
@media (max-width: 992px) {
  body {
    overflow-x: hidden;
  }

  #body-wrapper,
  #body-wrapper main {
    min-width: 0;
    overflow-x: hidden;
  }

  .list-home-main-header {
    box-sizing: border-box;
    grid-template-columns: auto 1fr;
    gap: 16px;
    width: 100%;
    min-height: 68px;
    height: auto !important;
    margin: 0 auto;
    padding: 10px 24px;
  }

  .list-home-main-header .home-header-brand {
    margin-left: 0 !important;
  }

  .list-home-main-header .home-header-brand img {
    width: 42px !important;
    height: 42px !important;
    transform: none !important;
  }

  .list-home-main-header .home-header-nav {
    display: none !important;
  }

  .list-home-main-header .home-header-actions {
    justify-content: flex-end;
    gap: 8px;
    margin-right: 0 !important;
  }

  .list-home-main-header .home-header-actions a {
    padding: 10px 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  ._2a8e856d {
    overflow: hidden;
    min-height: auto !important;
    padding: 24px 0 48px !important;
    background-position: center bottom !important;
    background-size: 820px auto !important;
  }

  ._275b18d2 {
    box-sizing: border-box;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    max-width: 720px !important;
    padding-left: 24px;
    padding-right: 24px;
  }

  ._872d4148 {
    width: 100% !important;
    max-width: none !important;
    align-items: flex-start !important;
  }

  ._1a8e6717 {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
  }

  ._905c1fe0 {
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }

  .bf5201cf {
    max-width: 100% !important;
    margin: 24px 0 12px !important;
    font-size: clamp(36px, 8vw, 56px) !important;
    line-height: 1.1 !important;
  }

  ._07202e84 {
    max-width: 620px !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  ._9b8b112c {
    box-sizing: border-box;
    width: 100%;
  }

  .ebb526bb {
    padding: 16px !important;
  }

  .c6a562e9 {
    align-items: stretch !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 14px !important;
  }

  ._6fdecdab,
  ._73f6fbb5 {
    width: 100% !important;
    min-width: 0 !important;
  }

  ._73f6fbb5 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px !important;
  }

  .ee201e4f {
    gap: 8px !important;
  }

  ._122bd7ea {
    flex: 0 1 auto !important;
    min-height: 36px !important;
    height: auto !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .dba8693c.fc8930a7 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  .list-home-main-header {
    padding: 10px 16px;
  }

  .list-home-main-header .home-header-secondary {
    display: none !important;
  }

  .list-home-main-header .home-header-actions a {
    padding: 10px 11px !important;
  }

  ._2a8e856d {
    padding: 12px 0 32px !important;
    background-image: none !important;
  }

  ._275b18d2 {
    gap: 20px !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .bf5201cf {
    margin-top: 16px !important;
    font-size: clamp(34px, 11vw, 44px) !important;
    line-height: 1.08 !important;
  }

  ._07202e84 {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  ._9b8b112c {
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: 0 10px 26px rgba(15, 31, 51, .14) !important;
  }

  .ebb526bb {
    gap: 14px !important;
    padding: 12px !important;
  }

  .c6a562e9 {
    flex-direction: column !important;
    padding: 12px !important;
  }

  ._615f4f09 {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  ._6fdecdab,
  ._73f6fbb5 {
    min-height: 48px !important;
    height: auto !important;
  }

  ._6fdecdab .aa8b702f,
  ._73f6fbb5 ._54777887 {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  ._90d8adc3,
  ._76fe2150,
  ._3ee3c67a {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dba8693c.fc8930a7 {
    grid-template-columns: 1fr;
  }

  .fd09afbc {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }

  .makkan-location-suggestions {
    max-width: calc(100vw - 32px) !important;
  }
}

@media (max-width: 360px) {
  .list-home-main-header .home-header-brand img {
    width: 38px !important;
    height: 38px !important;
  }

  .list-home-main-header .home-header-actions a {
    font-size: 12px !important;
    padding: 9px 10px !important;
  }

  .bf5201cf {
    font-size: 32px !important;
  }
}

/* Makkan mobile hardening: keep imported listing markup inside the viewport. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#body-wrapper {
  width: 100%;
}

#body-wrapper img,
#body-wrapper picture,
#body-wrapper svg {
  max-width: 100%;
}

@media (max-width: 992px) {
  ._275b18d2,
  ._7487b790,
  ._255373f6 {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  ._9b8b112c,
  .ebb526bb,
  ._905c1fe0 {
    width: 100% !important;
    max-width: 100% !important;
  }

  ._4d4654db {
    overflow: hidden;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  ._255373f6 {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  ._6beb8d2e,
  ._11522a4c {
    width: 100% !important;
    max-width: 100% !important;
  }

  ._6beb8d2e img,
  ._11522a4c img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  ._4d4654db {
    padding: 28px 16px !important;
  }

  ._7487b790,
  ._255373f6 {
    max-width: 100% !important;
  }

  ._47468960 {
    font-size: 26px !important;
    line-height: 1.18 !important;
  }

  ._7dac6822 {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  ._4bb52177 {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
    text-align: center !important;
  }

  .makkan-step-two {
    padding-top: 0 !important;
  }

  .makkan-step-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .makkan-step-header strong {
    font-size: 20px !important;
  }

  .makkan-field input,
  .makkan-field select,
  .makkan-field textarea {
    font-size: 16px !important;
  }

  .makkan-location-suggestion {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .makkan-location-suggestion small,
  .makkan-location-suggestion em {
    white-space: normal !important;
  }
}

@media (max-width: 360px) {
  ._122bd7ea {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* Keep the intake form following the viewport on desktop while the page scrolls. */
._9b8b112c.makkan-intake-scroll-normal,
._275b18d2.makkan-intake-scroll-normal,
form[aria-label="Seller Leads Form"].makkan-intake-scroll-normal {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}

._1a8e6717.makkan-intake-scroll-normal,
._1a8e6717.makkan-intake-scroll-normal > form[aria-label="Seller Leads Form"] {
  background: #fff !important;
  border-radius: 12px !important;
}

._1a8e6717.makkan-intake-scroll-normal {
  border: 1px solid rgba(149, 74, 0, .12) !important;
  box-shadow: 0 12px 28px rgba(15, 31, 51, .14) !important;
}

._1a8e6717.makkan-intake-scroll-normal > form[aria-label="Seller Leads Form"] > ._9b8b112c {
  box-shadow: none !important;
  border-radius: 12px 12px 0 0 !important;
}
._1a8e6717.makkan-intake-scroll-normal {
  position: fixed !important;
  top: 88px !important;
  right: clamp(32px, calc((100vw - 1280px) / 2 + 40px), 96px) !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  width: min(542px, calc(100vw - 80px)) !important;
  max-height: calc(100vh - 104px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
    transform: translateY(var(--makkan-intake-footer-offset, 0px)) !important;
  transition: transform 120ms ease-out;
z-index: 5 !important;
}

@media (max-width: 992px) {
  ._1a8e6717.makkan-intake-scroll-normal,
  form[aria-label="Seller Leads Form"].makkan-intake-scroll-normal {
    width: 100% !important;
    max-width: 100% !important;
  }

  ._1a8e6717.makkan-intake-scroll-normal,
._1a8e6717.makkan-intake-scroll-normal > form[aria-label="Seller Leads Form"] {
  background: #fff !important;
  border-radius: 12px !important;
}

._1a8e6717.makkan-intake-scroll-normal {
  border: 1px solid rgba(149, 74, 0, .12) !important;
  box-shadow: 0 12px 28px rgba(15, 31, 51, .14) !important;
}

._1a8e6717.makkan-intake-scroll-normal > form[aria-label="Seller Leads Form"] > ._9b8b112c {
  box-shadow: none !important;
  border-radius: 12px 12px 0 0 !important;
}
._1a8e6717.makkan-intake-scroll-normal {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
      transform: none !important;
}
}

/* Mobile QA fix pass: keep Seller Intake header inside narrow viewports. */
@media (max-width: 600px) {
  .list-home-main-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .list-home-main-header .home-header-brand {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .list-home-main-header .home-header-brand__text {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .list-home-main-header .home-header-actions {
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
}

@media (max-width: 360px) {
  .list-home-main-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .list-home-main-header .home-header-brand__text {
    display: none !important;
  }

  .list-home-main-header .home-header-actions a {
    max-width: 96px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Mobile QA fix pass: accessible Seller Intake controls. */
@media (max-width: 600px) {
  .list-home-main-header .home-header-brand,
  .list-home-main-header .home-header-actions a,
  ._6fdecdab,
  ._73f6fbb5,
  ._122bd7ea,
  .ee201e4f button,
  .fd09afbc,
  .f5e057d9,
  ._084f1f09,
  input,
  select,
  textarea {
    min-height: 44px !important;
  }
}
