/* ============================================================
   DLMS Rider Portal CSS  v2.5.0
   Mobile-first, max-width 480px, full-width even on desktop
   ============================================================ */

:root {
  --rider-blue:   #1a3c6e;
  --rider-teal:   #0f7b8c;
  --rider-green:  #16a34a;
  --rider-orange: #ea580c;
  --rider-red:    #dc2626;
  --rider-light:  #f4f6fb;
  --rider-border: #e2e8f0;
  --rider-muted:  #6c7a8d;
  --rider-shadow: 0 2px 12px rgba(26,60,110,.10);
  --rider-radius: 12px;
  --rider-font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Wrapper: always 480px max, centered ─── */
#dlms-rider-wrap {
  font-family: var(--rider-font);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: var(--rider-light);
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
}
/* Kill WordPress content padding that causes side-scroll */
#dlms-rider-wrap *,
#dlms-rider-wrap *::before,
#dlms-rider-wrap *::after { box-sizing: border-box; }

/* ── Login ───────────────────────────────── */
.dlms-rider-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(150deg, #1a3c6e 0%, #0f7b8c 100%);
}
.dlms-rider-login-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.dlms-rider-login-logo  { font-size: 40px; text-align: center; margin-bottom: 8px; }
.dlms-rider-login-title { font-size: 20px; font-weight: 800; color: var(--rider-blue); text-align: center; margin: 0 0 4px; }
.dlms-rider-login-sub   { font-size: 13px; color: var(--rider-muted); text-align: center; margin: 0 0 20px; }
.dlms-rider-field-label { display: block; font-size: 12px; font-weight: 600; color: var(--rider-muted); margin: 0 0 5px; text-transform: uppercase; letter-spacing: .5px; }
.dlms-rider-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--rider-border);
  border-radius: 10px; font-size: 15px; outline: none; background: #fff;
  transition: border-color .2s;
}
.dlms-rider-input:focus { border-color: var(--rider-teal); }
.dlms-rider-pin-wrap { position: relative; margin-bottom: 16px; }
.dlms-rider-pin-wrap .dlms-rider-input { padding-right: 44px; }
.dlms-rider-pin-wrap button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px; color: var(--rider-muted);
}
.dlms-rider-login-msg {
  font-size: 13px; padding: 8px 12px; border-radius: 8px;
  margin-bottom: 12px; display: none;
}
.dlms-rider-login-btn {
  width: 100%; padding: 14px; background: var(--rider-blue); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.dlms-rider-login-btn:hover { background: #233f73; }
.dlms-rider-login-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Topbar ──────────────────────────────── */
.dlms-rider-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--rider-blue); color: #fff;
  padding: 12px 16px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.dlms-rider-topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 22px; }
.dlms-rider-topbar-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.dlms-rider-topbar-sub  { font-size: 11px; opacity: .75; }
.dlms-rider-btn-logout  {
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.dlms-rider-btn-logout:hover { background: rgba(255,255,255,.28); }

/* ── Tabs ────────────────────────────────── */
.dlms-rider-tabs {
  display: flex; background: #fff; border-bottom: 2px solid var(--rider-border);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.dlms-rider-tabs::-webkit-scrollbar { display: none; }
.dlms-rider-tab {
  flex: 1; min-width: 72px; padding: 10px 6px; font-size: 12px; font-weight: 600;
  color: var(--rider-muted); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.dlms-rider-tab.active  { color: var(--rider-teal); border-bottom-color: var(--rider-teal); }
.tab-count {
  display: inline-block; background: var(--rider-teal); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 10px;
  padding: 1px 6px; margin-left: 3px; vertical-align: middle;
}

/* ── Panels ──────────────────────────────── */
.dlms-rider-panel { display: none; padding: 12px; }
.dlms-rider-panel.active { display: block; }

.dlms-rider-panel-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 40px; justify-content: center; color: var(--rider-muted); font-size: 14px;
}
.dlms-rider-spinner {
  width: 20px; height: 20px; border: 2px solid var(--rider-border);
  border-top-color: var(--rider-teal); border-radius: 50%;
  animation: dlms-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes dlms-spin { to { transform: rotate(360deg); } }

.dlms-rider-empty {
  text-align: center; padding: 48px 20px; color: var(--rider-muted);
}
.dlms-rider-empty .empty-icon { font-size: 44px; margin-bottom: 12px; }
.dlms-rider-empty p { font-size: 14px; margin: 0; }

/* ── Order cards ─────────────────────────── */
.rider-list-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--rider-muted); font-weight: 600;
  padding: 4px 2px 8px; text-transform: uppercase; letter-spacing: .4px;
}
.dlms-rider-order-card {
  background: #fff; border-radius: var(--rider-radius);
  box-shadow: var(--rider-shadow); margin-bottom: 10px;
  border: 1px solid var(--rider-border); overflow: hidden;
}
.dlms-rider-card-urgent { border-left: 3px solid var(--rider-orange); }
.dlms-rider-card-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px 4px; border-bottom: 1px solid var(--rider-border);
}
.dlms-rider-order-meta { display: flex; align-items: center; gap: 7px; }
.dlms-rider-order-num  { font-size: 13px; font-weight: 700; color: var(--rider-blue); }
.dlms-rider-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.dlms-rider-badge.express { background: #fff3e0; color: var(--rider-orange); }
.dlms-rider-date-pill {
  font-size: 11px; font-weight: 600; color: var(--rider-teal);
  background: #e8f7f9; padding: 3px 8px; border-radius: 20px;
}
.dlms-rider-card-info  { padding: 10px 14px; }
.dlms-rider-customer-name { font-size: 15px; font-weight: 700; color: var(--rider-blue); margin-bottom: 4px; }
.dlms-rider-addr-line,
.dlms-rider-slot-line  { font-size: 12px; color: var(--rider-muted); line-height: 1.5; }
.dlms-rider-card-foot  {
  padding: 10px 14px; border-top: 1px solid var(--rider-border);
  display: flex; gap: 8px;
}

/* ── Buttons ─────────────────────────────── */
.dlms-rider-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; border-radius: 9px; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border: none; cursor: pointer; transition: all .2s; text-decoration: none;
  line-height: 1;
}
.dlms-rider-btn-primary { background: var(--rider-teal); color: #fff; width: 100%; }
.dlms-rider-btn-primary:hover { background: #0a6270; }
.dlms-rider-btn-ghost   { background: transparent; color: var(--rider-blue); border: 1.5px solid var(--rider-border); }
.dlms-rider-btn-ghost:hover { border-color: var(--rider-teal); color: var(--rider-teal); }
.dlms-rider-confirm-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px; background: var(--rider-blue); color: #fff;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s; margin-top: 16px;
}
.dlms-rider-confirm-btn:hover   { background: #233f73; }
.dlms-rider-confirm-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Modal — full-screen overlay, content capped at 480px ── */
#dlms-rider-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Inner container — same max-width as the portal card */
#dlms-rider-modal-inner {
  display: flex; flex-direction: column;
  width: 100%; max-width: 480px; height: 100dvh; max-height: 100dvh; min-height: 0;
  background: var(--rider-light); flex-shrink: 0; overflow: hidden;
}
@supports not (height: 100dvh) { #dlms-rider-modal-inner { height: 100vh; max-height: 100vh; } }
.dlms-rider-modal-topbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--rider-blue); color: #fff;
  padding: 12px 16px; position: sticky; top: 0; z-index: 1;
  flex-shrink: 0;
}
.dlms-rider-modal-topbar button {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 8px; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#dlms-rider-modal-title { font-size: 15px; font-weight: 700; flex: 1; }
#dlms-rider-modal-body  { padding: 14px; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── Info cards in modal ─────────────────── */
.dlms-rider-info-card {
  background: #fff; border-radius: var(--rider-radius);
  border: 1px solid var(--rider-border); padding: 14px;
  margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.dlms-rider-card-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--rider-muted); font-weight: 700; margin-bottom: 8px;
}
.dlms-rider-detail-name { font-size: 17px; font-weight: 800; color: var(--rider-blue); margin-bottom: 8px; }
.dlms-rider-call-btn,
.dlms-rider-maps-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  text-decoration: none; margin: 6px 0; border: none; cursor: pointer; width: 100%;
}
.dlms-rider-call-btn { background: #e8f5e9; color: var(--rider-green); }
.dlms-rider-maps-btn { background: #e3f2fd; color: #1565c0; }
.dlms-rider-addr-full { font-size: 13px; color: var(--rider-muted); line-height: 1.5; margin: 6px 0; }
.dlms-rider-notes-row { font-size: 13px; color: var(--rider-muted); background: #fffde7; padding: 8px 10px; border-radius: 8px; margin-top: 8px; }

/* ── Invoice link ───────────────────────── */
.dlms-rider-invoice-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 13px; background: #eff6ff; color: #1d4ed8;
  border: 1.5px solid #bfdbfe; border-radius: 12px; font-size: 14px;
  font-weight: 700; text-decoration: none; margin: 12px 0; box-sizing: border-box;
  transition: background .2s;
}
.dlms-rider-invoice-link:hover { background: #dbeafe; }

/* ── Schedule grid ───────────────────────── */
.dlms-rider-schedule-row { display: flex; gap: 8px; }
.dlms-rider-schedule-cell { flex: 1; background: var(--rider-light); border-radius: 8px; padding: 8px 10px; }
.sched-label { font-size: 10px; text-transform: uppercase; color: var(--rider-muted); font-weight: 600; margin-bottom: 3px; }
.sched-val   { font-size: 13px; font-weight: 700; color: var(--rider-blue); }

/* ── Services list ───────────────────────── */
.dlms-rider-svc-cat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--rider-muted); letter-spacing: .5px; margin: 10px 0 4px; }
.dlms-rider-svc-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rider-border); }
.dlms-rider-svc-row:last-child { border-bottom: none; }
.dlms-rider-svc-name { font-size: 13px; color: var(--rider-blue); }
.dlms-rider-svc-val  { font-size: 12px; font-weight: 600; color: var(--rider-blue); }
.dlms-rider-svc-tbd  { font-size: 11px; color: var(--rider-muted); font-style: italic; }

/* ── Pickup form ─────────────────────────── */
.dlms-rider-form-hint { font-size: 13px; color: var(--rider-muted); background: #fff; border: 1px solid var(--rider-border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.dlms-rider-item-entry {
  background: #fff; border-radius: 10px; border: 1px solid var(--rider-border);
  padding: 12px; margin-bottom: 8px; position: relative;
}
.dlms-rider-item-name   { font-size: 14px; font-weight: 700; color: var(--rider-blue); margin-bottom: 10px; padding-right: 28px; }
.dlms-rider-item-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.dlms-rider-stepper-group { flex: 1; min-width: 120px; }
.dlms-rider-stepper-label { font-size: 11px; color: var(--rider-muted); font-weight: 600; margin-bottom: 5px; }
.dlms-rider-stepper {
  display: flex; align-items: center; background: var(--rider-light);
  border-radius: 9px; border: 1.5px solid var(--rider-border); overflow: hidden;
}
.rider-stepper-btn {
  width: 38px; height: 38px; background: none; border: none; font-size: 18px;
  color: var(--rider-blue); cursor: pointer; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
}
.rider-stepper-btn:active { background: var(--rider-border); }
.dlms-rider-stepper-val {
  flex: 1; text-align: center; border: none; background: transparent;
  font-size: 15px; font-weight: 700; color: var(--rider-blue);
  padding: 0 4px; min-width: 0; outline: none; -moz-appearance: textfield;
}
.dlms-rider-stepper-val::-webkit-inner-spin-button,
.dlms-rider-stepper-val::-webkit-outer-spin-button { -webkit-appearance: none; }
.dlms-rider-item-linetotal {
  font-size: 14px; font-weight: 800; color: var(--rider-teal);
  text-align: right; margin: 8px 0 4px;
}
.dlms-rider-note-input {
  width: 100%; border: 1px solid var(--rider-border); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; color: var(--rider-muted); background: var(--rider-light);
  outline: none; margin-top: 4px;
}
.rider-item-remove-btn {
  position: absolute; top: 10px; right: 10px;
  background: #fee2e2; color: var(--rider-red); border: none;
  border-radius: 6px; width: 24px; height: 24px; cursor: pointer;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ── Add item button ─────────────────────── */
.dlms-rider-add-item-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px; margin: 6px 0 16px;
  background: #f0fdf4; color: var(--rider-green);
  border: 1.5px dashed var(--rider-green); border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.dlms-rider-add-item-btn:hover { background: #dcfce7; }

/* ── Totals ──────────────────────────────── */
.dlms-rider-totals {
  background: var(--rider-blue); border-radius: 12px; padding: 14px;
  margin: 12px 0; color: #fff;
}
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 4px 0;
}
.total-row.grand { font-size: 18px; font-weight: 800; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.2); }

/* ── Discount section ────────────────────── */
.dlms-rider-discount-section { margin-bottom: 12px; }
.dlms-rider-discount-block {
  background: #fff; border: 1px solid var(--rider-border); border-radius: 10px;
  padding: 12px; margin-bottom: 8px;
}
.disc-block-title { font-size: 12px; font-weight: 700; color: var(--rider-blue); margin-bottom: 9px; }
.dlms-rider-coupon-row { display: flex; gap: 8px; }
.dlms-rider-coupon-input {
  flex: 1; border: 1.5px solid var(--rider-border); border-radius: 9px;
  padding: 10px 12px; font-size: 14px; font-weight: 600; letter-spacing: 1px;
  outline: none; background: var(--rider-light);
}
.dlms-rider-coupon-input:focus { border-color: var(--rider-teal); }
.dlms-rider-coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 9px; padding: 9px 12px;
  font-size: 13px; font-weight: 600; color: var(--rider-green);
}
.dlms-rider-coupon-remove {
  background: none; border: none; color: var(--rider-red); cursor: pointer; font-size: 16px; font-weight: 700; padding: 0 4px;
}

/* Manual discount */
.dlms-rider-manual-disc-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.dlms-rider-disc-type-wrap  { display: flex; gap: 6px; flex-wrap: wrap; }
.disc-type-pill {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 6px 11px;
  background: var(--rider-light); border: 1.5px solid var(--rider-border);
  border-radius: 20px; color: var(--rider-muted); transition: all .15s;
}
.disc-type-pill:has(input:checked) { background: var(--rider-teal); border-color: var(--rider-teal); color: #fff; }
.disc-type-pill input { display: none; }
#rider-manual-disc-input-wrap { margin-top: 8px; }

/* ── Section label ───────────────────────── */
.dlms-rider-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--rider-muted); margin: 14px 0 7px;
}

/* ── Bill preview ────────────────────────── */
.dlms-rider-bill-summary { }
.dlms-rider-bill-cat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--rider-muted); margin: 10px 0 3px; letter-spacing: .5px; }
.dlms-rider-bill-row {
  display: flex; justify-content: space-between; padding: 5px 0;
  font-size: 13px; color: var(--rider-blue);
}
.dlms-rider-bill-row.indent { padding-left: 10px; }
.dlms-rider-bill-row.grand  { font-size: 16px; font-weight: 800; padding: 8px 0 2px; }
.dlms-rider-bill-row.disc   { color: var(--rider-green); }
.dlms-rider-bill-row.rider-disc { color: var(--rider-orange); }
.dlms-rider-bill-divider   { border: none; border-top: 1px solid var(--rider-border); margin: 6px 0; }

/* ── Payment options ─────────────────────── */
.dlms-rider-pay-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dlms-rider-pay-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 2px solid var(--rider-border); border-radius: 12px;
  cursor: pointer; transition: all .15s;
}
.dlms-rider-pay-option.selected { border-color: var(--rider-teal); background: #e8f7f9; }
.pay-icon  { font-size: 24px; flex-shrink: 0; }
.pay-label { font-size: 14px; font-weight: 700; color: var(--rider-blue); }
.pay-desc  { font-size: 12px; color: var(--rider-muted); margin-top: 2px; }

/* ── Select ──────────────────────────────── */
.dlms-rider-select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--rider-border);
  border-radius: 10px; font-size: 14px; background: #fff; outline: none;
  color: var(--rider-blue); appearance: none; margin-bottom: 8px;
}
.dlms-rider-select:focus { border-color: var(--rider-teal); }

/* ── Textarea ────────────────────────────── */
.dlms-rider-textarea {
  width: 100%; border: 1.5px solid var(--rider-border); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; resize: vertical; outline: none;
  font-family: var(--rider-font); margin-bottom: 4px;
}
.dlms-rider-textarea:focus { border-color: var(--rider-teal); }

/* ── Checkout actions ────────────────────── */
/* Billing and payment navigation stays visible while the modal body scrolls. */
.dlms-rider-checkout-actions {
  display: flex; gap: 10px; margin: 16px -14px -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  position: sticky; bottom: 0; z-index: 5; background: rgba(245,248,252,.98); border-top: 1px solid var(--rider-border);
  box-shadow: 0 -6px 16px rgba(22,45,80,.08);
}
.dlms-rider-checkout-actions > button { min-height: 44px; flex: 1; }
@media(max-width:380px){.dlms-rider-checkout-actions{gap:6px;padding-left:8px;padding-right:8px}.dlms-rider-checkout-actions button{font-size:12px;padding:10px 8px}}
.dlms-rider-checkout-actions .dlms-rider-confirm-btn { margin-top: 0; }

/* ── Form message ────────────────────────── */
.dlms-rider-form-msg {
  font-size: 13px; padding: 10px 12px; border-radius: 9px; margin: 10px 0;
}

/* ── Success screen ──────────────────────── */
.rider-success-screen {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px; text-align: center;
}
.rider-success-icon  { font-size: 56px; margin-bottom: 14px; }
.rider-success-title { font-size: 22px; font-weight: 800; color: var(--rider-blue); margin-bottom: 6px; }
.rider-success-num   { font-size: 14px; color: var(--rider-muted); margin-bottom: 4px; }
.rider-success-total { font-size: 32px; font-weight: 900; color: var(--rider-teal); margin: 8px 0 14px; }
.rider-success-pay-note {
  font-size: 13px; background: var(--rider-light); border-radius: 10px;
  padding: 10px 16px; color: var(--rider-muted); margin-bottom: 12px; width: 100%;
}

/* ── Catalogue modal — collapsible groups, multi-select ── */
.dlms-rider-cat-group       { margin-bottom: 2px; }
.dlms-rider-cat-group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; text-transform: uppercase; color: #fff;
  letter-spacing: .7px; padding: 8px 12px; background: var(--rider-blue);
  border-radius: 8px; margin-bottom: 0; cursor: pointer; user-select: none;
  border: none; width: 100%;
}
.dlms-rider-cat-group-title .cat-toggle-arrow { font-size: 10px; opacity: .7; transition: transform .2s; }
.dlms-rider-cat-group.open  .cat-toggle-arrow { transform: rotate(180deg); }
.dlms-rider-cat-group-title .cat-sel-count {
  background: var(--rider-teal); color: #fff; font-size: 9px; font-weight: 800;
  padding: 1px 7px; border-radius: 10px; margin-left: 6px;
}
.dlms-rider-cat-body { display: none; border: 1px solid var(--rider-border); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; margin-bottom: 8px; }
.dlms-rider-cat-group.open .dlms-rider-cat-body { display: block; }
.dlms-rider-cat-svc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--rider-border);
  cursor: pointer; transition: background .15s; background: #fff;
}
.dlms-rider-cat-svc-row:last-child { border-bottom: none; }
.dlms-rider-cat-svc-row.selected   { background: #e8f7f9; }
.dlms-rider-cat-svc-row:hover      { background: #f0fdfb; }
.dlms-rider-svc-check-mark {
  font-size: 18px; flex-shrink: 0; width: 28px; text-align: center;
}
.dlms-rider-cat-add-all-btn {
  width: 100%; padding: 11px; margin-bottom: 10px;
  background: var(--rider-teal); color: #fff; border: none;
  border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s; position: sticky; top: 0; z-index: 2;
}
.dlms-rider-cat-add-all-btn:hover    { background: #0a6270; }
.dlms-rider-cat-add-all-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Compact item entry (inline row) ─────── */
.dlms-rider-item-entry {
  background: #fff; border-radius: 8px; border: 1px solid var(--rider-border);
  padding: 8px 10px; margin-bottom: 6px; position: relative;
  display: flex; align-items: center; gap: 8px;
}
.dlms-rider-item-name {
  font-size: 13px; font-weight: 700; color: var(--rider-blue);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dlms-rider-item-controls { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.dlms-rider-stepper-group  { display: flex; flex-direction: column; align-items: center; }
.dlms-rider-stepper-label  { font-size: 9px; color: var(--rider-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; letter-spacing: .3px; }
.dlms-rider-stepper {
  display: flex; align-items: center; background: var(--rider-light);
  border-radius: 7px; border: 1.5px solid var(--rider-border); overflow: hidden;
  height: 32px;
}
.rider-stepper-btn {
  width: 28px; height: 32px; background: none; border: none; font-size: 16px;
  color: var(--rider-blue); cursor: pointer; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-weight: 700; padding: 0;
}
.rider-stepper-btn:active { background: var(--rider-border); }
.dlms-rider-stepper-val {
  width: 38px; text-align: center; border: none; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--rider-blue);
  padding: 0; outline: none; -moz-appearance: textfield;
}
.dlms-rider-stepper-val::-webkit-inner-spin-button,
.dlms-rider-stepper-val::-webkit-outer-spin-button { -webkit-appearance: none; }
.dlms-rider-item-linetotal {
  font-size: 13px; font-weight: 800; color: var(--rider-teal);
  min-width: 48px; text-align: right; flex-shrink: 0;
}
.rider-item-remove-btn {
  background: #fee2e2; color: var(--rider-red); border: none;
  border-radius: 6px; width: 22px; height: 22px; cursor: pointer;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
}

/* ── History tab ─────────────────────────── */
.rider-history-header {
  font-size: 12px; color: var(--rider-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px; padding: 4px 2px 10px;
}
/* New expandable history cards */
.dlms-rider-hist-card {
  background: #fff; border-radius: 12px; border: 1px solid var(--rider-border);
  margin-bottom: 8px; overflow: hidden; transition: box-shadow .15s;
}
.dlms-rider-hist-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.dlms-rider-hist-card-open { border-color: var(--rider-teal); }
.dlms-rider-hist-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; cursor: pointer; gap: 10px;
}
.rider-hist-card-left  { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rider-hist-card-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.rider-hist-card-num   { font-size: 13px; font-weight: 800; color: var(--rider-blue); white-space: nowrap; }
.rider-hist-card-cust  { font-size: 12px; color: var(--rider-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rider-hist-card-amt   { font-size: 14px; font-weight: 800; color: var(--rider-blue); white-space: nowrap; }
.rider-hist-chevron    { font-size: 12px; color: var(--rider-muted); transition: transform .15s; }
.dlms-rider-hist-card-open .rider-hist-chevron { transform: rotate(90deg); }
.dlms-rider-hist-card-body {
  display: none; padding: 0 14px 12px; border-top: 1px solid var(--rider-border);
}
.rider-hist-detail-grid { padding: 10px 0 8px; }
.rider-hist-detail-row  { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: #333; border-bottom: 1px solid #f0f4f8; }
.rider-hist-detail-row:last-child { border-bottom: none; }
.rider-hist-detail-lbl  { color: var(--rider-muted); font-weight: 600; }
.dlms-rider-hist-invoice-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  padding: 7px 14px; background: var(--rider-teal); color: #fff;
  border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.dlms-rider-hist-invoice-btn:hover { background: #0a5f6e; color: #fff; }
.rider-hist-status {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px;
}
.rider-hist-pagination {
  display: flex; justify-content: center; gap: 6px; padding: 12px 0;
  flex-wrap: wrap;
}
.rider-page-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--rider-border);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--rider-blue);
}
.rider-page-btn.active { background: var(--rider-teal); border-color: var(--rider-teal); color: #fff; }

/* ── Analytics tab ───────────────────────── */
.rider-analytics-wrap   { padding: 4px 0; }
.rider-analytics-title  { font-size: 16px; font-weight: 800; color: var(--rider-blue); margin-bottom: 14px; text-align: center; }
.rider-stat-card {
  background: #fff; border-radius: 12px; border: 1px solid var(--rider-border);
  padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.rider-stat-period { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--rider-muted); margin-bottom: 10px; }
.rider-stat-row    { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rider-border); }
.rider-stat-row:last-child { border-bottom: none; }
.rider-stat-label  { font-size: 13px; color: var(--rider-muted); }
.rider-stat-val    { font-size: 15px; font-weight: 800; }
.rider-stat-val.orders  { color: var(--rider-blue); }
.rider-stat-val.revenue { color: var(--rider-teal); }
.rider-stat-val.disc    { color: var(--rider-orange); }

/* ── Global toast ────────────────────────── */
#rider-global-msg {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--rider-blue); color: #fff; font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: 10px; z-index: 99999; display: none;
  max-width: 320px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   v2.9.1 — Stats tab redesign (card-based)
═══════════════════════════════════════════════════════ */
.rider-analytics-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding: 0 2px;
}
.rider-analytics-title { font-size: 16px; font-weight: 800; color: var(--rider-blue); }

/* Override old flat row style with new card layout */
.rider-stat-card {
  background: #fff; border-radius: 14px;
  border: 1px solid var(--rider-border);
  border-left-width: 4px !important;
  padding: 0; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.rider-stat-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--rider-border);
  background: #f8fafc;
}
.rider-stat-period-icon  { font-size: 18px; }
.rider-stat-period-label { font-size: 13px; font-weight: 800; color: var(--rider-blue); text-transform: uppercase; letter-spacing: .5px; }

.rider-stat-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0;
}
.rider-stat-metric {
  padding: 12px 14px;
  border-right: 1px solid var(--rider-border);
  text-align: center;
}
.rider-stat-metric:last-child { border-right: none; }
.rider-stat-val  { font-size: 20px; font-weight: 900; line-height: 1.1; }
.rider-stat-lbl  { font-size: 10px; color: var(--rider-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }
.rider-stat-empty {
  text-align: center; font-size: 12px; color: var(--rider-muted);
  padding: 8px 14px 12px; font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   v2.9.1 — Discounts (Codes) tab
═══════════════════════════════════════════════════════ */
.rider-discounts-wrap   { padding: 4px 0; }
.rider-discounts-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700; color: var(--rider-muted);
  margin-bottom: 12px; padding: 0 2px;
}

.rider-discount-card {
  background: #fff; border-radius: 14px;
  border: 1px solid var(--rider-border);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
}
.rider-disc-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 10px; gap: 10px;
}
.rider-disc-code {
  font-family: monospace; font-size: 17px; font-weight: 900;
  color: var(--rider-blue); letter-spacing: 1.5px;
  background: #edf2ff; padding: 4px 10px; border-radius: 8px;
}
.rider-disc-value {
  background: var(--rider-teal); color: #fff;
  font-size: 13px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.rider-disc-desc {
  font-size: 13px; color: #444; padding: 0 14px 10px;
  line-height: 1.45;
}
.rider-disc-meta {
  border-top: 1px solid var(--rider-border);
  padding: 10px 14px; display: flex; flex-direction: column; gap: 7px;
  background: #f8fafc;
}
.rider-disc-meta-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--rider-muted);
}
.rdi { font-size: 14px; flex-shrink: 0; line-height: 1.4; }

/* Usage progress bar */
.rider-disc-usage-bar-wrap {
  background: var(--rider-border); border-radius: 4px; height: 5px;
  margin-bottom: 3px; overflow: hidden;
}
.rider-disc-usage-bar {
  height: 100%; background: var(--rider-teal); border-radius: 4px;
  transition: width .3s;
}
.rider-disc-usage-text { font-size: 11px; color: var(--rider-muted); }

/* ═══════════════════════════════════════════════════════
   v2.9.2 — 3-Step Pickup Flow UI
═══════════════════════════════════════════════════════ */

/* Step indicator bar */
.rider-step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 0 0 20px; padding: 14px 0 10px;
}
.rider-step {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rider-border); color: var(--rider-muted);
  font-size: 14px; font-weight: 800; line-height: 1;
  justify-content: center; flex-shrink: 0; position: relative;
  transition: all .2s;
}
.rider-step span {
  font-size: 9px; font-weight: 600; letter-spacing: .3px;
  position: absolute; bottom: -18px; white-space: nowrap;
  color: var(--rider-muted);
}
.rider-step.active {
  background: var(--rider-teal); color: #fff;
}
.rider-step.active span { color: var(--rider-teal); }
.rider-step.done {
  background: var(--rider-green); color: #fff; font-size: 16px;
}
.rider-step.done span { color: var(--rider-green); }
.rider-step-line {
  flex: 1; height: 3px; background: var(--rider-border); margin: 0 4px;
  margin-bottom: 18px; border-radius: 2px; min-width: 20px;
}
.rider-step-line.active { background: var(--rider-teal); }

/* Express toggle switch */
.rider-toggle-switch {
  position: relative; display: inline-flex; align-items: center;
  cursor: pointer; flex-shrink: 0;
}
.rider-toggle-switch input { display: none; }
.rider-toggle-track {
  width: 48px; height: 26px; border-radius: 13px;
  background: var(--rider-border); transition: background .2s;
  position: relative; display: block;
}
.rider-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}
.rider-toggle-switch input:checked + .rider-toggle-track {
  background: var(--rider-orange);
}
.rider-toggle-switch input:checked + .rider-toggle-track .rider-toggle-thumb {
  transform: translateX(22px);
}

/* Bill row with category label */
.dlms-rider-bill-cat-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; color: var(--rider-muted);
  padding: 10px 0 4px; margin-top: 4px;
}
.dlms-rider-bill-divider {
  border: none; border-top: 1px solid var(--rider-border);
  margin: 8px 0;
}

/* ═══════════════════════════════════════════════════════
   v2.9.3 — Compact code pills (Codes tab)
═══════════════════════════════════════════════════════ */
.rider-code-pill {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--rider-border);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.rider-code-pill-main {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
  user-select: none;
}
.rider-code-pill-main:active { background: #f4f6fb; }
.rider-code-pill-name {
  font-family: monospace; font-size: 15px; font-weight: 900;
  color: var(--rider-blue); letter-spacing: 1px; flex: 1;
}
.rider-code-pill-val {
  background: var(--rider-teal); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.rider-code-pill-arrow {
  font-size: 12px; color: var(--rider-muted); flex-shrink: 0; transition: transform .2s;
}
.rider-code-pill.open .rider-code-pill-arrow { transform: rotate(180deg); }

.rider-code-pill-detail {
  border-top: 1px solid var(--rider-border);
  background: #f8fafc; padding: 12px 14px;
  font-size: 12px; color: #444;
}
.rider-code-pill-desc {
  font-size: 13px; margin-bottom: 8px; color: #333; line-height: 1.4;
}
.rider-code-pill-meta {
  display: flex; flex-direction: column; gap: 5px;
  color: var(--rider-muted);
}
.rider-code-pill-meta > div { display: flex; align-items: center; gap: 6px; }

/* ── Per-Weight Laundry Flow ──────────────────────────────── */
.rider-billing-mode-row {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.rider-billing-mode-btn {
  flex: 1; padding: 10px 8px; border-radius: 10px; border: 2px solid var(--rider-border);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--rider-blue);
  transition: all .15s;
}
.rider-billing-mode-btn.active {
  background: var(--rider-blue); color: #fff; border-color: var(--rider-blue);
}
.rider-wt-tabs {
  display: flex; gap: 0; margin-bottom: 14px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--rider-blue);
}
.rider-wt-tab {
  flex: 1; padding: 10px 8px; border: none; background: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; color: var(--rider-blue);
  transition: all .15s;
}
.rider-wt-tab.active { background: var(--rider-blue); color: #fff; }
.rider-wt-cat-tabs {
  display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto;
  padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.rider-wt-cat-btn {
  flex-shrink: 0; padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--rider-border);
  background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--rider-blue);
}
.rider-wt-cat-btn.active { background: var(--rider-teal); border-color: var(--rider-teal); color: #fff; }
.rider-wt-garment-list { padding-bottom: 4px; }
.rider-wt-garment-list.hidden { display: none; }
.rider-wt-garment-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 4px; border-bottom: 1px solid var(--rider-border);
}
.rider-wt-garment-row:last-child { border-bottom: none; }
.rider-wt-garment-name { font-size: 13px; color: #333; }
.rider-wt-stepper { max-width: 120px; }
.rider-wt-summary-bar {
  text-align: center; padding: 8px; background: #eef4ff; border-radius: 8px;
  font-size: 13px; color: var(--rider-blue); margin: 10px 0;
}
.rider-wt-service-pill {
  display: inline-block; padding: 6px 14px; background: var(--rider-teal);
  color: #fff; border-radius: 20px; font-size: 12px; font-weight: 700;
  margin-bottom: 16px;
}
.rider-wt-total-preview {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #1a3c6e 0%, #0f7b8c 100%);
  color: #fff; border-radius: 12px; padding: 14px 16px; margin: 8px 0 16px;
}
.rider-wt-total-preview span { font-size: 13px; opacity: .8; }
.rider-wt-total-preview strong { font-size: 22px; font-weight: 900; }
.rider-step.done { background: var(--rider-teal); color: #fff; }
.rider-step-line.active { background: var(--rider-teal); }

/* Per-weight info bar */
.rider-wt-info-bar {
  background: #eef4ff; border: 1px solid #c9d8ec; border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: #1a3c6e;
  margin-bottom: 12px;
}


/* v3.4.2 Rider profile settings and visual service catalogue */
.dlms-rider-svc-content{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.dlms-rider-svc-image{width:42px;height:42px;object-fit:cover;border-radius:9px;border:1px solid #dce5f0;flex:0 0 42px}
.dlms-rider-svc-icon{width:42px;height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;background:#eef5fb;border-radius:9px;font-size:23px}
.dlms-rider-svc-content>div:last-child{min-width:0}
.dlms-rider-svc-name{overflow-wrap:anywhere}
.dlms-rider-settings-card input:focus{outline:2px solid #75a9e8;outline-offset:1px}
@media(max-width:480px){.dlms-rider-svc-image,.dlms-rider-svc-icon{width:34px;height:34px;flex-basis:34px}.dlms-rider-settings-card{margin:8px!important;padding:14px!important}}

.dlms-rider-cat-image{width:25px;height:25px;object-fit:cover;border-radius:5px;vertical-align:middle;margin-right:7px}
.dlms-rider-cat-icon{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;background:#eef5fb;border-radius:5px;vertical-align:middle;margin-right:7px;font-size:16px}

/* v3.4.2: persistent laundry summary/actions while entering counts and rates */
.rider-wt-sticky-footer{position:sticky;bottom:0;z-index:8;margin:16px -14px -14px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid #dbe3eb;box-shadow:0 -8px 22px rgba(20,45,80,.09);backdrop-filter:blur(8px)}
.rider-wt-sticky-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 10px;color:var(--rider-muted);font-size:12px}
.rider-wt-sticky-summary strong{color:var(--rider-blue);font-size:19px;white-space:nowrap}
.rider-wt-sticky-actions{display:flex;align-items:center;gap:8px}
.rider-wt-sticky-actions button{min-height:46px;font-size:13px}
.dlms-rider-svc-content{display:flex;align-items:center;gap:10px;min-width:0}
.dlms-rider-svc-image{width:44px;height:44px;border-radius:9px;object-fit:cover;flex-shrink:0;background:#f1f5f9}
.dlms-rider-svc-icon{width:44px;height:44px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#eef5fb;font-size:24px}
.dlms-rider-cat-image{width:24px;height:24px;object-fit:cover;border-radius:6px;vertical-align:middle;margin-right:6px}
.dlms-rider-cat-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;margin-right:6px}
@media(max-width:480px){.rider-wt-sticky-actions{gap:6px}.rider-wt-sticky-actions button{padding:10px 8px;font-size:12px}.rider-wt-sticky-summary strong{font-size:17px}.rider-wt-sticky-footer{margin-left:-14px;margin-right:-14px}}

/* v3.5.0 rider catalogue view modes */
.dlms-rider-cat-toolbar{display:flex;gap:6px;align-items:center;flex-shrink:0;margin-bottom:6px}
.dlms-rider-cat-toolbar #rider-cat-search{margin-bottom:0!important}
.dlms-rider-cat-view-btn{border:1px solid #d6e0ec;border-radius:8px;background:#fff;color:#1b3f70;min-width:38px;height:38px;font-size:18px;cursor:pointer}
.dlms-rider-cat-view-btn.active{background:#0f8795;color:#fff;border-color:#0f8795}
#rider-cat-list.view-grid .dlms-rider-cat-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
#rider-cat-list.view-grid .dlms-rider-cat-svc-row{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:104px;padding:10px 6px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}
#rider-cat-list.view-grid .dlms-rider-svc-content{flex-direction:column;align-items:center;gap:6px}
#rider-cat-list.view-grid .dlms-rider-svc-name{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#rider-cat-list.view-grid .dlms-rider-svc-content>div>div:last-child{font-size:11px!important}
#rider-cat-list.view-grid .dlms-rider-svc-check-mark{align-self:flex-end}
.dlms-emoji-presets{display:inline-flex;flex-wrap:wrap;gap:3px;max-width:100%;vertical-align:middle}
.dlms-emoji-preset{min-width:30px;padding:0 5px!important;font-size:17px!important;line-height:28px!important}


/* v3.8 compact navigation with settings shortcut; all tabs stay on one horizontal row. */
.dlms-rider-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dlms-rider-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;gap:4px;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.dlms-rider-tabs .dlms-rider-tab{flex:0 0 auto;white-space:nowrap;min-width:max-content;padding:11px 12px}
.dlms-rider-settings-shortcut{flex:0 0 40px!important;min-width:40px!important;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font-size:20px;padding:0!important;color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3)}
.dlms-rider-settings-shortcut.active{background:var(--rider-teal);border-color:var(--rider-teal)}
.dlms-rider-settings-card #rider-logout-btn{margin-left:auto;min-height:38px;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:9px 14px!important;background:#1c3d6d!important;color:#fff!important;border:1px solid #1c3d6d!important;border-radius:8px!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap!important;opacity:1!important;visibility:visible!important;cursor:pointer!important;box-shadow:0 2px 5px rgba(28,61,109,.16)!important}.dlms-rider-settings-card #rider-logout-btn:hover{background:#0f8795!important;border-color:#0f8795!important;color:#fff!important}
.dlms-rider-customer-coupon-note{background:#f0faf4;border:1px solid #b7e4c7;border-radius:10px;padding:12px;margin:8px 0}
@media(max-width:480px){.dlms-rider-topbar{gap:8px}.dlms-rider-topbar-brand{min-width:0;flex:1}.dlms-rider-topbar-name,.dlms-rider-topbar-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dlms-rider-tabs .dlms-rider-tab{font-size:11px;padding:10px 9px}.dlms-rider-settings-shortcut{width:36px;height:36px;min-width:36px!important;flex-basis:36px!important}}
