/* Mobile menu category action and right-side category drawer. */
.mobile-category-action-row {
  display: none;
}

.mobile-category-overlay {
  background: transparent !important;
  bottom: 0;
  left: 0;
  right: 0;
  top: var(--mobile-category-top, 0px);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  z-index: 1198;
}

.mobile-category-action {
  align-items: center;
  background: var(--mobile-category-button-bg, #f29111) !important;
  border: 0;
  border-radius: 6px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font: 700 14px/1.2 Arial, sans-serif;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
}

@media (max-width: 991.98px) {
  .mobile-category-action-row {
    display: flex;
    justify-content: center;
    margin: 10px auto 14px;
    width: 100%;
  }

  .mobile-category-action-row--outside-section {
    flex: 0 0 100%;
    margin: 10px auto 14px;
  }

  .mobile-category-original-toggle {
    display: none !important;
  }

  .mobile-category-sidebar {
    bottom: 0 !important;
    display: none !important;
    height: calc(100dvh - var(--mobile-category-top, 0px)) !important;
    left: auto !important;
    max-width: 88vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: fixed !important;
    right: 0 !important;
    top: var(--mobile-category-top, 0px) !important;
    transform: translateX(105%);
    transition: transform .25s ease;
    width: min(340px, 88vw) !important;
    z-index: 1199 !important;
  }

  .mobile-category-sidebar.mobile-category-sidebar-open {
    display: block !important;
    transform: translateX(0);
  }

  body.mobile-category-drawer-open .mobile-category-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body:has(#categorySidebar) .anand-catalog-toggle,
  body:has(.category-sidebar) .category-mobile-trigger {
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 0 !important;
    font-weight: 700;
    padding: 10px 16px !important;
  }

  body:has(#categorySidebar) .anand-catalog-toggle::after,
  body:has(.category-sidebar) .category-mobile-trigger::after {
    content: "Change Category";
    font: 700 14px/1 Arial, sans-serif;
  }

  body:has(#categorySidebar) .anand-catalog-toggle > *,
  body:has(.category-sidebar) .category-mobile-trigger > * { display: none; }

  body:has(.tt-category-toggle-button) .tt-category-toggle-button {
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    text-decoration: none;
  }

  body:has(.tt-category-toggle-button) .tt-category-toggle-button > i { display: none; }
}
