/* 5.8.218: um único contêiner rolável, alinhado ao limite real do mapa. */
@media (max-width: 600px) {
 #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) {
   box-sizing:border-box!important;
   width:min(300px,calc(100vw - 32px))!important;
   max-width:calc(100vw - 32px)!important;
   max-height:min(340px,calc(var(--bb-map-height-217, 400px) - 70px))!important;
   padding:0!important;
   overflow:hidden!important;
 }
 #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) .gm-style-iw-chr {
   position:absolute!important; top:0!important; right:0!important; z-index:3!important;
   width:38px!important; height:38px!important; min-height:0!important; display:flex!important;
   align-items:center!important; justify-content:center!important;
 }
 #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) button.gm-ui-hover-effect {
   position:relative!important; top:auto!important; right:auto!important; width:36px!important; height:36px!important;
   margin:0!important; opacity:1!important; filter:none!important; background:transparent!important;
 }
 #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) button.gm-ui-hover-effect span {background-color:#f3f7fa!important}
 #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) button.gm-ui-hover-effect img {filter:brightness(0) invert(1)!important}
 body.boxboy-theme-light #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) button.gm-ui-hover-effect span {background-color:#263c4d!important}
 body.boxboy-theme-light #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-c:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) button.gm-ui-hover-effect img {filter:none!important}
 #ordersPanelPage#ordersPanelPage .gm-style .gm-style-iw-d:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) {
   box-sizing:border-box!important; width:100%!important; max-width:100%!important;
   max-height:min(340px,calc(var(--bb-map-height-217, 400px) - 70px))!important;
   padding:0!important; overflow-x:hidden!important; overflow-y:auto!important;
   overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#628096 transparent;
 }
 #ordersPanelPage#ordersPanelPage .gm-style-iw-d:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217))::-webkit-scrollbar {width:5px}
 #ordersPanelPage#ordersPanelPage .gm-style-iw-d:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217))::-webkit-scrollbar-track {background:transparent}
 #ordersPanelPage#ordersPanelPage .gm-style-iw-d:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217))::-webkit-scrollbar-thumb {background:#628096;border-radius:8px}
 #ordersPanelPage#ordersPanelPage .gm-style .bb-order-popup-v58217.bb-order-popup-v5660,
 #ordersPanelPage#ordersPanelPage .gm-style .bb-courier-popup-v526.bb-map-person-217,
 #ordersPanelPage#ordersPanelPage .gm-style .bb-store-popup-v5660.bb-map-store-217 {
   box-sizing:border-box!important; width:100%!important; min-width:0!important; max-width:100%!important;
   max-height:none!important; overflow:visible!important; padding:12px!important;
 }
 #ordersPanelPage#ordersPanelPage .gm-style :is(.bb-courier-popup-head,.bb-store-popup-head-v5660) {padding-right:32px!important}
 #ordersPanelPage#ordersPanelPage .gm-style .bb-store-popup-metrics-v5660 {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #ordersPanelPage#ordersPanelPage .gm-style .bb-store-popup-metric-v5660 {padding:6px 2px!important}
 #ordersPanelPage#ordersPanelPage .gm-style .bb-store-popup-metric-v5660 small {font-size:10px!important}
 #ordersPanelPage#ordersPanelPage .gm-style .bb-map-person-217 .bb-courier-metrics {gap:4px!important}
 /* Leaflet owns its scrolling as well; avoid a second scroll inside the order. */
 #ordersPanelPage#ordersPanelPage .leaflet-popup-content:has(:is(.bb-order-popup-v58217,.bb-map-person-217,.bb-map-store-217)) {
   max-height:min(320px,calc(var(--bb-map-height-217, 400px) - 90px))!important;
   overflow-x:hidden!important; overflow-y:auto!important; overscroll-behavior:contain;
   scrollbar-width:thin; scrollbar-color:#628096 transparent;
 }
 #ordersPanelPage#ordersPanelPage .leaflet-popup-content .bb-order-popup-v58217 {max-height:none!important;overflow:visible!important}
}
