/* RideEase public portal/walk-in mobile completion — v1.0.22 */
@media (max-width: 768px) {
  html,
  body.re-mobile-public-v1 {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.re-mobile-public-v1 {
    margin: 0;
    min-height: 100dvh;
  }

  body.re-mobile-public-v1 *,
  body.re-mobile-public-v1 *::before,
  body.re-mobile-public-v1 *::after {
    box-sizing: border-box;
  }

  body.re-mobile-public-v1 .header {
    padding: 12px;
    gap: 8px;
  }

  body.re-mobile-public-v1 .p-wordmark {
    max-width: min(44vw, 170px);
    height: auto;
  }

  body.re-mobile-public-v1 .header-text {
    min-width: 0;
  }

  body.re-mobile-public-v1 .header-text h1,
  body.re-mobile-public-v1 .header-text p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.re-mobile-public-v1 .steps {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.re-mobile-public-v1 .steps::-webkit-scrollbar {
    display: none;
  }

  body.re-mobile-public-v1 .step-tab {
    min-height: 42px;
    padding: 10px 12px;
  }

  body.re-mobile-public-v1 .page,
  body.re-mobile-public-v1 [class*="page" i] {
    width: 100%;
    max-width: 100% !important;
  }

  body.re-mobile-public-v1 .page {
    padding: 12px 10px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  body.re-mobile-public-v1 .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    overflow-wrap: anywhere;
  }

  body.re-mobile-public-v1 .fr,
  body.re-mobile-public-v1 .fg2,
  body.re-mobile-public-v1 .fr3,
  body.re-mobile-public-v1 [style*="grid-template-columns:1fr 1fr"],
  body.re-mobile-public-v1 [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.re-mobile-public-v1 .car-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.re-mobile-public-v1 .car-card,
  body.re-mobile-public-v1 .loc-card,
  body.re-mobile-public-v1 .bk-confirm,
  body.re-mobile-public-v1 .price-box {
    min-width: 0;
    max-width: 100%;
  }

  body.re-mobile-public-v1 input:not([type="checkbox"]):not([type="radio"]),
  body.re-mobile-public-v1 select,
  body.re-mobile-public-v1 textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  body.re-mobile-public-v1 input[type="checkbox"],
  body.re-mobile-public-v1 input[type="radio"] {
    width: auto !important;
    min-width: 18px;
    min-height: 18px;
  }

  body.re-mobile-public-v1 button,
  body.re-mobile-public-v1 .btn,
  body.re-mobile-public-v1 a.btn {
    min-height: 42px;
    max-width: 100%;
    touch-action: manipulation;
  }

  body.re-mobile-public-v1 .filter-bar,
  body.re-mobile-public-v1 .sig-btns,
  body.re-mobile-public-v1 [style*="display:flex"][style*="gap"] {
    max-width: 100%;
    flex-wrap: wrap;
  }

  body.re-mobile-public-v1 .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  body.re-mobile-public-v1 .filter-bar::-webkit-scrollbar {
    display: none;
  }

  body.re-mobile-public-v1 .filter-bar > * {
    flex: 0 0 auto;
  }

  body.re-mobile-public-v1 img,
  body.re-mobile-public-v1 svg,
  body.re-mobile-public-v1 canvas,
  body.re-mobile-public-v1 video,
  body.re-mobile-public-v1 iframe {
    max-width: 100% !important;
  }

  body.re-mobile-public-v1 canvas[id*="sig" i],
  body.re-mobile-public-v1 canvas[class*="sig" i] {
    display: block;
    width: 100% !important;
    min-height: 110px;
    touch-action: none;
  }

  body.re-mobile-public-v1 .upload-box,
  body.re-mobile-public-v1 [class*="upload" i] {
    width: 100%;
    max-width: 100%;
  }

  body.re-mobile-public-v1 .preview-img {
    max-height: 48dvh;
  }

  body.re-mobile-public-v1 table {
    max-width: 100%;
  }

  body.re-mobile-public-v1 .tw,
  body.re-mobile-public-v1 .table-wrap,
  body.re-mobile-public-v1 table:not([class]) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.re-mobile-public-v1 [style*="position:fixed"][style*="inset:0"],
  body.re-mobile-public-v1 [style*="position: fixed"][style*="inset: 0"] {
    align-items: flex-end !important;
    padding: 8px 8px 0 !important;
    overflow: hidden !important;
  }

  body.re-mobile-public-v1 [style*="position:fixed"][style*="inset:0"] > div,
  body.re-mobile-public-v1 [style*="position: fixed"][style*="inset: 0"] > div,
  body.re-mobile-public-v1 .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(92dvh, var(--re-public-vvh, 92dvh)) !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.re-mobile-public-v1 .re-public-scrollbox {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 390px) {
  body.re-mobile-public-v1 .header-text p {
    display: none;
  }

  body.re-mobile-public-v1 .branch-badge {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.re-mobile-public-v1 .success-wrap {
    padding: 24px 8px;
  }
}
