.market-drawer.offcanvas {
  --bs-offcanvas-width: min(255px, 92vw);
  border-right: 1px solid #e5e9f0;
  background: #fff;
}

.market-drawer .offcanvas-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e9f0;
}

.market-drawer .offcanvas-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #123b80;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.market-drawer .offcanvas-title img {
  object-fit: contain;
  border-radius: 10px;
}

.market-drawer .offcanvas-title small {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
}

.market-drawer .offcanvas-body {
  padding: 12px 10px;
  scrollbar-width: thin;
}

.market-drawer-group {
  margin-bottom: 16px;
}

.market-drawer-group h3 {
  margin: 0;
  padding: 6px 12px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.market-drawer .category-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #1a1f36;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.market-drawer .market-drawer-category {
  padding-inline-start: 24px;
  color: #6b7280;
}

.market-drawer .category-menu-link i {
  color: #6b7280;
  font-size: 17px;
}

.market-drawer .category-menu-link:hover,
.market-drawer .category-menu-link:focus-visible {
  background: #f5f7fb;
  color: #123b80;
}

.market-drawer .category-menu-link.active {
  background: rgba(18, 59, 128, .1);
  color: #123b80;
  font-weight: 600;
}

.market-mobile-nav {
  display: none;
}

@media (max-width: 991.98px) {
  body:has(.market-mobile-nav) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .market-mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #dce4ef;
    box-shadow: 0 -4px 20px rgba(18, 59, 128, .08);
  }

  .market-mobile-nav > a,
  .market-mobile-nav > .dropup > button {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 100%;
    min-height: 52px;
    padding: 5px 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #526079;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .market-mobile-nav > a[aria-current],
  .market-mobile-nav > .dropup > button.active {
    color: #123b80;
    background: #edf3fb;
  }

  .market-mobile-nav > a > i,
  .market-mobile-nav > .dropup > button > i {
    font-size: 20px;
    line-height: 1.15;
  }

  .market-nav-count {
    position: absolute;
    top: 1px;
    left: calc(50% + 8px);
    min-width: 15px;
    padding: 0 4px;
    color: #fff;
    background: #123b80;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
  }
}

.market-account-menu {
  width: min(17rem, calc(100vw - 24px));
  max-height: 65vh;
  max-height: 65dvh;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 59, 128, .18);
}

.market-account-name {
  padding: 8px 11px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e7edf5;
  color: #123b80;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.market-account-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 11px;
  border-radius: 8px;
  color: #26364f;
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
}

.market-account-menu .dropdown-item i {
  width: 19px;
  flex-shrink: 0;
  color: #5a6d87;
  font-size: 16px;
}

.market-account-menu .dropdown-item:hover,
.market-account-menu .dropdown-item:focus,
.market-account-menu .dropdown-item[aria-current="page"] {
  color: #123b80;
  background: #edf3fb;
}

.market-account-menu .dropdown-item[aria-current="page"] {
  font-weight: 700;
}

.market-account-menu .market-account-logout {
  padding-top: 4px;
  margin-top: 4px;
  border-top: 1px solid #e7edf5;
}

.market-account-menu .market-account-logout i {
  color: inherit;
}
