html,
body.ls-map-search-page {
  max-width: 100%;
  overflow-x: hidden;
}

body.ls-map-search-page *,
body.ls-map-search-page *::before,
body.ls-map-search-page *::after {
  box-sizing: border-box;
}

body.ls-map-search-page .ls-header-inner,
body.ls-map-search-page .ls-section-inner,
body.ls-map-search-page .ls-map-section-inner {
  width: min(100% - 48px, 1320px);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

body.ls-map-search-page .ls-checkout-progress ol {
  width: 100%;
  min-width: 0;
}

body.ls-map-search-page .ls-map-card,
body.ls-map-search-page .ls-map-card-body,
body.ls-map-search-page .ls-map-canvas-wrap,
body.ls-map-search-page .ls-map-canvas,
body.ls-map-search-page .ls-map-search-row,
body.ls-map-search-page .ls-map-style-toggle,
body.ls-map-search-page .ls-map-manual-grid {
  max-width: 100%;
}

body.ls-map-search-page .ls-footer {
  background: #fff;
  border-top: 1px solid var(--ls-border, #d7e4ef);
  margin-top: 0;
  overflow: hidden;
}

body.ls-map-search-page .ls-footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.25fr);
  padding: 30px 0 24px;
}

body.ls-map-search-page .ls-footer-logo {
  display: block;
  width: min(260px, 100%);
  max-width: 260px;
  height: auto;
  margin: 0 0 14px;
}

body.ls-map-search-page .ls-footer p,
body.ls-map-search-page .ls-footer a {
  color: var(--ls-muted, #5f7188);
  font-size: .95rem;
  line-height: 1.45;
  margin: 0;
}

body.ls-map-search-page .ls-footer a {
  color: var(--ls-navy, #00316d);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

body.ls-map-search-page .ls-footer h2 {
  color: var(--ls-navy, #00316d);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 8px;
}

body.ls-map-search-page .ls-footer-bottom {
  background: #f3f8fc;
  color: var(--ls-muted, #5f7188);
  font-size: .86rem;
  font-weight: 700;
  padding: 14px 24px;
  text-align: center;
}
body.ls-map-search-page {
  background: var(--ls-bg, #f3f8fc);
  color: var(--ls-navy, #00316d);
}

.ls-map-checkout-main {
  background: var(--ls-bg, #f3f8fc);
}

.ls-map-section {
  padding: 22px 0 56px;
}

.ls-map-section-inner {
  max-width: 1320px;
}

.ls-map-progress-summary {
  display: none;
}

.ls-map-card {
  width: 100%;
  overflow: hidden;
}

.ls-map-card-header {
  gap: 10px;
}

.ls-map-card-header .ls-eyebrow {
  margin-bottom: 8px;
}

.ls-map-card-header h1 {
  color: var(--ls-navy, #00316d);
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 12px;
}

.ls-map-card-header p,
.ls-map-instructions p,
#ls-map-summary-text {
  color: var(--ls-muted, #5f7188);
  font-size: 1rem;
  line-height: 1.48;
  margin: 0;
}

.ls-map-card-body {
  padding: 28px 30px 34px;
}

.ls-map-instructions {
  margin-bottom: 22px;
}

.ls-map-instructions h2 {
  color: var(--ls-navy, #00316d);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 8px;
}

.ls-map-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.ls-map-field {
  min-width: 0;
}

.ls-map-search-field {
  position: relative;
}

.ls-map-field label,
.ls-map-manual-grid label {
  display: block;
  color: var(--ls-navy, #00316d);
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 8px;
}

.ls-map-field input,
.ls-map-manual-grid input {
  background: #fff;
  border: 1px solid var(--ls-border, #cfddea);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--ls-text, #15212f);
  font-size: 1rem;
  font-weight: 700;
  min-height: 52px;
  padding: 12px 14px;
  width: 100%;
}

.ls-map-field input:focus,
.ls-map-manual-grid input:focus {
  border-color: #1f7654;
  box-shadow: 0 0 0 3px rgba(31, 118, 84, .18);
  outline: none;
}

.ls-map-style-toggle {
  align-items: center;
  background: #eef7f2;
  border: 1px solid #b8d9c9;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  justify-self: end;
  padding: 5px;
}

.ls-map-style-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ls-navy, #00316d);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 16px;
}

.ls-map-style-toggle button.is-active {
  background: var(--ls-navy, #00316d);
  color: #fff;
}

.ls-map-suggestions {
  background: #fff;
  border: 1px solid var(--ls-border, #cfddea);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0, 31, 77, .14);
  display: none;
  left: 0;
  margin-top: 6px;
  max-height: 320px;
  overflow: auto;
  position: absolute;
  right: 0;
  z-index: 20;
}

.ls-map-suggestions.is-visible {
  display: block;
}

.ls-map-suggestion {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf3f8;
  color: var(--ls-navy, #00316d);
  cursor: pointer;
  display: block;
  font-size: .98rem;
  font-weight: 900;
  padding: 13px 15px;
  text-align: left;
  width: 100%;
}

.ls-map-suggestion span {
  color: var(--ls-muted, #5f7188);
  display: block;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
}

.ls-map-canvas-wrap {
  background: #e8f0f6;
  border: 1px solid var(--ls-border, #cfddea);
  border-radius: 16px;
  overflow: hidden;
}

.ls-map-canvas {
  height: min(58vh, 560px);
  min-height: 420px;
  width: 100%;
}

.ls-map-summary {
  margin-top: 20px;
}

#ls-map-summary-title {
  color: var(--ls-navy, #00316d);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 6px;
}

.ls-map-summary-grid {
  align-items: center;
  background: #f7fbfd;
  border: 1px solid #dbe8f2;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  padding: 14px 16px;
}

.ls-map-summary-grid span {
  color: var(--ls-muted, #5f7188);
  font-size: .95rem;
  font-weight: 800;
}

.ls-map-summary-grid span:last-child {
  text-align: right;
}

.ls-map-summary-grid strong {
  color: var(--ls-navy, #00316d);
  font-weight: 900;
}

.ls-map-manual {
  margin-top: 18px;
}

.ls-map-manual summary {
  color: var(--ls-navy, #00316d);
  cursor: pointer;
  font-size: .98rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ls-map-manual-grid {
  align-items: end;
  background: #f7fbfd;
  border: 1px solid #dbe8f2;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 16px;
}

#ls-map-manual-apply {
  appearance: none;
  background: #fff;
  border: 1px solid var(--ls-border, #cfddea);
  border-radius: 10px;
  color: var(--ls-navy, #00316d);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 900;
  min-height: 52px;
  padding: 0 18px;
}

.ls-map-error {
  background: #fff3f3;
  border: 1px solid #ecb5b5;
  border-radius: 12px;
  color: #871d1d;
  display: none;
  font-weight: 900;
  margin-top: 14px;
  padding: 12px 14px;
}

.ls-map-error.is-visible {
  display: block;
}

.ls-map-confirm {
  align-items: flex-start;
  background: #f7fbf9;
  border: 1px solid #b8d9c9;
  border-radius: 14px;
  box-sizing: border-box;
  color: var(--ls-navy, #00316d);
  display: flex;
  gap: 14px;
  line-height: 1.45;
  margin-top: 16px;
  max-width: 980px;
  padding: 15px 16px;
}

.ls-map-confirm input {
  accent-color: #1f7353;
  flex: 0 0 auto;
  height: 24px;
  margin: 2px 0 0;
  width: 24px;
}

.ls-map-confirm span {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ls-map-confirm:focus-within {
  border-color: #1f7353;
  box-shadow: 0 0 0 3px rgba(31, 115, 83, .18);
}

.ls-map-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.ls-map-submit {
  appearance: none;
  background: var(--ls-navy, #00316d);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(0, 31, 77, .14);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  min-height: 56px;
  padding: 0 30px;
}

.ls-map-submit:disabled {
  background: #8aa0ba;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .ls-map-card-body {
    padding: 24px;
  }

  .ls-map-search-row,
  .ls-map-manual-grid,
  .ls-map-summary-grid {
    grid-template-columns: 1fr;
  }

  .ls-map-summary-grid span:last-child,
  .ls-map-style-toggle {
    justify-self: stretch;
    text-align: left;
  }

  .ls-map-style-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ls-map-section {
    padding: 18px 0 36px;
  }

  .ls-map-progress-summary {
    background: #eef7f2;
    border: 1px solid #b8d9c9;
    border-radius: 12px;
    color: var(--ls-navy, #00316d);
    display: grid;
    gap: 4px;
    padding: 12px 14px;
  }

  .ls-map-progress-summary strong {
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.25;
  }

  .ls-map-progress-summary span {
    color: var(--ls-muted, #5f7188);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .ls-map-card-header h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .ls-map-card-body,
  .ls-map-card-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ls-map-canvas {
    height: 52vh;
    min-height: 340px;
  }

  .ls-map-confirm,
  .ls-map-actions,
  .ls-map-submit,
  #ls-map-manual-apply {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.ls-map-search-page .ls-header-inner,
  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner {
    width: min(100% - 22px, 1320px);
  }

  body.ls-map-search-page .ls-main-nav {
    display: none;
  }

  body.ls-map-search-page .ls-logo-img {
    max-width: 190px;
    height: auto;
  }

  body.ls-map-search-page .ls-header-cta {
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  body.ls-map-search-page .ls-footer-grid {
    grid-template-columns: 1fr;
    padding: 26px 0 20px;
  }

  body.ls-map-search-page .ls-footer-logo {
    max-width: 220px;
  }

  body.ls-map-search-page .ls-map-card-header h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    overflow-wrap: anywhere;
  }

  body.ls-map-search-page .ls-map-card-support,
  body.ls-map-search-page .ls-map-instructions p,
  body.ls-map-search-page .ls-map-status p,
  body.ls-map-search-page .ls-map-manual-panel p {
    font-size: 1rem;
  }

  body.ls-map-search-page .ls-map-instructions h2 {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  body.ls-map-search-page .ls-map-style-toggle {
    justify-self: stretch;
  }

  body.ls-map-search-page .ls-map-style-toggle button {
    padding: 8px 10px;
  }
}
/* Map step responsive containment. These rules intentionally come last. */
body.ls-map-search-page,
body.ls-map-search-page .ls-site-header,
body.ls-map-search-page .ls-product-main,
body.ls-map-search-page .ls-checkout-main,
body.ls-map-search-page .ls-checkout-hero,
body.ls-map-search-page .ls-checkout-section,
body.ls-map-search-page .ls-footer {
  max-width: 100vw;
  overflow-x: hidden;
}

body.ls-map-search-page .ls-map-card-header {
  display: block;
  padding: 28px 30px 24px;
}

body.ls-map-search-page .ls-map-card-header h1,
body.ls-map-search-page .ls-map-instructions h2,
body.ls-map-search-page .ls-map-field label,
body.ls-map-search-page .ls-map-submit {
  max-width: 100%;
}

@media (max-width: 760px) {
  body.ls-map-search-page .ls-header-inner,
  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner,
  body.ls-map-search-page .ls-footer-grid {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.ls-map-search-page .ls-map-card,
  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body,
  body.ls-map-search-page .ls-map-instructions,
  body.ls-map-search-page .ls-map-search-row,
  body.ls-map-search-page .ls-map-field,
  body.ls-map-search-page .ls-map-canvas-wrap,
  body.ls-map-search-page .ls-map-canvas,
  body.ls-map-search-page .ls-map-summary,
  body.ls-map-search-page .ls-map-summary-grid,
  body.ls-map-search-page .ls-map-manual,
  body.ls-map-search-page .ls-map-confirm,
  body.ls-map-search-page .ls-map-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.ls-map-search-page .ls-map-card-header {
    padding: 22px 20px 18px !important;
  }

  body.ls-map-search-page .ls-map-card-body {
    padding: 22px 20px 26px !important;
  }

  body.ls-map-search-page .ls-map-card-header h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  body.ls-map-search-page .ls-map-card-header p,
  body.ls-map-search-page .ls-map-instructions p,
  body.ls-map-search-page #ls-map-summary-text {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  body.ls-map-search-page .ls-map-instructions h2 {
    font-size: 1.45rem !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  body.ls-map-search-page .ls-map-search-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.ls-map-search-page .ls-map-style-toggle {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}
/* Final map-search layout polish: keep the direct map step aligned with checkout pages. */
body.ls-map-search-page .ls-footer-logo {
  width: min(240px, 100%) !important;
  max-width: 240px !important;
  height: auto !important;
}

@media (max-width: 760px) {
  body.ls-map-search-page .ls-site-header {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.ls-map-search-page .ls-header-inner {
    width: auto !important;
    max-width: none !important;
    margin-left: 11px !important;
    margin-right: 11px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  body.ls-map-search-page .ls-logo-img {
    width: min(46vw, 170px) !important;
    max-width: 170px !important;
  }

  body.ls-map-search-page .ls-header-cta {
    width: auto !important;
    max-width: 90px !important;
    min-width: 76px !important;
    min-height: 42px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  body.ls-map-search-page .ls-checkout-hero,
  body.ls-map-search-page .ls-checkout-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner,
  body.ls-map-search-page .ls-footer-grid {
    width: auto !important;
    max-width: none !important;
    margin-left: 11px !important;
    margin-right: 11px !important;
  }

  body.ls-map-search-page .ls-checkout-progress,
  body.ls-map-search-page .ls-checkout-progress ol,
  body.ls-map-search-page .ls-map-card,
  body.ls-map-search-page .ls-map-card-body,
  body.ls-map-search-page .ls-map-canvas-wrap,
  body.ls-map-search-page .ls-map-canvas,
  body.ls-map-search-page .ls-map-summary-grid,
  body.ls-map-search-page .ls-map-manual-grid,
  body.ls-map-search-page .ls-footer,
  body.ls-map-search-page .ls-footer * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.ls-map-search-page .ls-map-card {
    border-radius: 14px !important;
  }

  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.ls-map-search-page .ls-map-card-header h1 {
    font-size: clamp(1.78rem, 7.2vw, 2.2rem) !important;
  }

  body.ls-map-search-page .ls-map-search-row {
    gap: 12px !important;
  }

  body.ls-map-search-page .ls-map-style-toggle {
    justify-self: stretch !important;
    width: 100% !important;
  }

  body.ls-map-search-page .ls-map-style-toggle button {
    min-width: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.ls-map-search-page .ls-footer-logo {
    width: min(190px, 70vw) !important;
    max-width: 190px !important;
  }

  body.ls-map-search-page .ls-footer-grid {
    gap: 18px !important;
  }
}
/* Footer logo hard cap for the standalone map search step. */
body.ls-map-search-page .ls-footer-company .ls-footer-logo,
body.ls-map-search-page footer.ls-footer img.ls-footer-logo {
  display: block !important;
  width: 220px !important;
  max-width: min(220px, 65vw) !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  body.ls-map-search-page {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  body.ls-map-search-page .ls-order-shell,
  body.ls-map-search-page .ls-map-shell,
  body.ls-map-search-page .ls-map-card,
  body.ls-map-search-page .ls-map-card-body,
  body.ls-map-search-page .ls-map-form {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.ls-map-search-page .ls-map-card-body {
    overflow-x: hidden !important;
  }

  body.ls-map-search-page .ls-footer-company .ls-footer-logo,
  body.ls-map-search-page footer.ls-footer img.ls-footer-logo {
    width: 170px !important;
    max-width: min(170px, 58vw) !important;
  }

  body.ls-map-search-page .ls-map-confirm {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding: 14px !important;
    width: 100% !important;
  }

  body.ls-map-search-page .ls-map-confirm input {
    grid-column: 1 !important;
  }

  body.ls-map-search-page .ls-map-confirm span {
    font-size: .95rem !important;
    line-height: 1.35 !important;
    grid-column: 2 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  body.ls-map-search-page .ls-map-actions,
  body.ls-map-search-page .ls-map-submit {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Final mobile containment for the confirmation step. */
@media (max-width: 760px) {
  body.ls-map-search-page .ls-product-main,
  body.ls-map-search-page .ls-checkout-main,
  body.ls-map-search-page .ls-checkout-section,
  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner,
  body.ls-map-search-page .ls-map-card,
  body.ls-map-search-page .ls-map-card-body,
  body.ls-map-search-page .ls-map-form,
  body.ls-map-search-page #ls-map-form,
  body.ls-map-search-page .ls-map-canvas-wrap,
  body.ls-map-search-page .ls-map-canvas,
  body.ls-map-search-page #ls-map-canvas,
  body.ls-map-search-page .mapboxgl-map {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.ls-map-search-page .ls-map-actions {
    display: flex !important;
    justify-content: center !important;
  }

  body.ls-map-search-page .ls-map-submit {
    font-size: .92rem !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    white-space: normal !important;
  }
}

/* Hard mobile fit for the standalone map-search checkout step. */
@media (max-width: 760px) {
  html,
  body.ls-map-search-page {
    margin: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100vw !important;
  }

  body.ls-map-search-page .ls-header-inner,
  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner,
  body.ls-map-search-page .ls-footer-grid {
    box-sizing: border-box !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: calc(100vw - 24px) !important;
  }

  body.ls-map-search-page .ls-site-header,
  body.ls-map-search-page .ls-product-main,
  body.ls-map-search-page .ls-checkout-main,
  body.ls-map-search-page .ls-checkout-hero,
  body.ls-map-search-page .ls-checkout-section,
  body.ls-map-search-page .ls-map-section,
  body.ls-map-search-page .ls-footer {
    box-sizing: border-box !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
  }

  body.ls-map-search-page .ls-header-inner {
    align-items: center !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }

  body.ls-map-search-page .ls-logo-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.ls-map-search-page .ls-logo-img {
    display: block !important;
    height: auto !important;
    max-width: min(170px, 58vw) !important;
    width: min(170px, 58vw) !important;
  }

  body.ls-map-search-page .ls-header-cta {
    flex: 0 0 auto !important;
    max-width: 92px !important;
    min-width: 74px !important;
    width: auto !important;
  }

  body.ls-map-search-page .ls-map-card,
  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body,
  body.ls-map-search-page .ls-map-instructions,
  body.ls-map-search-page .ls-map-search-row,
  body.ls-map-search-page .ls-map-field,
  body.ls-map-search-page .ls-map-style-toggle,
  body.ls-map-search-page .ls-map-canvas-wrap,
  body.ls-map-search-page .ls-map-canvas,
  body.ls-map-search-page #ls-map-canvas,
  body.ls-map-search-page .mapboxgl-map,
  body.ls-map-search-page .ls-map-summary,
  body.ls-map-search-page .ls-map-summary-grid,
  body.ls-map-search-page .ls-map-manual,
  body.ls-map-search-page .ls-map-manual-grid,
  body.ls-map-search-page .ls-map-error,
  body.ls-map-search-page .ls-map-confirm,
  body.ls-map-search-page .ls-map-actions,
  body.ls-map-search-page .ls-map-submit {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.ls-map-search-page .ls-map-style-toggle {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  body.ls-map-search-page .ls-map-style-toggle button,
  body.ls-map-search-page .ls-map-card-header h1,
  body.ls-map-search-page .ls-map-instructions h2,
  body.ls-map-search-page .ls-map-confirm span,
  body.ls-map-search-page .ls-map-submit {
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body.ls-map-search-page .ls-map-confirm {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
  }

  body.ls-map-search-page .ls-map-actions {
    justify-content: center !important;
  }
}

/* Phone viewport guard: keep the standalone map step from inheriting wider checkout widths. */
@media (max-width: 760px) {
  html,
  body.ls-map-search-page {
    margin: 0 !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    width: 100% !important;
  }

  body.ls-map-search-page,
  body.ls-map-search-page * {
    box-sizing: border-box !important;
  }

  body.ls-map-search-page .ls-site-header,
  body.ls-map-search-page .ls-product-main,
  body.ls-map-search-page .ls-checkout-main,
  body.ls-map-search-page .ls-checkout-hero,
  body.ls-map-search-page .ls-checkout-section,
  body.ls-map-search-page .ls-map-section,
  body.ls-map-search-page .ls-footer {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
    width: 100% !important;
  }

  body.ls-map-search-page .ls-header-inner,
  body.ls-map-search-page .ls-section-inner,
  body.ls-map-search-page .ls-map-section-inner,
  body.ls-map-search-page .ls-footer-grid {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: calc(100% - 24px) !important;
  }

  body.ls-map-search-page .ls-map-card,
  body.ls-map-search-page .ls-map-card > *,
  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body,
  body.ls-map-search-page .ls-map-instructions,
  body.ls-map-search-page .ls-map-search-row,
  body.ls-map-search-page .ls-map-field,
  body.ls-map-search-page .ls-map-style-toggle,
  body.ls-map-search-page .ls-map-canvas-wrap,
  body.ls-map-search-page .ls-map-canvas,
  body.ls-map-search-page #ls-map-canvas,
  body.ls-map-search-page .mapboxgl-map,
  body.ls-map-search-page .ls-map-summary,
  body.ls-map-search-page .ls-map-summary-grid,
  body.ls-map-search-page .ls-map-manual,
  body.ls-map-search-page .ls-map-manual-grid,
  body.ls-map-search-page .ls-map-error,
  body.ls-map-search-page .ls-map-confirm,
  body.ls-map-search-page .ls-map-actions {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
    width: 100% !important;
  }

  body.ls-map-search-page .ls-map-card-header,
  body.ls-map-search-page .ls-map-card-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.ls-map-search-page .ls-map-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.ls-map-search-page .ls-map-style-toggle {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    justify-self: stretch !important;
  }

  body.ls-map-search-page .ls-map-card-header h1,
  body.ls-map-search-page .ls-map-instructions h2 {
    font-size: clamp(1.35rem, 6vw, 1.72rem) !important;
    line-height: 1.12 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.ls-map-search-page .ls-map-card-header p,
  body.ls-map-search-page .ls-map-instructions p,
  body.ls-map-search-page .ls-map-confirm span {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.ls-map-search-page .ls-map-confirm {
    align-items: flex-start !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  body.ls-map-search-page .ls-map-confirm input {
    margin-top: 2px !important;
  }

body.ls-map-search-page .ls-map-submit {
    display: block !important;
    font-size: .92rem !important;
    line-height: 1.2 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 10px !important;
    white-space: normal !important;
    width: 100% !important;
  }
}

/* Align the map-search progress indicator with the compact checkout stepper. */
body.ls-map-search-page .ls-checkout-hero {
  padding: 18px 0 14px !important;
}

body.ls-map-search-page .ls-checkout-progress {
  overflow: visible !important;
  padding-bottom: 0 !important;
}

body.ls-map-search-page .ls-checkout-progress ol {
  display: grid !important;
  gap: 6px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.ls-map-search-page .ls-checkout-progress li {
  align-items: center !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  display: flex !important;
  font-size: 12px !important;
  gap: 7px !important;
  line-height: 1.15 !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
}

body.ls-map-search-page .ls-checkout-progress li > span:last-child {
  min-width: 0 !important;
}

body.ls-map-search-page .ls-progress-step {
  flex: 0 0 auto !important;
  font-size: 11px !important;
  height: 20px !important;
  width: 20px !important;
}

body.ls-map-search-page .ls-map-section {
  padding-top: 14px !important;
}

@media (max-width: 760px) {
  body.ls-map-search-page .ls-checkout-hero {
    padding: 14px 0 10px !important;
  }

  body.ls-map-search-page .ls-checkout-progress {
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  body.ls-map-search-page .ls-checkout-progress ol {
    grid-template-columns: repeat(6, minmax(128px, 1fr)) !important;
    min-width: 780px !important;
  }

  body.ls-map-search-page .ls-checkout-progress li {
    min-height: 46px !important;
    padding: 8px 10px !important;
  }

  body.ls-map-search-page .ls-map-section {
    padding-top: 12px !important;
  }
}
