/* EspaceLibertin 2.99.1 — filtre « Tous les pays » lisible sur smartphone.
   feed295.js déplace .feedtools dans #compose sur mobile ; le menu ne doit
   plus rester en position absolue au-dessus des stories. */
@media (max-width: 700px) {
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .gl-mobile-tools-mount {
    min-width: 0;
    max-width: 100%;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .feedtools {
    flex-wrap: wrap !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Le panneau déplié forme une ligne entière dans le flux ; pas de superposition. */
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .feedtools > .cofilter[open] {
    order: 10 !important;
    display: block !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 0 !important;
    position: static !important;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .feedtools > .cofilter[open] > summary {
    display: inline-flex !important;
    max-width: 100% !important;
    min-height: 40px !important;
    white-space: normal !important;
    margin-bottom: 7px !important;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .cofilter[open] > .cofilter-pane {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: min(57dvh, 490px) !important;
    max-height: calc(100dvh - 190px) !important;
    padding: 12px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #9d4d78 !important;
    border-radius: 14px !important;
    background: #17101d !important;
    box-shadow: inset 0 1px 0 #ffffff12 !important;
    gap: 10px !important;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .cofilter-pane > p.meta {
    margin: 0 !important;
    line-height: 1.4 !important;
    font-size: 12px !important;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .cofilter-list {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 6px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px 6px 0 !important;
    scrollbar-width: thin;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .cofilter-list label.check {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .cofilter-pane > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid #79445e !important;
    background: #17101d !important;
  }
  body.glamour281 .feedgrid.gl-three-column-feed.gl-feed-295 #compose .cofilter-pane > .row > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 43px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 6px !important;
    font-size: 12px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}
