.rm-layer{z-index:22010}.rm-help{z-index:22020}#rotas-ride-chat{z-index:22020}#rotas-permissions-screen{z-index:2147483600}
.rm-permission-row{display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid #8883}.rm-permission-row span{display:grid;gap:4px}.rm-permission-row small{font-size:12px;opacity:.75}.rm-permission-row input{width:22px!important;height:22px;accent-color:#b79c00}.rotas-permissions-panel{max-height:90dvh;overflow:auto}
html[data-app-role=driver] .mobile-map-frame .maplibregl-ctrl-top-right,html[data-app-role=driver] .mobile-map-frame .mapboxgl-ctrl-top-right{top:145px!important}
.rotas-carousel article,.rotas-carousel a{aspect-ratio:2/1;min-height:0!important;box-sizing:border-box;background-size:cover}
.rotas-carousel .is-image-only{padding:0!important;background:var(--banner-image) center/cover!important}.is-image-only h2,.is-image-only p,.is-image-only b{display:none}
.rotas-carousel .is-fade{animation:rb-fade .7s ease-out}@keyframes rb-fade{from{opacity:.15}to{opacity:1}}
.rotas-driver-banner{position:fixed;bottom:env(safe-area-inset-bottom,0px);left:50%;transform:translateX(-50%);width:min(100%,430px);height:116px;border-radius:12px 12px 0 0;z-index:31}.rotas-driver-banner article,.rotas-driver-banner a{height:116px;aspect-ratio:auto;padding:10px 16px;background-size:100% 100%}.rotas-driver-banner .is-image-only{background-size:100% 100%!important}.rotas-driver-banner h2{font-size:17px;margin:0}.rotas-driver-banner p{font-size:12px;margin:4px 0}.rotas-driver-banner .rotas-carousel-nav{position:absolute;right:3px;bottom:0;padding:3px;gap:4px}.rotas-driver-banner .rotas-carousel-nav button{width:16px;min-height:14px;font-size:9px;padding:0}
.rotas-driver-has-banner .bottom-nav{bottom:calc(116px + env(safe-area-inset-bottom,0px))!important}.rotas-driver-has-banner .rotas-bottom-sheet{bottom:calc(188px + env(safe-area-inset-bottom,0px))!important}
#rotas-banner-manager input:not([type=checkbox]),#rotas-banner-manager textarea,#rotas-banner-manager select{display:block;width:100%;padding:10px;margin:6px 0;border:1px solid #566055;border-radius:8px;background:#202a21;color:white}#rotas-banner-manager label{display:block;margin:12px 0}#rotas-banner-manager button{padding:10px 14px;border-radius:8px;cursor:pointer}#rotas-banner-manager [data-crop]{position:relative}#rotas-banner-manager canvas{width:100%;height:auto;border-radius:10px;background:#111}#rotas-banner-manager .rb-safe-area{position:absolute;top:0;left:0;width:100%;aspect-ratio:2/1;box-sizing:border-box;pointer-events:none;border:22px solid #0002;outline:1px dashed #ffe600;outline-offset:-22px;color:#fff;text-align:center;padding-top:5px;font-size:11px;text-shadow:0 1px 4px black}
.rm-help header{background:#102c24}.rm-help header strong:before{content:'● ';color:#67e7b0}.rm-help main,#rotas-ride-chat main{background:#f5f5f0;background-image:radial-gradient(#2025200d 1px,transparent 1px);background-size:12px 12px}.rm-help article,#rotas-ride-chat article{max-width:86%;border-radius:18px 18px 18px 4px;border:1px solid #00000006;box-shadow:0 2px 4px #00000005;background:#fff;color:#10141a}.rm-help article.mine{background:#e2f6ec;border-radius:18px 18px 4px 18px}#rotas-ride-chat article.mine{background:#ffe72c;border-radius:18px 18px 4px 18px}#rotas-ride-chat header{background:#11161a;color:white}#rotas-ride-chat h2{color:white}.rm-help article p,#rotas-ride-chat article p{margin:6px 0;white-space:pre-wrap}.rm-help article small,#rotas-ride-chat article small{display:block;text-align:right;font-size:10px;opacity:.65}.rm-help form,#rotas-ride-chat form{align-items:center;background:white}.rm-help textarea,#rotas-ride-chat textarea{border-radius:22px!important;background:#f2f3f4!important;color:#10141a!important;padding:12px!important}.rm-help .rc-emoji,#rotas-ride-chat .rc-emoji{font-size:24px;padding:6px;background:transparent;color:#111;border:0}.rc-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;max-height:260px;overflow:auto;background:#eee;padding:6px}.rc-picker button{border:0;border-radius:8px;padding:0;background:white;overflow:hidden}.rc-sticker{display:block;width:123px;height:138px;background-image:url('/assets/chat/rotas-stickers.png.r256.webp');background-size:998.4px 665.6px;background-position:var(--sticker-x) -318px;background-repeat:no-repeat;margin:auto}.rc-sticker-message{background:transparent!important;border:0!important;box-shadow:none!important}.rm-minimized .rc-picker{display:none!important}
#rm-help-notice{position:fixed;z-index:22015;right:12px;bottom:calc(200px + env(safe-area-inset-bottom));width:min(310px,85vw);padding:14px;border-radius:18px 18px 4px 18px;background:#112b23;color:white;box-shadow:0 8px 30px #0004}#rm-help-notice button{border:0;border-radius:10px;padding:8px 12px;cursor:pointer}#rm-help-notice [data-open]{background:#ffe52b;color:#111}#rm-help-notice [data-close]{float:right;background:transparent;color:white}#rm-help-notice p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.rotas-carousel .is-fade{animation:none}}

/* Identidade final do chat: amarelo ROTAS+ em todos os canais. */
.rm-help header,#rotas-ride-chat header{background:#FFE52B!important;color:#111!important}
.rm-help header button,#rotas-ride-chat header button,.rm-help header strong,#rotas-ride-chat h2{color:#111!important}
.rm-help header strong:before{color:#111!important}
.rm-help article.mine,#rotas-ride-chat article.mine{background:#FFE52B!important;color:#111!important}
#rm-help-notice{background:#FFE52B!important;color:#111!important;border:1px solid #d4bd00!important}
#rm-help-notice [data-close]{color:#111!important}

html.rotas-driver-has-banner{--driver-ad-height:min(50vw,215px)}.rotas-driver-banner{height:var(--driver-ad-height)}.rotas-driver-banner article,.rotas-driver-banner a{height:var(--driver-ad-height);background-size:cover}.rotas-driver-banner .is-image-only{background-size:cover!important}.rotas-driver-has-banner .bottom-nav{bottom:calc(var(--driver-ad-height) + env(safe-area-inset-bottom,0px))!important}.rotas-driver-has-banner .rotas-bottom-sheet{bottom:calc(var(--driver-ad-height) + 72px + env(safe-area-inset-bottom,0px))!important}

#rotas-ride-chat form{display:flex}#rotas-ride-chat form textarea{min-width:0;flex:1}#rotas-ride-chat .rotas-chat-card{display:flex;flex-direction:column}#rotas-ride-chat main{flex:1;min-height:100px}#rotas-ride-chat.rm-minimized main{min-height:0}.rc-picker{flex-shrink:0}#rotas-ride-chat article b{color:#333}#rotas-ride-chat article small{color:#555}
