/* Sobre Ruedas v2.8.0 — estabilidad visual y estados operativos */
body.sr-v280-active-ride #tripPanel:not(.hidden),
body.sr-v280-active-ride #driverActiveTrip:not(.hidden){display:block!important}
body.sr-v280-active-ride #mainSheet{z-index:850}
body.sr-v280-active-ride .sheet-content{padding-bottom:calc(104px + env(safe-area-inset-bottom))}

#chatBtn:disabled,#callBtn:disabled,#driverChatV270:disabled,#driverCallV270:disabled,#driverCallPassenger:disabled{
  opacity:.48;filter:grayscale(.35);cursor:not-allowed;box-shadow:none
}
#chatBtn:not(:disabled),#callBtn:not(:disabled),#driverChatV270:not(:disabled),#driverCallV270:not(:disabled),#driverCallPassenger:not(:disabled){
  opacity:1;cursor:pointer
}

.address-suggestions{
  position:relative!important;z-index:1600!important;max-height:min(46vh,390px)!important;overflow:auto!important;
  overscroll-behavior:contain;box-shadow:0 18px 42px rgba(8,12,20,.2)
}
.address-suggestion{width:100%;text-align:left}
.address-suggestion>div{min-width:0}
.address-suggestion strong,.address-suggestion small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-v280-manual-pin{position:sticky;bottom:0;border-top:2px solid var(--line)!important;background:var(--card)!important}

#ratingModal{z-index:2600}
#ratingModal .modal{max-width:440px;margin:auto}
#ratingModal .star-picker button{min-width:48px;min-height:52px;touch-action:manipulation}

.sr-v280-account-state{margin:9px 0;padding:10px 12px;border-radius:14px;background:#fff1cc;color:#6c4600;font-weight:850}
body.theme-dark .sr-v280-account-state{background:#382d11;color:#ffe8a1}

.driver-passenger-card .avatar img,#passengerDriverAvatar img,#ratingDriverAvatar img{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit
}

@media (max-width:600px){
  body.sr-v280-active-ride .sheet{max-height:calc(100dvh - env(safe-area-inset-top) - 8px)}
  #tripPanel .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #tripPanel .actions button{min-width:0;padding-inline:6px}
  .address-suggestions{max-height:42vh!important}
}
