/* AdeptDEV × NANU Market v7.8 — region actions + RO/RU switch | https://t.me/adeptdevs */

/* Region cards: actions must always remain inside the card. */
#nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card,
#nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card--departments{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding-bottom:14px!important;
  overflow:hidden!important;
  contain:none!important;
}
#nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-layout,
#nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-main{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-phone-row{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:10px 0 0!important;
  padding:10px 0 0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
#nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v7-toggle{
  position:static!important;
  inset:auto!important;
  bottom:auto!important;
  right:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
}

/* At the two-column modal width, phone + departments button stack cleanly. */
@media(max-width:700px){
  #nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card--departments .nanu-region-v5-phone-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    align-items:stretch!important;
  }
  #nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card--departments .nanu-region-v5-phone,
  #nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card--departments .nanu-region-v7-toggle{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    justify-content:center!important;
  }
  #nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card--departments .nanu-region-v7-toggle{
    min-height:32px!important;
    height:32px!important;
    padding:0 9px!important;
    border-radius:10px!important;
  }
  #nanuLocationPanel .nanu-location-list.is-region-stores .nanu-region-v5-card--departments .nanu-region-v7-toggle__text{
    font-size:8.5px!important;
  }
}

/* Restore the actual language switch in the utility bar. */
.nx-language.nx-language--status{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.nx-language--status .langlang{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  min-height:38px!important;
  margin:0!important;
  padding:3px!important;
  border:1px solid rgba(236,102,8,.20)!important;
  border-radius:999px!important;
  background:#ffffff!important;
  box-shadow:0 6px 18px rgba(55,54,54,.04)!important;
}
.nx-language--status .langlang .language-select{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:38px!important;
  height:30px!important;
  margin:0!important;
  padding:0 9px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#373636!important;
  font-family:inherit!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:850!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transition:background .18s ease,color .18s ease,transform .18s ease!important;
}
.nx-language--status .langlang .language-select + .language-select{
  border-left:0!important;
  padding-right:9px!important;
}
.nx-language--status .langlang .language-select:hover{
  background:rgba(236,102,8,.08)!important;
  color:#ec6608!important;
  transform:translateY(-1px)!important;
}
.nx-language--status .langlang .language-select.selected{
  display:inline-flex!important;
  background:#ec6608!important;
  color:#ffffff!important;
  font-size:10px!important;
  font-weight:900!important;
}

@media(max-width:767px){
  .nx-statusbar__tools{gap:6px!important}
  .nx-language--status .langlang{min-height:34px!important;padding:2px!important}
  .nx-language--status .langlang .language-select{min-width:32px!important;height:28px!important;padding:0 7px!important;font-size:9px!important}
  .nx-language--status .langlang .language-select.selected{font-size:9px!important}
}
