/* Shared mobile presentation for the six-stage customer journey. */
.rtx-mobile-journey { display: none; }
.wallet-view-label, .wallet-view-next { display: none; }
.ppv-step-item.ppv-step-skipped { opacity: .68; border-style: dashed; }

@media (max-width: 1100px) {
  .ppv-grid-2, .ppv-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .ppv-grid-2 > *, .ppv-grid-3 > * { min-width: 0; }
  .ppv-lock-footer { margin-inline: 0; margin-bottom: 0; max-width: 100%; border-radius: 8px; }
}

@media (max-width: 768px) {
  html body { zoom: 1; }

  .stepper-bar > .step-item,
  .stepper-bar > .step-divider,
  .stepper-bar > .stepper-row,
  .ppv-stepper-bar > .ppv-stepper-row { display: none; }

  .stepper-bar,
  .ppv-stepper-bar { display: block; overflow: visible; min-width: 0; }
  .rtx-mobile-journey {
    display: grid;
    gap: 7px;
    width: 100%;
    min-width: 0;
    color: #1a1815;
    text-align: left;
  }
  .rtx-mobile-journey__count {
    color: #73500e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .rtx-mobile-journey__current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1.25;
  }
  .rtx-mobile-journey__current span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #986815;
    color: #fff;
    font: 700 11px/1.2 system-ui, sans-serif;
    text-transform: uppercase;
  }
  .rtx-mobile-journey__done,
  .rtx-mobile-journey__next,
  .rtx-mobile-journey__locked {
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .rtx-mobile-journey__done { color: #166534; font-weight: 700; }
  .rtx-mobile-journey__next { color: #3d3830; font-weight: 700; }
  .rtx-mobile-journey__locked { color: #665f55; }

  .ca-nav, .ppv-topbar, .topnav { min-width: 0; }
  .ca-nav__name { display: inline; font-size: clamp(17px, 5vw, 22px); }
  .ca-nav__edit, .ppv-topbar__edit-goal, .topnav__edit-goal { min-height: 44px; display: inline-flex; align-items: center; }
  .ppv-topbar { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .ppv-topbar__inner { order: 3; flex: 1 1 100%; width: 100%; max-width: 100%; }
  .ppv-topbar__left { margin-left: 0; }
  .ppv-topbar__right { width: 100%; min-width: 0; flex-wrap: wrap; }
  .ppv-pill-btn { min-width: 0; max-width: 100%; margin-right: 0; white-space: normal; text-align: center; min-height: 48px; }

  .dashboard-card, .form-panel, .preview-panel, .side-block,
  .ca-layout > *, .ppv-stepper-outer, .ppv-stepper-bar { min-width: 0; max-width: 100%; }
  .ppv-grid-2, .ppv-grid-3, .ppv-preview-stack { grid-template-columns: minmax(0, 1fr); }
  .ppv-card, .ppv-mini-card, .ppv-profile-card { min-width: 0; max-width: 100%; }
  .ppv-card :is(h2, p, span, div) { overflow-wrap: anywhere; }
  .ppv-change-table, .ppv-routing-table { display: block; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
  #ppv-revealed-card-wrap > div { flex-direction: column; gap: 12px; min-width: 0; }
  #ppv-revealed-card-wrap > div > div:last-child { min-width: 0; padding-left: 0; }
  #ppv-revealed-card-wrap > span:first-child { position: static; display: inline-block; margin-bottom: 12px; }
  .ppv-rc-img-frame { width: 100%; min-width: 0; height: 150px; }
  .ppv-rc-connector-banner { min-width: 0; flex-wrap: wrap; }
  .main-title { font-size: clamp(27px, 7vw, 36px); }
  .field-label, .mmt-field-label { font-size: 12px; }
  .counter-btn { width: 44px; height: 44px; }
  .preset-chip, .duration-chip, .journey-tab { min-height: 44px; }
  .quick-presets-row, .duration-presets-row { flex-wrap: wrap; overflow: visible; }
  .trip-type-grid { grid-template-columns: 1fr; gap: 8px; }
  .triptype-btn { min-height: 48px; }
  .mmt-panel-row-split { grid-template-columns: minmax(0, 1fr); }
  .mmt-panel-row-split > div { min-width: 0; }
  .mmt-fare-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mmt-fare-row .mmt-fare-chip { min-width: 0; padding-inline: 6px; }
  .mmt-fare-row .mmt-fare-chip:last-child { grid-column: 1 / -1; }
  .mmt-occupancy-row-spread .counter-btn { width: 44px; height: 44px; }
  .mmt-occupancy-row-spread .counter-controls { height: auto; min-height: 48px; padding: 2px 4px; }
  .mmt-occupancy-row-spread { flex-wrap: wrap; }
  .mmt-occupancy-row-spread .mmt-occ-field { flex: 1 1 100%; }
  .form-panel :is(button, select, input) { scroll-margin-top: 90px; }
  .cta-row { flex-wrap: wrap; }
  .cta-button-gold { flex: 1 1 100%; min-width: 0; text-align: center; padding: 0 12px; }
  .reset-button { margin-inline: auto; }
  .estimate-panel { order: 2; }
  .mmt-panel-row.is-field-disabled, .mmt-select:disabled, .counter-btn:disabled { opacity: .55; }

  .wallet-view-label {
    display: block;
    margin: 0;
    padding: 12px 16px 0;
    background: #fff;
    color: #3d3830;
    font-size: 13px;
    font-weight: 700;
  }
  .mobile-tabs { top: 0; gap: 6px; padding: 8px 16px 12px; }
  .mobile-tab { min-height: 48px; padding: 8px 4px; font-size: clamp(11px, 3vw, 13px); letter-spacing: 0; text-transform: none; line-height: 1.2; }
  .mobile-tab.active::after { content: 'Current view'; display: block; margin-top: 3px; font-size: 10px; }
  .wallet-view-next { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 0; border-radius: 9px; background: #986815; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .bottom-cta { padding: 24px 16px; }
  .bottom-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bottom-pill { min-width: 0; white-space: normal; overflow-wrap: anywhere; justify-content: center; text-align: center; font-size: 13px; padding: 9px 5px; }
  .bottom-cta-btn, .cta-btn, .add-card-btn, .ca-profile-confirm-btn { min-height: 48px; }
  .card-row { flex-wrap: wrap; }
  .card-row-name { flex: 1 1 calc(100% - 75px); font-size: 14px; }
  .card-row-points { width: auto; flex: 1 1 110px; min-height: 44px; }
  .card-row-remove { min-width: 44px; min-height: 44px; }
  .hiw-mini-wrap, .ppv-hiw-mini-wrap { margin-top: 14px; }

  .rtx-reference .rtx-nav__inner { margin-inline: 16px; gap: 8px; }
  .rtx-reference .rtx-nav { height: auto; min-height: 72px; }
  .rtx-reference .rtx-nav__inner { flex-wrap: wrap; justify-content: space-between; padding-block: 8px; }
  .rtx-reference .brand small { display: none; }
  .rtx-reference .brand-text > span { font-size: clamp(19px, 5vw, 24px); }
  .rtx-reference .nav-toggle, .rtx-reference .nav-cta { min-height: 44px; font-size: 12px; }
  .rtx-reference .hero-content { width: calc(100% - 32px); min-width: 0; max-width: calc(100% - 32px); margin-inline: 16px; padding-top: 110px; }
  .rtx-reference .hero-eyebrow { font-size: 12px; line-height: 1.4; }
  .rtx-reference #hero-title { min-width: 0; overflow-wrap: normal; }
  .rtx-reference .hero-actions .gold-button { width: 100%; min-height: 50px; font-size: 14px; text-align: center; }
  .rtx-reference .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .rtx-reference .hero-proof > div { min-width: 0; padding-inline: 5px; }
  .rtx-reference .hero-proof span { font-size: 11px; line-height: 1.3; white-space: normal; text-align: center; }
  .rtx-reference .reward-alert, .rtx-reference .reward-alert strong { font-size: 12px; }
  .rtx-reference .ep-trust-bar { padding: 20px 16px; }
  .rtx-reference .ep-trust-copy, .rtx-reference .ep-trust-nav { font-size: 12px; white-space: normal; }
  .rtx-reference .ep-trust-nav a { min-height: 44px; display: inline-flex; align-items: center; }

  .ca-assurance { position: static; }
  .ca-assurance__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 16px; }
  .ca-assurance-item { font-size: 13px; font-weight: 700; }
  .ca-assurance-item span { font-size: 12px; line-height: 1.4; }

  .ep-page .topnav { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .ep-page .topnav__nav-right { width: 100%; min-width: 0; justify-content: space-between; gap: 8px; }
  .ep-page .topnav__back, .ep-page .topnav__btn { min-height: 44px; display: inline-flex; align-items: center; }
  .ep-page .topnav__btn { padding-inline: 10px; }

  .rtx-premium-page .grid-2,
  .rtx-premium-page .grid-3,
  .rtx-premium-page .grid-2-1,
  .rtx-premium-page .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .rtx-premium-page .grid,
  .rtx-premium-page .panel,
  .rtx-premium-page .panel__head,
  .rtx-premium-page .title-wrap { min-width: 0; max-width: 100%; }
  .rtx-premium-page .panel { overflow-wrap: anywhere; }
  .rtx-premium-page .funnel-h { min-width: 0; width: 100%; max-width: 100%; }
  .rtx-premium-page .simple-table { display: block; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .rtx-premium-page .metric { min-width: 0; flex-wrap: wrap; }
  .rtx-premium-page .metric b { overflow-wrap: anywhere; }

  :is(a, button, input, select):focus-visible { outline: 3px solid #986815; outline-offset: 3px; }
}

@media (max-width: 480px) {
  .rtx-reference .nav-cta { order: 3; width: 100%; }
  .rtx-reference .hero-content { padding-top: 150px; }
  .dashboard-card { padding: 20px 16px; }
  .form-panel, .preview-panel, .side-block { padding: 16px; }
  .stepper-bar-outer { padding-inline: 16px; }
  .stepper-bar, .ppv-stepper-bar { padding: 14px 16px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .ca-layout { gap: 12px; }
  .ca-assurance__inner { grid-template-columns: 1fr; }
}
