﻿.lk-dropdown-content,
.directions-dropdown-content {
  display: none;
}

.directions-dropdown-content.show {
  display: block;
  position: absolute;
  top: 150px;
  right: auto;
  padding: 16px;
  z-index: 10;
  box-shadow: 0px 0px 13px 0px rgb(189 189 189 / 20%);
  background: white;
  max-width: 75vw;
  max-height: 730px;
  border-radius: 6px;
}

.directions-dropdown-content.hidden {
  display: none;
}

.categories-dropdown-block {
  display: grid;
  grid-template-columns: 350px minmax(0, auto);
  gap: 8px;
}

.categories-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
}

.categories-dropdown-block .catalog-sections-navigation {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--Default-black-100, rgba(0, 0, 0, 0.10));
}

.categories-dropdown-block .menu-sections-list {
  width: 100%;
}

.categories-dropdown-block .menu-sections-list .list-item {
  width: 163px;
}

.categories-dropdown-select li {
  color: #000;
  /* Body/Small/Small */
  font-family: Onest;
  font-size: var(--Body-Small, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  display: flex;
  padding: var(--Standart-s, 8px);
  gap: 12px;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s ease-in-out;
}

@media (min-width: 1200px) {
  .categories-dropdown-select li:hover {
    background: var(--Default-black-40, rgba(0, 0, 0, 0.04));
  }

  .categories-dropdown-select li.active {
    background: var(--Default-black-40, rgba(0, 0, 0, 0.04));
  }

}

.categories-dropdown-content {
  padding: 16px;
  display: flex;
  gap: 20px;
  width: 100%;
  height: fit-content;
  flex-wrap: wrap;

  overflow-y: scroll;
  max-height: 700px;
  border-radius: 6px;
  background: white;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.categories-dropdown-content b {
  overflow-wrap: anywhere;
  white-space: break-spaces;
  text-align: right;
}

.categories-dropdown-content span.master-btn-text-small-text-inner.master-btn-white-text-inner.body-small-500.color-default-black-1000 {
  overflow-wrap: anywhere;
  white-space: break-spaces;
  text-align: right;
}

.categories-dropdown-content .master-btn-text-small-text {
  text-align: left;
}

.categories-dropdown-item .list-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #0b0b0b;
  font-family: Onest;
  font-size: var(--Body-Small, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.categories-dropdown-item > a {
  font-size: var(--Body-Regular, 16px);
  margin-bottom: 12px;
}

.categories-dropdown-item .list-item:hover {
  text-decoration: underline;
}

.subcategory-container {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-top: 8px;
}

.categories-img {
  border-radius: 4px;
}

.categories-dropdown-item {
}

/* Mobile Version */

.all-cat-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 16px 24px 16px;

  border-bottom: 1px solid var(--Default-black-100, rgba(0, 0, 0, 0.10));
}

.all-categories .menu-sections-list .list-item {
  flex: 1 1 0;
}

.all-categories .master-btn-small-text-inner {
  white-space: normal;
  text-align: left;
}

.all-categories .catalog-sections-navigation {
  padding: 12px 8px 16px 8px;
}

.all-categories .menu-sections-list {
  border-radius: var(--Standart-xs, 6px);
  background: var(--Default-black-40, rgba(0, 0, 0, 0.04));
  width: 100%;

  justify-content: space-between;
}

.all-categories .categories-dropdown-select li {
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--Default-black-100, rgba(0, 0, 0, 0.10));

  border-radius: 0;
}

.all-categories .categories-dropdown-select li .small-icon {
  margin-left: auto;
}

.categories-list-items {
  display: flex;
  padding-left: 48px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  padding: 12px 12px 24px 60px;
}

.categories-list-items:last-child {
  border-bottom: 1px solid var(--Default-black-100, rgba(0, 0, 0, 0.10));
}

@media (max-width: 370px) {
  .all-categories .menu-sections-list .list-item {
    padding: 8px 12px;
  }
}
