:root {
  --ink: #0d1728;
  --muted: #697386;
  --line: rgba(148, 163, 184, .24);
  --surface: rgba(255, 255, 255, .84);
  --surface-strong: #ffffff;
  --dark: #0a1220;
  --blue: #1d4ed8;
  --green: #00a86b;
  --amber: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(15, 23, 42, .13);
}
* { box-sizing: border-box; }
html { background: #edf5f2; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(29, 78, 216, .13), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(0, 168, 107, .14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #edf5f2 100%);
}
body.alarm-active { animation: alarmPulse .55s ease-in-out infinite; }
@keyframes alarmPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: inset 0 0 0 14px rgba(239,68,68,.22); }
}
.driver-app {
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }
.logo {
  width: 150px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}
.logo.small {
  width: 118px;
  height: 42px;
  margin: 0;
}
.login-card,
.hero-card,
.driver-map-card,
.orders-card {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.login-card {
  margin-top: 40px;
  padding: 26px;
}
.driver-top {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-radius: 24px;
  padding: 10px 12px 10px 18px;
  background: rgba(10,18,32,.94);
  box-shadow: 0 18px 48px rgba(15,23,42,.18);
}
.driver-top button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.12);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #047857;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.20), transparent 22%),
    linear-gradient(145deg, #0b1b35 0%, #114be8 54%, #00a86b 100%);
}
.hero-card:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.driver-status-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.driver-status-banner strong {
  border-radius: 999px;
  padding: 8px 11px;
  color: #0d1728;
  background: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.driver-status-banner.status-busy .eyebrow { color: #92400e; background: #fef3c7; }
.driver-status-banner.status-offline .eyebrow,
.driver-status-banner.status-offline strong { color: #fff; background: rgba(255,255,255,.14); }
h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: clamp(32px, 8vw, 44px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: -.04em;
}
p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: rgba(255,255,255,.74);
  font-weight: 750;
}
label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 900;
}
input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d7dee9;
  border-radius: 18px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
button {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.login-card h1,
.login-card p { color: var(--ink); }
.login-card p { color: var(--muted); }
.login-card button { width: 100%; margin-top: 18px; }
.message {
  min-height: 22px;
  margin-top: 12px;
  font-weight: 850;
}
.message.danger { color: #b42318; }
.current-trip-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 14px;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.current-trip-card span,
.current-trip-card strong,
.current-trip-card small { display: block; }
.current-trip-card span {
  color: #fde68a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.current-trip-card strong {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 950;
}
.current-trip-card small {
  margin-top: 4px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 800;
}
.smart-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.smart-actions button {
  min-height: 56px;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(15,23,42,.16);
}
.smart-actions .hidden { display: none; }
.connect-action {
  color: #0d1728;
  background: linear-gradient(135deg, #d1fadf, #ffffff);
}
.offline-action {
  color: #fff;
  background: linear-gradient(135deg, #111827, #475467);
}
.route-action {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #071529, #1d4ed8);
  animation: routePulse 1.1s ease-in-out infinite;
}

.accept-offer-action,
.accept-offer-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff !important;
  border-color: #101216 !important;
  background: linear-gradient(115deg, #050608, #22262c 48%, #050608) !important;
  box-shadow: 0 14px 30px rgba(5, 6, 8, 0.3) !important;
  animation: acceptOfferPulse 1.35s ease-in-out infinite !important;
}

.accept-offer-action::after,
.accept-offer-button::after {
  position: absolute;
  z-index: 0;
  top: -45%;
  bottom: -45%;
  left: -35%;
  width: 24%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: acceptOfferShine 1.8s ease-in-out infinite;
  pointer-events: none;
}

.accept-offer-action > i,
.accept-offer-action > span,
.accept-offer-button > i,
.accept-offer-button > span {
  position: relative;
  z-index: 1;
}
.deliver-action {
  color: #fff;
  background: linear-gradient(135deg, #027a48, #00a86b);
}
.smart-actions #driver-secondary-action {
  color: var(--ink);
  background: #fff;
}
.location-line {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 900;
}
.location-line.ok {
  color: #d1fadf;
  background: rgba(0,168,107,.24);
}
.driver-map-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  margin-top: 12px;
  background: #f8fafc;
}
.driver-map {
  position: absolute;
  inset: 0;
  min-height: 330px;
}
.driver-map-msg {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(215,222,233,.92);
  border-radius: 999px;
  padding: 11px 13px;
  color: var(--muted);
  background: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(16,24,40,.08);
}
.orders-card {
  margin-top: 12px;
  padding: 18px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.section-head span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #027a48;
  background: #ecfdf3;
  font-size: 12px;
  font-weight: 950;
}
.orders-list { display: grid; gap: 12px; }
.order-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 15px;
  background: #fff;
}
.order-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.order-top span,
.order-top strong {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}
.order-top span { color: #194185; background: #eef4ff; }
.order-top strong { color: #027a48; background: #ecfdf3; }
.order-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 950;
}
.order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.status-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.status-track span {
  border-radius: 999px;
  padding: 7px 6px;
  color: #667085;
  background: #f1f5f9;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}
.status-track span.active {
  color: #027a48;
  background: #d1fadf;
}
.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.order-actions button {
  min-height: 42px;
  border-radius: 14px;
  font-size: 12px;
}
.order-actions .start-route {
  background: #ff6500;
}

.order-earnings {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid #ffd0b3;
  border-left: 4px solid #ff6500;
  border-radius: 14px;
  background: #fffaf7;
}

.order-earnings > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-earnings span {
  color: #596273;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.order-earnings strong {
  color: #111317;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.order-earnings small {
  color: #7b8492;
  font-size: 11px;
  font-weight: 650;
}

.order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 8px;
}

.order-actions .preview-route {
  grid-column: 1 / -1;
  border: 1px solid #d9dde3;
  background: #fff;
  color: #17191c;
}

.order-actions .reject-route {
  border: 1px solid #f0b7b7;
  background: #fff;
  color: #c62828;
}

.order-actions .start-route {
  border: 1px solid #ff6500;
  color: #fff;
}

@media (max-width: 480px) {
  .order-earnings strong {
    font-size: 20px;
  }

  .order-actions button {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 12px;
  }
}
@keyframes routePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.015); filter: brightness(1.12); }
}

@keyframes acceptOfferPulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.025); filter: saturate(1.18) brightness(1.06); }
}

@keyframes acceptOfferShine {
  0%, 25% { left: -35%; opacity: 0; }
  42% { opacity: 1; }
  70%, 100% { left: 118%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .accept-offer-action,
  .accept-offer-button,
  .accept-offer-action::after,
  .accept-offer-button::after {
    animation: none !important;
  }
}

.empty {
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
}
.empty.danger { color: #b42318; }
.toast-msg {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(480px, calc(100% - 36px));
  margin: 0 auto;
  border-radius: 20px;
  padding: 14px;
  color: #fff;
  background: rgba(10,18,32,.94);
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(16,24,40,.18);
  pointer-events: none;
  user-select: none;
}
.toast-msg.danger { background: #b42318; }
.toast-msg.info { background: #1d4ed8; }
.toast-msg.warning { background: #9a6700; }
@media (max-width: 520px) {
  .driver-app { padding-left: 12px; padding-right: 12px; }
  .smart-actions,
  .order-actions { grid-template-columns: 1fr; }
  .driver-map-card,
  .driver-map { min-height: 310px; }
}

/* YOVOY Driver Ops UI - compacto, limpio y orientado al viaje */
:root {
  --ops-bg: #f4f7f6;
  --ops-ink: #111827;
  --ops-muted: #697386;
  --ops-line: #e4eaf0;
  --ops-surface: rgba(255, 255, 255, 0.94);
  --ops-dark: #111a28;
  --ops-action: #00a86b;
}

body {
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 168, 107, 0.09), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(25, 118, 210, 0.08), transparent 30%),
    var(--ops-bg);
  color: var(--ops-ink);
}

.driver-app {
  gap: 12px;
  padding: 12px;
}

.driver-top {
  min-height: 58px;
  border-radius: 22px;
  background: var(--ops-dark);
  box-shadow: 0 14px 32px rgba(17, 26, 40, 0.18);
}

.driver-logo {
  max-height: 35px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  min-height: auto;
  padding: 14px;
  border: 1px solid var(--ops-line);
  border-radius: 24px;
  background: var(--ops-surface) !important;
  color: var(--ops-ink);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.hero-card:after {
  display: none;
}

.hero-card h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 7vw, 32px);
  color: var(--ops-ink);
}

.hero-card p {
  display: none;
}

.driver-status-banner,
.driver-online-badge {
  width: max-content;
  margin: 0;
  border: 1px solid #d8f4e8;
  background: #eafff5;
  color: #047857;
  box-shadow: none;
}

.driver-online-badge {
  justify-self: end;
  align-self: start;
}

.current-trip-card {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--ops-ink);
  box-shadow: none;
}

.trip-status {
  background: #eef7ff;
  color: #075985;
}

.smart-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}

.driver-btn {
  min-height: 50px;
  border-radius: 16px;
  background: var(--ops-action);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 168, 107, 0.2);
}

.driver-btn.secondary,
.driver-btn.ghost {
  border: 1px solid var(--ops-line);
  background: #fff;
  color: var(--ops-ink);
  box-shadow: none;
}

.driver-location-line {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  border: 1px solid var(--ops-line);
  background: #fff;
  color: var(--ops-muted);
}

.driver-map-card {
  min-height: 360px;
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 26px;
  background: var(--ops-surface);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.route-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
}

.route-panel-kicker {
  display: block;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-panel-head strong {
  display: block;
  color: var(--ops-ink);
  font-size: 18px;
}

.route-panel-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.route-panel-actions .hidden {
  display: none !important;
}

.map-chat-action {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 14px;
  padding: 0 13px;
  color: #fff;
  background: #17191d;
  box-shadow: 0 9px 20px rgba(23, 25, 29, .18);
  font-size: 11px;
  font-weight: 950;
}

.map-chat-action i {
  color: #ff6508;
  font-size: 15px;
}

.map-chat-action b {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef233c;
  font-size: 8px;
}

.mini-map-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ops-ink);
}

.driver-map {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 20px;
  background: #edf3f2;
}

.driver-map.driver-map-fallback {
  display: grid;
  min-height: 330px;
  place-items: stretch;
}

.driver-map-fallback svg {
  width: 100%;
  height: 100%;
  min-height: 330px;
}

.driver-map-fallback-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 14px;
  color: #fff;
  background: rgba(23, 25, 29, .88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
  backdrop-filter: blur(8px);
}

.driver-map-fallback-label > i {
  color: #ff6508;
  font-size: 18px;
}

.driver-map-fallback-label span,
.driver-map-fallback-label strong,
.driver-map-fallback-label small {
  display: block;
}

.driver-map-fallback-label strong {
  font-size: 11px;
}

.driver-map-fallback-label small {
  margin-top: 1px;
  color: #d5d9df;
  font-size: 8px;
}

.map-empty {
  border: 1px dashed #cfd8e3;
  background: #fff;
  color: var(--ops-muted);
}

.route-panel-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.route-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--ops-dark);
  color: #fff;
  font-weight: 900;
}

.route-control.exact-route {
  background: #ff6508;
  box-shadow: 0 10px 22px rgba(255, 101, 8, 0.24);
}

.map-google-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 13px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(135deg, #0b57d0, #1a73e8);
  box-shadow: 0 10px 26px rgba(11, 87, 208, 0.34);
  font-family: inherit;
  font-size: 11px;
  font-weight: 950;
}

.route-control.secondary {
  border: 1px solid var(--ops-line);
  background: #fff;
  color: var(--ops-ink);
}

.driver-map-card.route-focus {
  outline: 3px solid rgba(0, 168, 107, 0.18);
}

.orders-card {
  padding: 14px;
  border: 1px solid var(--ops-line);
  border-radius: 24px;
  background: var(--ops-surface);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.orders-card h2 {
  font-size: 20px;
}

.order-card {
  border: 1px solid var(--ops-line);
  background: #fff;
  box-shadow: none;
}

@media (max-width: 520px) {
  body {
    background: var(--ops-bg);
  }

  .driver-app {
    width: min(100%, 430px);
    padding: 10px;
  }

  .hero-card {
    border-radius: 22px;
    padding: 12px;
  }

  .driver-map-card {
    min-height: 330px;
  }

  .driver-map {
    min-height: 305px;
  }

  .route-panel-controls {
    grid-template-columns: 1fr;
  }
}
.store-delivery-card{border-left:4px solid #ff6500!important}.privacy-driver-note,.assigned-customer{display:flex;align-items:center;gap:8px;margin:10px 0;padding:10px;border-radius:12px;background:#f3f5f7;color:#667085;font-size:11px;font-weight:800}.privacy-driver-note i{color:#ff6500}.assigned-customer{display:grid;color:#17191c;background:#e8faf1}.assigned-customer small{color:#667085}
.store-chat-modal{position:fixed;z-index:90;right:12px;bottom:12px;left:12px;display:flex;max-height:70vh;flex-direction:column;padding:16px;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.3)}.store-chat-head{display:flex;align-items:center;justify-content:space-between}.store-chat-head button{width:36px;height:36px;border:0;border-radius:11px}.store-chat-messages{display:flex;min-height:240px;flex-direction:column;gap:7px;overflow:auto;margin:10px 0;padding:10px;border-radius:14px;background:#f2f4f6}.store-chat-messages>div{display:grid;align-self:flex-start;max-width:82%}.store-chat-messages>div.mine{align-self:flex-end}.store-chat-messages span{padding:9px 11px;border-radius:13px;background:#fff}.store-chat-messages .mine span{color:#fff;background:#ff6500}.store-chat-messages small{color:#8b929b;font-size:9px}.store-chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px}.store-chat-compose input{min-width:0;padding:11px;border:1px solid #dde1e6;border-radius:12px}.store-chat-compose button{width:42px;border:0;border-radius:12px;color:#fff;background:#ff6500}

/* Servicio y recorrido visibles antes de aceptar */
.current-trip-service{display:inline-flex!important;align-items:center;gap:5px;width:max-content;padding:5px 8px;border-radius:999px;color:#9a3c00!important;background:#fff0e7!important;font-size:9px!important;font-weight:950!important;letter-spacing:.04em;text-transform:uppercase}
.current-trip-locations{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.current-trip-locations>span{display:grid!important;grid-template-columns:20px 1fr;align-items:center;min-width:0;padding:7px;border:1px solid #e3e7ec;border-radius:11px;color:#4f5865!important;background:#fff!important;font-size:9px!important;line-height:1.25}
.current-trip-locations>span>i{grid-row:1/3;color:#ff6508;font-size:13px}
.current-trip-locations>span:last-child>i{color:#0f62fe}
.current-trip-locations b{color:#1b2027;font-size:8px;text-transform:uppercase}
.pickup-confirmation-reminder{display:grid!important;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;margin-top:9px;padding:9px;border:1px solid #ffc499;border-radius:13px;color:#762f00!important;background:#fff3e9}
.pickup-confirmation-reminder>i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#fff;background:#ff6508;box-shadow:0 7px 14px rgba(255,101,8,.22)}
.pickup-confirmation-reminder>span{display:grid!important;color:#762f00!important;font-size:9px!important;letter-spacing:0!important;text-transform:none!important}
.pickup-confirmation-reminder strong{margin:0!important;color:#762f00!important;font-size:11px!important;line-height:1.2!important}
.pickup-confirmation-reminder small{margin:2px 0 0!important;color:#9a4b18!important;font-size:9px!important}
.pickup-confirmation-action{background:linear-gradient(135deg,#f24f00,#ff7b19)!important;box-shadow:0 14px 28px rgba(255,101,8,.28)!important;animation:pickupConfirmationPulse 1.3s ease-in-out infinite!important}
@keyframes pickupConfirmationPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.018);box-shadow:0 18px 34px rgba(255,101,8,.4)}}
.order-route-points{display:grid;gap:6px;margin:9px 0;padding:8px;border-radius:13px;background:#f5f7f9}
.order-route-points>div{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:6px;color:#4f5865;font-size:10px}
.order-route-points>div>i{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;color:#fff;background:#ff6508}
.order-route-points>div:last-child>i{background:#0f62fe}
.order-route-points span{display:grid;min-width:0}
.order-route-points small{color:#7a8490;font-size:7px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
@media(max-width:420px){.current-trip-locations{grid-template-columns:1fr}.current-trip-locations>span{padding:6px}.order-route-points{padding:7px}}

.driver-sound-button{
  display:flex;
  width:100%;
  min-height:43px;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:9px 0 11px;
  padding:9px 13px;
  border:1px solid #ffc59d;
  border-radius:13px;
  color:#c84900;
  background:#fff3ea;
  box-shadow:0 7px 18px rgba(255,101,8,.12);
  font-family:inherit;
  font-size:11px;
  font-weight:950;
}
.driver-sound-button i{font-size:17px}
.driver-sound-button.is-active{color:#087948;border-color:#91dfbc;background:#eafaf2;box-shadow:none}
.driver-sound-button.needs-attention{animation:driverSoundAttention .8s ease-in-out infinite alternate}
@keyframes driverSoundAttention{to{border-color:#ff6508;box-shadow:0 0 0 5px rgba(255,101,8,.13)}}
@media(prefers-reduced-motion:reduce){.driver-sound-button.needs-attention{animation:none}}

/* Aviso operativo persistente: el negocio marco el pedido como listo. */
.driver-ready-pickup-banner {
  position: fixed;
  z-index: 24000;
  top: max(78px, calc(env(safe-area-inset-top) + 68px));
  left: 50%;
  width: min(500px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 14px;
  border: 2px solid #ff6508;
  border-radius: 22px;
  color: #281203;
  background: linear-gradient(145deg, #fff9f3, #ffead9);
  box-shadow: 0 22px 52px rgba(80, 32, 0, .34), 0 0 0 4px rgba(255, 101, 8, .12);
  transform: translateX(-50%);
  animation: driverReadyPickupEntrance .32s ease-out, driverReadyPickupGlow 1.2s ease-in-out 3;
}
.driver-ready-pickup-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #f45100, #ff7b19);
  box-shadow: 0 10px 22px rgba(244, 81, 0, .3);
  font-size: 23px;
}
.driver-ready-pickup-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}
.driver-ready-pickup-copy small {
  color: #bc4300;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
}
.driver-ready-pickup-copy strong {
  color: #351504;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
}
.driver-ready-pickup-copy > span {
  overflow-wrap: anywhere;
  color: #7c3c14;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}
.driver-ready-pickup-copy > span b { color: #562003; }
.driver-ready-pickup-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7px;
}
.driver-ready-pickup-actions button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 950;
  touch-action: manipulation;
}
.driver-ready-pickup-actions button:focus-visible {
  outline: 3px solid #102b59;
  outline-offset: 3px;
}
.driver-ready-pickup-focus { color: #7a2d00; background: #fff; }
.driver-ready-pickup-route {
  color: #fff;
  background: linear-gradient(135deg, #0a64e8, #0048b7);
  box-shadow: 0 9px 18px rgba(10, 100, 232, .24);
}
.driver-ready-pickup-actions .driver-ready-pickup-ack {
  grid-column: 1 / -1;
  min-height: 50px;
  border: 1px solid #ca4500;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00, #df4800);
  box-shadow: 0 9px 18px rgba(202, 69, 0, .26);
  font-size: 12px;
  letter-spacing: .01em;
  text-decoration: none;
}
.driver-ready-pickup-actions .driver-ready-pickup-ack i {
  font-size: 18px;
}
.driver-ready-pickup-actions .driver-ready-pickup-ack:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(202, 69, 0, .24);
}
@keyframes driverReadyPickupEntrance {
  from { opacity: 0; transform: translate(-50%, -16px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes driverReadyPickupGlow {
  50% { box-shadow: 0 24px 56px rgba(80, 32, 0, .38), 0 0 0 9px rgba(255, 101, 8, .2); }
}
@media (max-width: 360px) {
  .driver-ready-pickup-banner { width: calc(100vw - 16px); padding: 12px; }
  .driver-ready-pickup-copy strong { font-size: 14px; }
  .driver-ready-pickup-actions { grid-template-columns: 1fr; }
  .driver-ready-pickup-actions .driver-ready-pickup-ack { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .driver-ready-pickup-banner { animation: none; }
}
