/* RUYA_LIBRARY_GROUP_FILTERS_V1 */

/* ==========================================================
   ADMIN
   ========================================================== */

.ruyaLibCatalogGroups{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  min-width:560px;
  flex:1 1 620px;
}

.ruyaLibCatalogGroups button{
  appearance:none;
  border:1px solid #dfe7f1;
  background:#fff;
  min-height:40px;
  padding:5px 10px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
  color:#50637a;
  font:inherit;
  transition:
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.ruyaLibCatalogGroups button span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:600;
}

.ruyaLibCatalogGroups button b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#f1f5fa;
  color:#29435f;
  font-size:10px;
  font-weight:700;
}

.ruyaLibCatalogGroups button:hover{
  border-color:#b9c9dc;
  background:#f9fbfd;
}

.ruyaLibCatalogGroups button.active{
  border-color:#123d72;
  background:#123d72;
  color:#fff;
  box-shadow:0 5px 14px rgba(18,61,114,.14);
}

.ruyaLibCatalogGroups button.active b{
  background:rgba(255,255,255,.16);
  color:#fff;
}

.ruyaLibGameAgeFilter{
  min-width:140px;
}


/* ==========================================================
   PARENT
   ========================================================== */

.ruyaParentLibraryV1 .ruyaParentLibFilters{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  overflow:visible;
}

.ruyaParentLibraryV1 .ruyaParentLibFilters button{
  width:100%;
  min-width:0;
  justify-content:center;
  white-space:normal;
  line-height:1.25;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:1100px){

  .ruyaLibCatalogGroups{
    min-width:100%;
    flex-basis:100%;
  }

}

@media(max-width:760px){

  .ruyaLibCatalogGroups{
    display:flex;
    min-width:0;
    width:100%;
    overflow-x:auto;
    gap:7px;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .ruyaLibCatalogGroups::-webkit-scrollbar{
    display:none;
  }

  .ruyaLibCatalogGroups button{
    flex:0 0 auto;
    min-width:132px;
    min-height:38px;
  }

  .ruyaParentLibraryV1 .ruyaParentLibFilters{
    display:flex;
    overflow-x:auto;
    gap:7px;
    scrollbar-width:none;
    padding-bottom:2px;
  }

  .ruyaParentLibraryV1 .ruyaParentLibFilters::-webkit-scrollbar{
    display:none;
  }

  .ruyaParentLibraryV1 .ruyaParentLibFilters button{
    flex:0 0 auto;
    width:auto;
    min-width:126px;
    white-space:nowrap;
  }

}
