/* Flat two-level product category navigation. Loaded after cart-shadcn.css. */
.og-cart-header .og-cart-mobile-client-menu {
  display: none !important;
}

.og-cart-page {
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-areas:
    "notice notice"
    "sidebar main";
  gap: 30px;
}

.og-cart-sidebar {
  grid-area: sidebar;
  top: 112px;
}

.og-cart-notice-card {
  grid-area: notice;
  width: 100%;
  min-width: 0;
}

body[data-topbar="dark"][data-sidebar="dark"] .og-cart-page > .og-cart-notice-card .og-notice-copy > a,
body[data-topbar="dark"][data-sidebar="dark"] .og-cart-page > .og-cart-notice-card .og-notice-copy > a:link,
body[data-topbar="dark"][data-sidebar="dark"] .og-cart-page > .og-cart-notice-card .og-notice-copy > a:visited,
body[data-topbar="dark"][data-sidebar="dark"] .og-cart-page > .og-cart-notice-card .og-notice-copy > a:hover,
body[data-topbar="dark"][data-sidebar="dark"] .og-cart-page > .og-cart-notice-card .og-notice-copy > a:focus {
  color: #09090b !important;
  -webkit-text-fill-color: #09090b;
}

.og-cart-main {
  grid-area: main;
}

.og-sidebar-card,
.og-sidebar-card[class] {
  padding: 2px 18px 24px 0 !important;
  border: 0 !important;
  border-right: 1px solid #18181b !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.og-sidebar-head {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.og-sidebar-head > span {
  display: block;
  padding: 0 8px;
  color: #71717a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.og-category-tree {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 6px;
}

.og-category-tree-item {
  min-width: 0;
}

.og-sidebar-card .firstgroup_item,
.og-sidebar-card .secondgroup_item {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #e4e4e7 !important;
  box-shadow: none !important;
  transform: scale(var(--og-nav-press-scale, 1)) !important;
  transform-origin: left center;
  z-index: 1;
}

.og-sidebar-card .firstgroup_item {
  min-height: 30px !important;
  padding: 0 4px 0 8px !important;
  gap: 0 !important;
  color: #71717a !important;
}

.og-sidebar-card .secondgroup_item {
  min-height: 48px !important;
  padding: 0 10px !important;
  gap: 11px !important;
}

.og-sidebar-card .firstgroup_item:hover {
  border-color: transparent !important;
  background: transparent !important;
  color: #a1a1aa !important;
}

.og-sidebar-card .og-category-tree .firstgroup_item:hover a {
  color: #a1a1aa !important;
}

.og-sidebar-card .secondgroup_item:hover {
  border-color: #18181b !important;
  background: #18181b !important;
  color: #fafafa !important;
}

.og-sidebar-card .firstgroup_item.active,
.og-sidebar-card .firstgroup_item.active:hover,
.og-sidebar-card .firstgroup_item.active a,
.og-sidebar-card .firstgroup_item.active a.text-white {
  border-color: transparent !important;
  background: transparent !important;
  color: #71717a !important;
}

.og-sidebar-card .secondgroup_item.active,
.og-sidebar-card .secondgroup_item.active:hover,
.og-sidebar-card .secondgroup_item.active a,
.og-sidebar-card .secondgroup_item.active a.text-white {
  border-color: #292929 !important;
  background: #292929 !important;
  color: #fafafa !important;
}

.og-sidebar-card .firstgroup_item:active,
.og-sidebar-card .secondgroup_item:active {
  transform: scale(1) !important;
}

.og-sidebar-card .og-category-tree .firstgroup_item a {
  order: 1;
  min-width: 0;
  overflow: hidden;
  color: #71717a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.og-sidebar-card .secondgroup_item a {
  order: 1;
  min-width: 0;
  overflow: hidden;
  color: currentColor !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.og-sidebar-card .firstgroup_item > .og-category-icon {
  display: none;
}

.og-category-icon {
  display: inline-block;
  width: 20px;
  min-width: 20px;
  height: 20px;
  color: currentColor;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}

.og-category-icon-chip {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='5' width='14' height='14' rx='2' fill='black'/%3E%3Cpath d='M9 1v4m6-4v4M9 19v4m6-4v4M1 9h4m-4 6h4m14-6h4m-4 6h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='5' width='14' height='14' rx='2' fill='black'/%3E%3Cpath d='M9 1v4m6-4v4M9 19v4m6-4v4M1 9h4m-4 6h4m14-6h4m-4 6h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.og-category-toggle {
  order: 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
}

.og-category-toggle:hover,
.og-category-toggle:focus-visible {
  background: #18181b;
  color: #d4d4d8;
  outline: none;
}

.og-category-toggle .og-category-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.og-category-tree-item:not(.is-open) .og-category-toggle .og-category-chevron {
  transform: rotate(-45deg) translate(-1px, -1px);
}

.og-category-children {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0 0 0 4px;
  border-left: 0;
}

.og-category-active-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  border: 1px solid #292929;
  border-radius: 8px;
  background: #292929;
  pointer-events: none;
  transform-origin: left top;
  will-change: transform;
  z-index: 0;
}

.og-sidebar-card .og-category-children.is-indicator-ready .secondgroup_item.active,
.og-sidebar-card .og-category-children.is-indicator-ready .secondgroup_item.active:hover {
  border-color: transparent !important;
  background: transparent !important;
}

.og-sidebar-card .og-category-children.is-indicator-ready .secondgroup_item:not(.active):hover {
  border-color: transparent !important;
  background: rgba(255, 255, 255, .035) !important;
}

.og-category-children[hidden] {
  display: none !important;
}

.og-sidebar-card .firstgroup_item::after,
.og-sidebar-card .secondgroup_item::after,
.og-sidebar-card .secondgroup_box::before {
  display: none !important;
}

.og-sidebar-card .category-tag,
.og-sidebar-card .category-tag-multicolor {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .og-category-active-indicator {
    will-change: auto;
  }

  .og-category-toggle .og-category-chevron {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .og-cart-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "notice"
      "sidebar"
      "main";
    gap: 20px;
  }

  .og-cart-sidebar {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .og-sidebar-card,
  .og-sidebar-card[class] {
    padding: 0 0 20px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #202024 !important;
  }
}

@media (max-width: 576px) {
  .og-sidebar-card .firstgroup_item {
    min-height: 30px !important;
  }

  .og-sidebar-card .secondgroup_item {
    min-height: 44px !important;
  }

  .og-category-children {
    margin-left: 0;
    padding-left: 4px;
  }
}
