/* Landing mobil alt menü */

.ws-is-hidden {
  display: none !important;
}

.wl-mm__bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1010;
  height: 64px;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  color: #344054;
}

.wl-mm__bar-inner {
  display: grid;
  height: 100%;
  align-items: stretch;
  justify-items: stretch;
  grid-template-columns: repeat(var(--wl-mm-cols, 4), minmax(0, 1fr));
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  column-gap: 0;
}

.wl-mm__bar-inner.wl-mm-cols-2 { --wl-mm-cols: 2; }
.wl-mm__bar-inner.wl-mm-cols-3 { --wl-mm-cols: 3; }
.wl-mm__bar-inner.wl-mm-cols-4 { --wl-mm-cols: 4; }
.wl-mm__bar-inner.wl-mm-cols-5 { --wl-mm-cols: 5; }

.wl-mm__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}

.wl-mm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  line-height: 0;
  color: inherit;
}

.wl-mm__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl-mm__tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.wl-mm__cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.wl-mm__cart-icon .mini-cart-count,
.wl-mm__cart-icon .cart-quantity {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.wl-mm__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1008;
  background: rgba(0, 0, 0, 0.35);
}

.wl-mm__backdrop:not([hidden]) {
  display: block;
}

.wl-mm__sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 1009;
  max-height: min(58vh, 420px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.wl-mm__sheet[hidden] {
  display: none !important;
}

.wl-mm__sheet.is-open {
  display: flex;
}

.wl-mm__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
}

.wl-mm__sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tg-heading-font-color, #222);
}

.wl-mm__sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: inherit;
  cursor: pointer;
}

.wl-mm__sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 12px;
}

.wl-mm__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-mm__item {
  margin: 0;
}

.wl-mm__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.wl-mm__link--all {
  font-weight: 600;
  color: var(--tg-primary-color, #487fff);
}

.wl-mm__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  background: #fafafa;
}

.wl-mm__sub .wl-mm__link {
  padding-inline-start: 28px;
  font-weight: 400;
}

.wl-mm__item.is-expanded > .wl-mm__link--toggle i {
  transform: rotate(180deg);
}

.wl-mm__link--toggle i {
  transition: transform 0.2s ease;
}

.wl-mm__empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.wl-mm__profile {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.wl-mm__profile > .wl-mm__tab {
  width: 100%;
}

.wl-mm__profile-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 1011;
  min-width: 180px;
  max-width: min(240px, 80vw);
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.wl-mm__profile-menu[hidden] {
  display: none !important;
}

.wl-mm__profile-menu a,
.wl-mm__profile-menu .wl-mm__logout {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.wl-mm__profile-menu a:hover,
.wl-mm__profile-menu .wl-mm__logout:hover {
  background: #f3f4f6;
}

.wl-mm__logout {
  font-weight: 700;
  color: #b42318;
}

body.wl-mm-sheet-open {
  overflow: hidden;
}

body.wl-mm-bar-on {
  padding-bottom: 64px;
}

@media (min-width: 1200px) {
  .wl-mm {
    display: none !important;
  }

  body.wl-mm-bar-on {
    padding-bottom: 0;
  }
}
