/* Neutral outer canvas; yellow stays inside rider/driver app borders. */
html { background:#f4f7fb; }
body.app-button-upgrade { background:#f4f7fb !important; }
body.yellow-app-panel > .app-content-frame { background:#ffeb3b; }
body.yellow-app-panel.app-frame { background:#ffeb3b !important; }
body.yellow-app-panel :is(main,section,article,fieldset,.card,.login-card,.location-card,.service-details,.rider-feedback-info,.details-box,.table-text-box) {
  background:#ffeb3b !important;
}
body.yellow-app-panel :is(table,thead,tbody,tfoot,tr,th,td,#liveDriverDetails,#rideMapPeople,#locationStatus,#driverMsg) {
  background:#ffeb3b !important;
}


/* Latest button sizing: 30% taller, with large yellow labels across the app. */
@layer app-button-upgrade {
  body.app-button-upgrade :is(button,input[type="submit"],input[type="button"]) {
    min-height:57.2px !important;
    max-width:100% !important;
    padding:10.4px 15.6px !important;
    color:#ffeb3b !important;
    font-size:clamp(20px,2.5vw,22.5px) !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    text-align:center !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
    background-image:linear-gradient(rgb(0 0 0 / 18%),rgb(0 0 0 / 18%)) !important;
    text-shadow:0 1px 1px rgb(0 0 0 / 40%);
  }
  body.app-button-upgrade button :is(span,strong,b) { color:inherit !important; }
  body.app-button-upgrade #driverControls .ride-actions button {
    padding:15.6px 10.4px !important;
  }
  body.app-button-upgrade #driverPageLinks :is(a,button) {
    flex:1 1 110px;
    min-width:0;
    min-height:62.4px !important;
    padding:11.7px 13px !important;
    font-size:21px !important;
  }
  body.app-button-upgrade .rider-page-header :is(a,button) {
    flex:1 1 110px;
    min-width:0;
    min-height:72.8px !important;
    padding:13px 18.2px !important;
    font-size:27px !important;
  }
  body.app-button-upgrade :where(header nav a,header > a,a[role="button"],a.button,a.btn,a[data-app],#liveDriverPhone,.call-911-button,.sos-map-link) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:62.4px !important;
    max-width:100%;
    padding:15.6px 20.8px !important;
    color:#ffeb3b !important;
    background-color:#0754b6;
    border-radius:6px;
    font-size:21px !important;
    font-weight:700;
    text-align:center;
    text-decoration:none;
    overflow-wrap:anywhere;
  }
  body.app-button-upgrade .rider-feedback button {
    font-size:29.25px !important;
    background-color:#0754b6 !important;
  }
  body.app-button-upgrade .login-card button {
    padding:18.2px !important;
    font-size:22.1px !important;
  }
  body.app-button-upgrade button.secondary { background-color:#374151 !important; }
  body.app-button-upgrade .sos-service-button {
    background-color:var(--sos-color,#0754b6) !important;
  }
  body.app-button-upgrade :is(.driver-sos-compact,.rider-emergency-card) > a[href="tel:911"] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:57.2px !important;
    padding:13px 10.4px !important;
    color:#ffeb3b !important;
    background-color:#991b1b !important;
    font-size:18px !important;
    font-weight:700;
  }
  body.app-button-upgrade .leaflet-control-zoom a {
    width:39px;
    height:39px;
    line-height:39px;
    color:#ffeb3b !important;
    background-color:#0754b6;
    font-size:28.6px;
  }
  body.app-button-upgrade .leaflet-popup-close-button {
    width:31.2px !important;
    height:31.2px !important;
    line-height:31.2px !important;
    color:#ffeb3b !important;
    background:#0754b6 !important;
    font-size:20.8px !important;
  }
  body.app-button-upgrade :is(button,a)[hidden] { display:none !important; }
}

/* Deep-blue lettering on rider and driver pages; retain readability sizing. */
body.yellow-app-panel {
  -webkit-text-fill-color:#003399 !important;
  text-shadow:none;
}
body.driver-readable-text main :is(h1,h2,h3,h4,p,label,span,strong,b,small,legend,li,a,button,div):not(:where(#driverPageLinks,#driverPageLinks *,.leaflet-container,.leaflet-container *)) {
  font-weight:700 !important;
}

/* Rider and driver action labels remain white and bold against colored buttons. */
@layer app-button-upgrade {
  body.yellow-app-panel :is(button,input[type="submit"],input[type="button"],header nav a,header > a,a[role="button"],a.button,a.btn,a[data-app],#liveDriverPhone,.call-911-button,.rider-call-911,.sos-map-link,a[href="tel:911"],.leaflet-control-zoom a,.leaflet-popup-close-button) {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    font-weight:700 !important;
  }
}
