/* Keep the live trip visible; scrolling moves details, never the whole panel offscreen. */
html.rotas-live-trip[data-app-role="passenger"] .ride-sheet.rotas-bottom-sheet{position:fixed!important;bottom:env(safe-area-inset-bottom,0px)!important;transform:none!important;display:flex!important;flex-direction:column;height:min(43dvh,390px)!important;max-height:calc(var(--rotas-vh,100dvh) - 110px)!important;min-height:min(220px,40dvh)!important;z-index:60!important}
html.rotas-live-trip[data-app-role="passenger"]:not(.rotas-passenger-map-ready):not(.rotas-passenger-ride-focus) .ride-sheet.rotas-bottom-sheet{bottom:calc(66px + env(safe-area-inset-bottom,0px))!important}
html.rotas-live-trip[data-app-role="passenger"] .ride-sheet[data-sheet-state="expanded"]{height:min(68dvh,640px)!important}
html.rotas-live-trip[data-app-role="passenger"] .ride-sheet[data-sheet-state="collapsed"]{height:min(32dvh,280px)!important}
html.rotas-live-trip[data-app-role="passenger"] .rotas-sheet-grabber{flex:0 0 30px}
html.rotas-live-trip[data-app-role="passenger"] .ride-sheet>.rotas-sheet-scroll{height:auto!important;min-height:0;flex:1;overflow-y:auto!important;padding:0 14px max(18px,env(safe-area-inset-bottom))!important}
#rotas-trip-eta{position:sticky;top:0;z-index:5;box-sizing:border-box;min-height:48px;margin:0 -14px 10px;padding:13px 16px;background:#ffe52b;color:#17221c;font-size:15px;font-weight:800;line-height:1.4;border-bottom:1px solid #d5bd15}
#rotas-driver-cancel-visible{position:static;z-index:90;min-height:44px;width:100%;padding:10px 16px;border:1px solid #b42318;border-radius:12px;background:#fff;color:#a51d15;font:700 14px system-ui;box-shadow:0 3px 15px #0002}
#rotas-driver-cancel-visible.is-floating{position:fixed;left:12px;right:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px));top:auto;width:auto;max-width:calc(100vw - 175px)}
html[data-app-role="driver"] #driver-request .rotas-offer-dock #rotas-driver-cancel-visible{order:2!important;margin:0!important}
#rotas-driver-cancel-confirm{position:fixed;inset:0;z-index:2147482800;display:grid;place-items:center;padding:18px;background:#0009}
#rotas-driver-cancel-confirm>div{width:min(100%,400px);box-sizing:border-box;padding:22px;border-radius:20px;background:#fff;color:#17221c}
#rotas-driver-cancel-confirm button{display:block;width:100%;min-height:48px;border:0;border-radius:12px;padding:12px;margin-top:12px;font-weight:750}
#rotas-driver-cancel-confirm [data-no]{background:#ffe52b;color:#17221c}
#rotas-driver-cancel-confirm [data-yes]{background:#f5f5f3;color:#a51d15}
#rotas-driver-cancel-confirm [role=status]{color:#a51d15}
#rotas-driver-live-eta{position:fixed;top:calc(env(safe-area-inset-top,0px) + 172px);left:12px;right:74px;z-index:89;box-sizing:border-box;min-height:48px;padding:10px 12px;border-radius:12px;background:#ffe52b;color:#17221c;font:800 14px/1.4 system-ui;box-shadow:0 3px 15px #0002}
#rotas-ride-chat{position:fixed!important;inset:0!important;z-index:2147482500!important;display:grid!important;place-items:center!important;background:#0009;backdrop-filter:blur(12px);font-family:Manrope,system-ui;padding:12px;box-sizing:border-box;width:auto!important;height:var(--rotas-vh,100dvh)!important}
#rotas-ride-chat .rotas-chat-card{display:flex;flex-direction:column;width:min(560px,100%);height:min(760px,calc(var(--rotas-vh,100dvh) - 24px));max-height:calc(var(--rotas-vh,100dvh) - 24px);overflow:hidden;border:1px solid #d8e1da;border-radius:20px;background:#fff;color:#17221c}
#rotas-ride-chat main{flex:1;min-height:0!important;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
#rotas-ride-chat header{align-items:center;gap:12px;padding:14px;border-color:#d8e1da;background:#fff;color:#17221c}
#rotas-ride-chat header span{color:#52645a;font-size:10px}
#rotas-ride-chat header h2{font-size:20px}
#rotas-ride-chat [data-chat-close],#rotas-ride-chat form button{min-height:48px;min-width:78px;border:0;border-radius:12px;background:#ffe52b!important;color:#17221c!important;font-weight:800;padding:10px 14px}
#rotas-ride-chat textarea{width:100%;min-width:0;min-height:48px;max-height:110px;box-sizing:border-box;padding:12px;border:1px solid #aabbb0;border-radius:12px;background:#f6f8f5;color:#17221c;font:16px system-ui;resize:vertical}
#rotas-ride-chat form{grid-template-columns:minmax(0,1fr) auto;align-items:end;border-top:1px solid #d8e1da;padding-bottom:max(12px,env(safe-area-inset-bottom))}
#rotas-ride-chat article{background:#eef2ee;color:#17221c;overflow-wrap:anywhere}
#rotas-ride-chat article.mine{background:#fff2a1;color:#17221c}
#rotas-ride-chat article b,#rotas-ride-chat article small{color:#52645a;font-size:11px}
#rotas-ride-chat.rm-minimized{inset:auto 12px max(12px,env(safe-area-inset-bottom)) auto!important;width:min(340px,calc(100vw - 24px))!important;height:auto!important;padding:0;background:transparent}
#rotas-ride-chat.rm-minimized .rotas-chat-card{height:auto}
#rotas-ride-chat header{background:#fff!important;color:#17221c!important}
#rotas-ride-chat header h2{color:#17221c!important}
#rotas-ride-chat header button{min-width:48px;min-height:44px;padding:9px 12px;border:1px solid #d8e1da!important;border-radius:12px;background:#f4f6f2!important;color:#17221c!important;font-weight:800;box-shadow:none!important}
#rotas-ride-chat form .rc-emoji{flex:0 0 48px;min-width:48px;width:48px;min-height:48px;padding:6px!important;border:1px solid #d8e1da!important;border-radius:12px;background:#f4f6f2!important;color:#17221c!important;box-shadow:none!important}
#rotas-ride-chat form button[type="submit"]{flex:0 0 auto;min-width:76px}
html[data-app-role="passenger"] #ride-live #cancel,html[data-app-role="passenger"] #ride-live #rm-trip-info{background:#ffe52b!important;color:#17221c!important;-webkit-text-fill-color:#17221c!important;min-height:48px!important;border:1px solid #d9c526!important;border-radius:14px!important;font-weight:800!important}
html[data-app-role="passenger"] #ride-live .accent,html[data-app-role="passenger"] #rotas-ride-notice .accent{color:#ffe52b!important;-webkit-text-fill-color:#ffe52b!important}
