/* Keep category choices inside scrollable filters and touch/tablet panels. */
@media(max-width:1100px),(hover:none),(pointer:coarse){
#catalogo .category-row:has(>details[open]){flex-wrap:wrap}
#catalogo .category-submenu[open]{width:100%}
#catalogo .category-submenu summary{opacity:1;min-width:32px;min-height:32px;justify-content:center;padding:4px 9px}
#catalogo .category-submenu[open]>summary{position:absolute;right:0;top:0;transform:rotate(90deg)}
#catalogo .category-submenu>div{position:static;min-width:0;width:100%;margin:4px 0 8px;padding:4px;border-radius:8px;box-shadow:none}
#catalogo .category-submenu button{white-space:normal;overflow-wrap:anywhere;min-height:40px;line-height:1.5}
#catalogo .category-row>label{flex:1;min-width:0}
}
#catalogo .filters[data-overflow] .category-row:has(>details[open]){flex-wrap:wrap}
#catalogo .filters[data-overflow] .category-submenu[open]{width:100%}
#catalogo .filters[data-overflow] .category-submenu summary{opacity:1;min-width:32px;min-height:32px;justify-content:center;padding:4px 9px}
#catalogo .filters[data-overflow] .category-submenu[open]>summary{position:absolute;right:0;top:0;transform:rotate(90deg)}
#catalogo .filters[data-overflow] .category-submenu>div{position:static;min-width:0;width:100%;margin:4px 0 8px;padding:4px;border-radius:8px;box-shadow:none}
#catalogo .filters[data-overflow] .category-submenu button{white-space:normal;overflow-wrap:anywhere;min-height:40px;line-height:1.5}
#catalogo .filters[data-overflow] .category-row>label{flex:1;min-width:0}

/* Arrow stays aligned with its category, including when choices expand. */
#catalogo .category-row{position:relative;min-height:30px}
#catalogo .category-row>label{padding-right:32px!important}
#catalogo .category-row>.category-submenu{position:static;flex:none}
#catalogo .category-submenu>summary{position:absolute;right:0;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0}
