/*
 * KAN-14: Customer / Rider / Vendor mode switcher (resources/views/partials/mode-switcher.blade.php).
 *
 * It lives on the white storefront account page AND in the rider app's dark or light side
 * drawer, where the storefront's --oa-* tokens are not loaded. So it inherits the text colour
 * of whatever it sits in, draws lines and wells from that colour, and keeps only the brand lime
 * as a fixed accent. A host can still tune it through the --oy-ms-* custom properties.
 */
.oy-ms {
  --oy-ms-accent: #A6CE39;
  --oy-ms-on-accent: #1A1A1A;
  --oy-ms-line: rgba(127, 127, 127, .22);
  --oy-ms-well: rgba(127, 127, 127, .12);
  color: inherit;
}
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .oy-ms {
    --oy-ms-line: color-mix(in srgb, currentColor 14%, transparent);
    --oy-ms-well: color-mix(in srgb, currentColor 8%, transparent);
  }
}
.oy-ms *, .oy-ms *::before, .oy-ms *::after { box-sizing: border-box; }

.oy-ms .oy-ms-list { list-style: none; margin: 0; padding: 0; }
.oy-ms .oy-ms-form { margin: 0; }
.oy-ms .oy-ms-list > li + li .oy-ms-row { border-top: 1px solid var(--oy-ms-line); }

.oy-ms .oy-ms-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 0;
  margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  color: inherit; font: inherit; font-size: 15px; text-align: start; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oy-ms .oy-ms-row:hover, .oy-ms .oy-ms-row:focus { background: none; color: inherit; }
.oy-ms .oy-ms-row:focus-visible { outline: 2px solid var(--oy-ms-accent); outline-offset: 2px; border-radius: 12px; }
.oy-ms .oy-ms-row:active .oy-ms-ic { transform: scale(.94); }

.oy-ms .oy-ms-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--oy-ms-well); color: inherit;
  transition: transform .12s ease;
}
.oy-ms .is-current .oy-ms-ic { background: var(--oy-ms-accent); color: var(--oy-ms-on-accent); }

.oy-ms .oy-ms-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.oy-ms .oy-ms-text strong { font-weight: 700; font-size: 15px; line-height: 20px; }
.oy-ms .oy-ms-text small {
  display: block; font-size: 12.5px; line-height: 18px; font-weight: 500; opacity: .72;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.oy-ms .oy-ms-badge {
  flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  line-height: 18px; background: var(--oy-ms-accent); color: var(--oy-ms-on-accent);
}
.oy-ms .oy-ms-chev { flex: 0 0 auto; opacity: .55; }
[dir="rtl"] .oy-ms .oy-ms-chev { transform: scaleX(-1); }

.oy-ms .oy-ms-note { margin: 6px 0 0; font-size: 12.5px; line-height: 18px; opacity: .68; }
[dir="rtl"] .oy-ms .oy-ms-text strong, [dir="rtl"] .oy-ms .oy-ms-note { line-height: 1.8; }
