/* Horizontal overflow fixes. Do not hide overflow on body — shrink
   the grid, wrap long CTAs, and let form controls fall below their
   intrinsic min-width. Desktop (wide) layouts stay as they were. */

/* Process Serving: 3-col / 2-col addon grids used minmax(auto, 1fr), so a
   nowrap “Open the Rate Calculator” promo button (and nowrap prices)
   blew out the column. Promo only stacked at ≤680px, which left 768
   in a 2-col + side-by-side promo state. */
.ps-addons__cols {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ps-addons__cols--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-addons__card,
.ps-crp__left,
.ps-crp__right,
.ps-court-runner-promo {
  min-width: 0;
  max-width: 100%;
}

@media (width <= 1080px) {
  .ps-addons__cols,
  .ps-addons__cols--3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .ps-court-runner-promo {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ps-crp__btn {
    white-space: normal !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

@media (width <= 800px) {
  .ps-addons__cols,
  .ps-addons__cols--3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ps-rates dd {
    white-space: normal;
  }

  .ps-rates > div {
    flex-wrap: wrap;
  }
}

/* Notary order (mobile, and the same pattern on office / RON): the
   “Calculate Route & Estimate” button is white-space:nowrap with a
   ~296px min-content width, which plus card padding and border is 348px
   in a 311px content box (5px past the 375 viewport after left padding). */
@media (width <= 1024px) {
  .mo-layout,
  .oo-layout,
  .ro-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mo-form-col,
  .oo-form-col,
  .ro-form-col,
  .mo-card,
  .oo-card,
  .ro-card,
  .mo-info-card,
  .oo-info-card,
  .ro-info-card,
  .mo-sidebar,
  .oo-sidebar,
  .ro-sidebar,
  .mo-sidebar-card,
  .oo-sidebar-card,
  .ro-sidebar-card,
  .mo-form,
  .oo-form,
  .ro-form,
  .mo-field,
  .oo-field,
  .ro-field {
    min-width: 0;
    max-width: 100%;
  }

  .mo-calc-btn,
  .oo-calc-btn,
  .ro-calc-btn,
  .mo-submit,
  .oo-submit,
  .ro-submit {
    white-space: normal !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .mo-field input,
  .mo-field select,
  .mo-field textarea,
  .oo-field input,
  .oo-field select,
  .oo-field textarea,
  .ro-field input,
  .ro-field select,
  .ro-field textarea {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}
