/* src/DriverPortalHelp.css */
.driver-portal-help {
  --help-surface: #fff;
  --help-text: #17212a;
  --help-muted: #425563;
  --help-divider: #dce6ee;
  --help-control: #edf4fa;
  --help-accent: #08619f;
  --help-primary: #0864ab;
  --help-top: max(12px, env(safe-area-inset-top));
  --help-bottom: max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  position: fixed;
  inset-block: var(--help-top) var(--help-bottom);
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - var(--help-top) - var(--help-bottom));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--help-divider);
  border-radius: 20px;
  background: var(--help-surface);
  color: var(--help-text);
  box-shadow: 0 18px 60px #142c4140;
}
html.mx-native-tabs-hosted .driver-portal-help {
  --help-bottom: calc(82px + max(34px, env(safe-area-inset-bottom)));
}
.driver-portal-help[open] {
  display: flex;
  flex-direction: column;
}
.driver-portal-help::backdrop {
  background: #0d1729a3;
}
.driver-portal-help-header,
.driver-portal-help-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}
.driver-portal-help-header {
  border-bottom: 1px solid var(--help-divider);
}
.driver-portal-help-reset {
  flex: none;
  padding: 10px 16px;
  border-bottom: 1px solid var(--help-divider);
}
.driver-portal-help-reset-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.driver-portal-help-reset button:disabled {
  color: var(--help-muted);
  cursor: default;
}
.driver-portal-help-reset p[role=alert] {
  margin-top: 8px;
  font-size: .875rem;
}
.driver-portal-help h2,
.driver-portal-help h3,
.driver-portal-help p {
  margin: 0;
}
.driver-portal-help h2 {
  margin-inline-end: auto;
  font-size: 1.25rem;
  line-height: 1.2;
}
.driver-portal-help h3 {
  font-size: 1rem;
  line-height: 1.3;
}
.driver-portal-help button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--help-divider);
  border-radius: 12px;
  background: var(--help-control);
  color: var(--help-accent);
  font: inherit;
  font-size: .875rem;
  font-weight: 750;
  cursor: pointer;
}
.driver-portal-help button:focus-visible {
  outline: 2px solid var(--help-accent);
  outline-offset: 2px;
}
.driver-portal-help .driver-portal-help-close {
  width: 44px;
  flex: none;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
}
.driver-portal-help-topics {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-inline: 16px;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.driver-portal-help-topics:focus-visible {
  outline: 2px solid var(--help-accent);
  outline-offset: -2px;
}
.driver-portal-help-topic {
  padding: 14px 0;
}
.driver-portal-help-topic + .driver-portal-help-topic {
  border-top: 1px solid var(--help-divider);
}
.driver-portal-help-topic p {
  margin-top: 4px;
  color: var(--help-accent);
  font-size: .8125rem;
  font-weight: 700;
}
.driver-portal-help-topic ul {
  margin: 8px 0 0;
  padding-inline-start: 19px;
  color: var(--help-muted);
  font-size: .875rem;
  line-height: 1.45;
}
.driver-portal-help-topic li + li {
  margin-top: 5px;
}
.driver-portal-help-actions {
  border-top: 1px solid var(--help-divider);
}
.driver-portal-help-actions button {
  flex: 1 1 auto;
}
.driver-portal-help-actions .driver-portal-help-primary {
  border-color: var(--help-primary);
  background: var(--help-primary);
  color: #fff;
}
html[data-theme=dark] .driver-portal-help {
  --help-surface: var(--dark-surface-raised, #22252b);
  --help-text: var(--dark-text, #f5f7fa);
  --help-muted: #c3ced8;
  --help-divider: var(--dark-border, #383c45);
  --help-control: #263744;
  --help-accent: #9ad1ff;
  --help-primary: #095da7;
  color-scheme: dark;
}

/* src/DriverPortalTour.css */
.driver-portal-help-launch {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-inline-start: auto;
  gap: 6px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #aac7df;
  border-radius: 999px;
  background: #f2f8ff;
  color: #145a90;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.driver-request-history-heading:has(> .driver-portal-help-launch) {
  justify-content: flex-start;
  gap: 8px;
}
.driver-portal-tour.paystub-viewer-backdrop {
  --tour-surface: #fff;
  --tour-text: #17212a;
  --tour-muted: #465b70;
  --tour-border: #b3cbe0;
  --tour-accent: #0062ba;
  --tour-error: #a51f29;
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow: hidden;
  padding: 0;
  background: transparent !important;
  backdrop-filter: none;
}
.driver-portal-tour-shade {
  position: absolute;
  inset: 0 0 auto;
  overflow: hidden;
  background: #071522b8;
}
.driver-portal-tour-shade.has-cutout {
  background: transparent;
}
.driver-portal-tour-cutout {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 150vmax #071522b8;
}
.driver-portal-tour-highlight {
  position: absolute;
  border: 2px solid #80c8ff;
  border-radius: 12px;
  pointer-events: none;
}
.driver-portal-tour.paystub-viewer-backdrop[data-tour-availability] {
  pointer-events: none !important;
}
.driver-portal-tour .rental-guide {
  pointer-events: auto;
}
html:has(.driver-portal-tour[data-tour-availability]) .panel:is(.calendar-panel, .on-call-calendar-panel) {
  margin-top: var(--tour-calendar-offset, 0px);
  height: min(100%, var(--tour-calendar-height, 70vh));
  grid-template-rows: none !important;
  grid-auto-rows: max-content;
  padding-bottom: 6px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
html:has(.driver-portal-tour[data-tour-availability=current]) .panel.calendar-panel > :not(.locked-week),
html:has(.driver-portal-tour[data-tour-availability=next]) .panel.calendar-panel > :not(.request-week),
html:has(.driver-portal-tour[data-tour-availability]) .calendar-panel :is(.calendar-note, .save-rental-days) {
  display: none !important;
}
@media (max-width: 680px) {
  html:has(.driver-portal-tour:not([data-tour-availability])) .calendar-panel.dual-editable-weeks {
    grid-template-rows: none !important;
    grid-auto-rows: max-content;
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
  }
  html.mx-native-design-sandbox:has(.driver-portal-tour) .compact-shell .bottom-nav {
    display: grid !important;
    position: fixed !important;
    inset: auto max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
    margin: 0 !important;
  }
  html.mx-native-design-sandbox:has(.driver-portal-tour) .compact-shell .bottom-nav::before {
    display: none;
  }
  html.mx-native-design-sandbox:has(.driver-portal-tour) .compact-shell .bottom-nav button.active {
    background: #087dcc1f !important;
  }
  html[data-theme=dark].mx-native-design-sandbox:has(.driver-portal-tour) .compact-shell .bottom-nav button.active {
    background: #51adff26 !important;
  }
}
.driver-portal-tour-bubble {
  position: absolute;
  border: 1px solid var(--tour-border);
  border-radius: 20px;
  background: var(--tour-surface);
  color: var(--tour-text);
  box-shadow: 0 12px 42px #08182959;
}
.driver-portal-tour-bubble.points-up::before,
.driver-portal-tour-bubble.points-down::before {
  content: "";
  position: absolute;
  left: var(--tour-arrow);
  width: 14px;
  height: 14px;
  background: var(--tour-surface);
  transform: translateX(-50%) rotate(45deg);
}
.driver-portal-tour-bubble.points-up::before {
  top: -8px;
  border-left: 1px solid var(--tour-border);
  border-top: 1px solid var(--tour-border);
}
.driver-portal-tour-bubble.points-down::before {
  bottom: -8px;
  border-right: 1px solid var(--tour-border);
  border-bottom: 1px solid var(--tour-border);
}
.driver-portal-tour-content {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  max-height: var(--tour-max-height);
  padding: 13px 16px 15px;
  border-radius: inherit;
}
.driver-portal-tour .rental-guide .driver-portal-tour-content {
  gap: 6px;
  padding-block: 10px;
}
.driver-portal-tour .rental-guide .driver-portal-tour-copy {
  gap: 5px;
}
.driver-portal-tour-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.driver-portal-tour-copy > * {
  flex-shrink: 0;
}
.driver-portal-tour-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.driver-portal-tour-bubble.docked .driver-portal-tour-content {
  grid-template-rows: auto auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 7px 12px;
}
.driver-portal-tour-bubble.docked .driver-portal-tour-copy {
  grid-area: 1 / 1;
  align-self: end;
}
.driver-portal-tour-bubble.docked .driver-portal-tour-content > header {
  grid-area: 2 / 1;
}
.driver-portal-tour-bubble.docked .driver-portal-tour-content > footer {
  grid-area: 1 / 2 / span 2;
}
.driver-portal-tour-bubble.docked h2 {
  font-size: 16px;
}
html:has(.driver-portal-tour[data-tour-step=proof]) .requests-panel {
  padding-bottom: 76px;
}
html:has(.driver-portal-tour[data-tour-step=proof]) .requests-panel .request-text {
  min-height: 44px;
  height: 44px;
}
.driver-portal-tour-content > header,
.driver-portal-tour-content > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.driver-portal-tour-content > footer {
  justify-content: flex-end;
}
.driver-portal-tour-content header span {
  color: var(--tour-muted);
  font-size: 12px;
  font-weight: 750;
}
.driver-portal-tour-content h2 {
  margin: 0;
  font-size: clamp(21px, 5vw, 25px);
  line-height: 1.15;
}
.driver-portal-tour-content h2:focus {
  outline: none;
}
.driver-portal-tour-content p,
.driver-portal-tour-content ul {
  margin: 0;
  color: var(--tour-muted);
  font-size: 14px;
  line-height: 1.45;
}
.driver-portal-tour-content ul {
  padding-inline-start: 19px;
  display: grid;
  gap: 6px;
}
.driver-portal-tour-content .driver-portal-tour-error {
  color: var(--tour-error);
}
.driver-portal-tour-content button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--tour-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.driver-portal-tour-content .driver-portal-tour-primary {
  padding-inline: 13px;
  background: #0062ba;
  color: #fff;
}
.driver-portal-tour-content button:disabled {
  opacity: .65;
  cursor: default;
}
.driver-portal-tour-content button:focus-visible,
.driver-portal-help-launch:focus-visible {
  outline: 2px solid #1684d6;
  outline-offset: 3px;
}
html[data-theme=dark] .driver-portal-tour {
  --tour-surface: #1c2530;
  --tour-text: #f3f8fc;
  --tour-muted: #c5d3e0;
  --tour-border: #4d6c86;
  --tour-accent: #9bd5ff;
  --tour-error: #ffb9b9;
}
html[data-theme=dark] .driver-portal-help-launch {
  border-color: #4f83a7;
  background: #182b3a;
  color: #a4d9ff;
}
html.mx-native-design-sandbox .driver-portal-tour.paystub-viewer-backdrop {
  background: transparent !important;
}
html.mx-native-design-sandbox .driver-portal-tour :is(h2, p, li, span, button),
html.mx-native-design-sandbox .driver-portal-help-launch {
  -webkit-text-fill-color: currentColor !important;
}
