/* Pilot entry and interface accessibility. No image-based product previews. */
:root {
  --uyali-focus: #6d28d9;
  --uyali-brand: #6d28d9;
  --uyali-brand-text: #5b21b6;
  --uyali-brand-soft: #f5f3ff;
  --uyali-control-border: #81788f;
  --uyali-checkmark: #fff;
}
:root[data-theme="dark"] {
  --uyali-focus: #c4b5fd;
  --uyali-brand: #a78bfa;
  --uyali-brand-text: #ddd6fe;
  --uyali-brand-soft: #29203d;
  --uyali-control-border: #a1a1aa;
  --uyali-checkmark: #18181b;
}
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--uyali-focus); outline-offset: 3px;
}
button:disabled { cursor: not-allowed; }
button[aria-busy="true"], [data-saving="true"] button:disabled { cursor: progress; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.login-screen { display: grid; grid-template-columns: minmax(360px,1fr) minmax(0,1fr); overflow-y: auto; color: #18181b; background: #fff; }
.login-left { width: auto; min-width: 0; padding: 32px clamp(24px,4.5vw,72px); }
.login-left-inner { max-width: 440px; align-items: stretch; gap: 16px; margin: auto; }
.entry-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.login-logo { flex: none; }
.uyali-language { display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: inherit; }
.uyali-language select { height: 44px; max-width: 120px; border: 1px solid #d4d4d8; border-radius: 10px; padding: 6px 10px; background: #fff; color: #27272a; font-size: 14px; }
.uyali-language-nav select { max-width: 88px; height: 40px; background: var(--bg-surface,#fff); color: var(--text-primary,#18181b); border-color: var(--border-primary,#d4d4d8); }
.entry-intro { padding-top: 10px; }
.entry-eyebrow { margin-bottom: 10px; color: #5b21b6; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.entry-intro h1 { margin: 0 0 10px; color: #18181b; font-size: clamp(28px,3vw,40px); line-height: 1.13; letter-spacing: -.035em; font-weight: 800; }
.entry-intro > p:last-child { margin: 0; font-size: 15px; line-height: 1.5; color: #52525b; }
.login-role-selector { align-items: stretch; gap: 8px; }
.login-role-label { font-size: 12px; text-transform: none; letter-spacing: 0; color: #52525b; }
.login-role-circles { gap: 8px; align-items: stretch; }
.login-role-circle { flex-direction: row; justify-content: center; gap: 8px; width: auto; max-width: none; min-height: 48px; padding: 10px 12px; border-width: 1.5px; color: #3f3f46; }
.login-role-circle svg { width: 18px; height: 18px; flex: none; }
.login-role-circle-label { font-size: 13px; font-weight: 600; line-height: 1.3; }
.login-role-circle.active[data-login-role="explorer"] { background: #ecfdf5; border-color: #059669; color: #065f46; }
.login-role-circle.active[data-login-role="runner"] { background: #f5f3ff; border-color: #7c3aed; color: #5b21b6; }
.login-form { gap: 12px; }
.login-input { min-width: 0; font-size: 16px; }
.login-field-label { padding-inline-start: 2px; padding-left: 0; }
.login-input::placeholder { color: #71717a; }
.login-field:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 2px #7c3aed25; }
.login-field .login-input:focus-visible { outline: none; }
.login-continue-btn { min-height: 48px; height: auto; padding: 14px 16px; margin: 0; }
.login-continue-btn:disabled { opacity: .65; }
.login-btn-text { font-size: 14px; line-height: 1.3; }
.login-form .uyali-account-actions { margin: 0; gap: 6px 12px; }
.login-form .uyali-secondary-button { min-height: 44px; margin: 0; padding: 11px 16px; font-size: 14px; }
#uyali-account-notice { margin: 0; padding: 12px; font-size: 12px; line-height: 1.5; color: #3f3f46; text-align: start; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px; }
#uyali-account-notice:empty { display: none; }
.login-screen[data-availability="unavailable"] #uyali-account-notice { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.entry-identity { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #52525b; font-size: 12px; line-height: 1.5; }
.entry-identity svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #047857; }
.login-signup { margin: 0; text-align: start; line-height: 1.5; font-size: 12px; }
.login-signup .uyali-text-button { min-height: 44px; padding: 8px 0; }
.login-left-inner > .login-legal { margin: 0; color: #52525b; text-align: start; font-size: 11px; line-height: 1.6; }
.login-legal a, .login-screen .uyali-text-button { color: #5b21b6; }
.login-right { display: flex; align-items: center; min-width: 0; padding: clamp(28px,4.5vw,72px); border: 0; border-inline-start: 1px solid #e4e4e7; background: #f5f3ff; overflow: visible; }
.login-preview { width: 100%; height: auto; max-width: 530px; margin: auto; padding: 0; background: transparent; overflow: visible; }
.entry-preview-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.entry-preview-tag { padding: 7px 10px; border: 1px solid #c4b5fd; border-radius: 8px; color: #5b21b6; font-size: 11px; font-weight: 600; }
.entry-city { color: #71717a; font-size: 11px; letter-spacing: .1em; }
.login-preview-img { display: none; position: static; inset: auto; width: auto; height: auto; opacity: 1; transition: none; object-fit: initial; }
.login-preview-img.active { display: block; }
.entry-preview-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; background: #18181b; color: #fff; border-radius: 15px; }
.entry-preview-icon svg { width: 24px; height: 24px; }
.login-preview h2 { max-width: 390px; margin: 0 0 16px; color: #18181b; font-size: clamp(28px,3vw,42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
.login-preview-img > p { color: #52525b; margin: 0; font-size: 15px; line-height: 1.65; }
.entry-example-card { margin-top: 28px; padding: 24px; border: 1px solid #e4e4e7; border-radius: 18px; background: #fff; box-shadow: 0 10px 25px #18181b05; }
.entry-example-label { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.entry-example-label svg { width: 20px; height: 20px; color: #047857; flex: none; }
.entry-example-card > p { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #52525b; }
.entry-example-budget { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4e4e7; font-size: 12px; color: #52525b; }
.entry-example-budget strong { font-size: 20px; color: #065f46; white-space: nowrap; }
.entry-example-card .entry-example-note { font-size: 11px; }
.entry-availability { margin: 28px 0 0; color: #71717a; font-size: 11px; line-height: 1.6; }
.entry-runner-steps { display: grid; gap: 16px; margin: 28px 0 0; padding-inline-start: 26px; color: #5b21b6; font-size: 14px; font-weight: 600; }
.entry-runner-steps li { padding-inline-start: 6px; }
.form-chips .chip { font: inherit; font-size: 12px; cursor: pointer; }
.voice-play-btn, .voice-remove-btn, .image-remove-btn { min-height: 44px; min-width: 44px; }
[dir="rtl"] body { font-family: Geist, "IBM Plex Sans Arabic", Arial, sans-serif; }
[dir="rtl"] .entry-eyebrow, [dir="rtl"] .entry-intro h1, [dir="rtl"] .login-preview h2 { letter-spacing: 0; }
[dir="rtl"] .login-btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .login-continue-btn:hover .login-btn-arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .uyali-field, [dir="rtl"] .modal-title, [dir="rtl"] .form-label, [dir="rtl"] .id-step-desc { text-align: start; }
[dir="rtl"] .form-input-icon { left: auto; right: 16px; }
[dir="rtl"] .form-input-wrap > .form-input { padding-left: 16px; padding-right: 44px; }
[dir="rtl"] .role-switcher-dropdown { right: auto; left: 0; }
[dir="rtl"] .support-panel { right: auto; left: 24px; }
[dir="rtl"] .support-fab { right: auto; left: 24px; }
@media (max-width: 900px) {
  .login-screen { grid-template-columns: minmax(0,1fr); }
  .login-left { padding: max(22px,env(safe-area-inset-top)) 24px max(22px,env(safe-area-inset-bottom)); align-items: flex-start; }
  .login-left-inner { max-width: 430px; gap: 12px; }
  .login-right { display: none; }
  .entry-intro { padding-top: 8px; }
  .entry-intro h1 { font-size: 30px; max-width: 400px; }
  .entry-intro > p:last-child { font-size: 14px; }
  .entry-eyebrow { margin-bottom: 8px; }
}
@media (max-width: 480px) {
  .login-left { padding-inline: 20px; }
  .entry-topline { gap: 10px; }
  .entry-topline .uyali-language { gap: 6px; }
  .entry-topline .uyali-language > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .login-logo-icon { width: 32px; height: 32px; border-radius: 8px; }
  .login-logo-text { font-size: 18px; }
  .entry-intro h1 { font-size: 28px; }
  .login-role-circle { padding: 10px 8px; }
  .login-role-circle-label { font-size: 12px; }
  .login-role-circles:has([data-login-role="merchant"]:not([hidden])) { flex-wrap: wrap; }
  .login-role-circle[data-login-role="merchant"] { flex-basis: 100%; min-height: 40px; }
  .uyali-language-nav select { width: 62px; padding-inline: 6px; font-size: 12px; }
  .nav-right { gap: 4px; }
  [dir="rtl"] .support-panel { left: 12px; right: 12px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .login-left, .login-right { padding-block: 24px; align-items: flex-start; }
  .login-left-inner { gap: 12px; }
  .entry-intro h1 { font-size: 30px; }
}
.uyali-local-media-note { flex: 1 0 100%; margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--text-secondary,#52525b); }
.voice-preview, .image-preview { flex-wrap: wrap; }

.profile-menu-item { width: 100%; background: transparent; border: 0; color: inherit; text-align: start; font: inherit; cursor: pointer; }
.transport-card .transport-title, .transport-card .transport-desc { display: block; }

/* Uiverse choice-tile adaptation: Yaya12085/silent-liger-85.
   Author credit and the full MIT notice are included in checkout.css and docs/design-resources.md.
   Keep Uyali's existing labelled buttons, aria-pressed state, and Lucide icons. */
.transport-card {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 18px 14px;
  border: 1.5px solid var(--uyali-control-border);
  border-radius: 14px;
  background: var(--bg-card, #fff);
  color: var(--text-primary, #18181b);
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.transport-card::before {
  content: "";
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--uyali-control-border);
  border-radius: 50%;
  background: var(--bg-card, #fff);
}
.transport-card:is(.active, [aria-pressed="true"]) {
  border-color: var(--uyali-brand);
  background: var(--uyali-brand-soft);
  box-shadow: inset 0 0 0 1px var(--uyali-brand);
  transform: none;
}
.transport-card:is(.active, [aria-pressed="true"])::before {
  border-color: var(--uyali-brand);
  background: var(--uyali-brand);
  box-shadow: inset 0 0 0 3px var(--bg-card, #fff);
}
.transport-card:is(.active, [aria-pressed="true"]) .transport-icon { color: var(--uyali-brand-text); }
.transport-card .transport-icon { width: 24px; height: 24px; margin-block-end: 10px; }
.transport-card .transport-title { padding-inline: 4px; line-height: 1.4; }
.transport-card .transport-desc { margin-block-start: 5px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.login-role-circle { border-radius: 12px; transition: border-color 120ms ease, background-color 120ms ease; }
.login-role-circle[aria-pressed="true"] { box-shadow: inset 0 -2px 0 currentColor; }

/* Form and action states use a single border/focus vocabulary. */
:is(#uyali-action-modal, #uyali-account-dialog, #uyali-point-dialog) .form-input {
  border-color: var(--uyali-control-border);
  border-width: 1px;
  border-radius: 11px;
}
:is(#uyali-action-modal, #uyali-account-dialog, #uyali-point-dialog) .form-input:focus {
  border-color: var(--uyali-brand);
  box-shadow: 0 0 0 1px var(--uyali-brand);
}
:is(#uyali-action-modal, #uyali-account-dialog, #uyali-point-dialog) .form-input:is([aria-invalid="true"], :user-invalid) {
  border-color: #b42318;
  border-width: 2px;
}
.login-field:focus-within { border-color: var(--uyali-focus); box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 0 5px var(--uyali-focus); }
.login-screen .login-field:focus-within { border-color: #6d28d9; box-shadow: 0 0 0 2px #fff, 0 0 0 5px #6d28d9; }
:is(#uyali-action-modal, #uyali-account-dialog, #uyali-point-dialog) .modal-submit-btn {
  background: #6d28d9;
  color: #fff;
  border: 1px solid #6d28d9;
  border-radius: 12px;
}
:is(#uyali-action-modal, #uyali-account-dialog, #uyali-point-dialog) .modal-submit-btn:disabled { opacity: .55; box-shadow: none; transform: none; }
.uyali-secondary-button { border-radius: 12px; }
.uyali-secondary-button:disabled { opacity: .6; }
.uyali-language-nav select { min-height: 44px; }
.form-chips .chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#uyali-action-error:not(:empty), #uyali-account-error:not(:empty) { padding: 12px 14px; border-inline-start: 3px solid #b42318; border-radius: 8px; line-height: 1.6; }
[dir="rtl"] .transport-card { text-align: center; }
@media (hover: hover) {
  .transport-card:hover { transform: none; border-color: var(--uyali-brand); }
  :is(#uyali-action-modal, #uyali-account-dialog, #uyali-point-dialog) .modal-submit-btn:not(:disabled):hover { background: #5b21b6; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  :is(button, a, input, textarea, select, summary):focus-visible { outline-color: Highlight; }
  .transport-card:is(.active, [aria-pressed="true"]) { border: 3px solid Highlight; }
  .transport-card:is(.active, [aria-pressed="true"])::before { background: Highlight; border-color: Highlight; forced-color-adjust: none; }
}

/* Compact controls keep their labels separate from their state indicators. */
.wallet-top { gap: 16px; flex-wrap: wrap; }
.online-toggle {
  width: auto;
  min-width: 148px;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  padding: 7px 12px 7px 7px;
  gap: 9px;
  color: #fff;
  border: 1px solid transparent;
}
.online-toggle.online { background: #047857; }
.online-toggle .toggle-handle,
.online-toggle.online .toggle-handle {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  transform: none;
}
.online-toggle .toggle-label,
.online-toggle.offline .toggle-label {
  position: static;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  opacity: 1;
}
[dir="rtl"] .online-toggle { padding-inline: 7px 12px; }

/* A map's controls use solid surfaces; its status never replaces page controls. */
.map-top-controls { z-index: 1100; pointer-events: none; }
.map-top-controls > * { pointer-events: auto; }
.map-locate-btn,
.delivery-picker-main,
.delivery-search-dropdown {
  background: var(--bg-card, #fff) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.map-locate-btn { border-color: var(--uyali-control-border); color: var(--uyali-brand-text); }
.map-locate-btn:is(:hover, :active) { transform: none; }
.delivery-picker-label { font-size: 11px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.delivery-picker-main { min-height: 48px; }
.delivery-result-item { min-height: 48px; text-align: start; }
.delivery-result-info { min-width: 0; }
.delivery-result-name, .delivery-result-sub { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.delivery-search-results { overscroll-behavior: contain; scroll-padding-block: 12px; }
.leaflet-bottom.leaflet-left { max-width: calc(100% - 76px); }
.uyali-map-status {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
  padding: 8px 10px;
  margin-bottom: 34px !important;
  border: 1px solid var(--border-primary, #d4d4d8);
  border-radius: 12px;
  background: var(--bg-card, #fff);
  color: var(--text-primary, #18181b);
  box-shadow: 0 2px 8px rgb(24 24 27 / .08);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}
.uyali-map-status > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.uyali-map-status > button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  max-width: 90px;
  padding: 8px;
  border: 1px solid var(--uyali-control-border);
  border-radius: 8px;
  background: var(--bg-card, #fff);
  color: var(--uyali-brand-text);
  font: inherit;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
.uyali-map-status[hidden], .uyali-map-status [hidden] { display: none !important; }
.leaflet-control-attribution { max-width: 100%; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.leaflet-container a.leaflet-popup-close-button {
  inset-inline-end: 4px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 24px;
  color: var(--text-secondary, #52525b);
}
.leaflet-popup-content { margin: 16px; margin-inline-end: 48px; max-width: calc(100vw - 104px); line-height: 1.5; overflow-wrap: anywhere; }
[dir="rtl"] .leaflet-container a.leaflet-popup-close-button { right: auto; left: 4px; }
.uyali-pin-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: #6d28d9;
  color: #fff;
  box-shadow: 0 2px 6px rgb(24 24 27 / .25);
}
.uyali-pin-pickup { background: #92400e; border-radius: 10px; }
.uyali-pin-runner { background: #1d4ed8; border-radius: 50%; }
.uyali-pin-icon svg { pointer-events: none; }

@media (max-width: 768px) {
  .nav-right { flex: 0 0 auto; }
  .nav-right > * { flex-shrink: 0; }
  .home-map { flex: 0 0 clamp(208px, 30dvh, 260px); min-height: 208px; }
  .home-sidebar, .home-sidebar.expanded { flex: 1 1 auto; height: auto; max-height: none; }
  #screen-home:has(.home-sidebar.expanded) .home-map { display: none; }
  .sheet-drag-handle { width: 100%; min-height: 44px; align-items: center; padding: 10px 0; flex: none; }
  .sidebar-header { padding-top: 0; }
  .sidebar-form { scroll-padding-block: 20px; }
  .sidebar-form :is(input, select, button, summary) { scroll-margin-block: 16px; }
  .sidebar-footer { padding-bottom: 12px; }
  .checkout-btn { height: auto; min-height: 52px; padding-block: 10px; }
  .checkout-text { min-width: 0; }
  .checkout-label, .checkout-price { overflow-wrap: anywhere; }
  .delivery-picker-address { font-size: 14px; }
  .delivery-picker-label { font-size: 11px; }
  .delivery-search-input { min-height: 44px; font-size: 16px; }
  .delivery-result-name { font-size: 14px; }
  .delivery-result-sub { font-size: 12px; }
  .leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
  .uyali-map-status { max-width: calc(100vw - 98px); }
  .wallet-card { padding: 20px; }
  .wallet-top { margin-bottom: 24px; }
  .wallet-avatar-wrap { width: 44px; height: 44px; }
  .wallet-balance { overflow-wrap: anywhere; }
  .runner-tab { white-space: normal; line-height: 1.4; }
  #top-nav, .mobile-bottom-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wallet-glow { display: none; }
}
@media (max-width: 420px) {
  .nav-title { display: none; }
  .nav-brand { flex: 0 0 32px; }
  #top-nav { gap: 6px; padding-inline: 8px; }
}
@media (max-width: 768px) and (max-height: 560px) {
  #screen-home.active { overflow-y: auto; display: block; }
  .home-map { height: 208px; min-height: 208px; }
  .home-sidebar { min-height: calc(100dvh - 124px); overflow: visible; }
  .sidebar-form { overflow: visible; }
  .sidebar-footer { position: sticky; bottom: 0; z-index: 2; }
}
