/* Left-side Category Tree matching old site styles and behavior */

#index .columns-container {
  margin-top: .7rem;
}

.ps-categorytree.category-tree.left-block {
  background: transparent;
  border: 0 none;
  margin: 0 0 10px;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #777;
}

.ps-categorytree .left-block__title {
  background-color: #656565;
  border: 1px solid #666;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 15px;
  margin: 0;
  padding: 2px 0 2px 10px;
  text-transform: none;
  text-shadow: 1px 1px black;
}

.ps-categorytree .accordion--category {
  margin-bottom: 0;
  overflow: hidden;
}

.ps-categorytree .category-tree__child > .category-tree__list {
  background-color: transparent;
  border-width: 0 1px 1px 1px;
  border-style: none solid solid solid;
  border-color: #c0c0c0;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

.ps-categorytree .category-tree__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-categorytree .category-tree__item,
.ps-categorytree .category-tree__item.accordion-item,
.ps-categorytree .accordion-item {
  position: relative;
  list-style: none;
  line-height: 18px;
  background-color: transparent !important;
  background: transparent !important;
  border: 0 none;
}

.ps-categorytree .accordion--category .collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease !important;
}

.ps-categorytree .category-tree__item-header {
  min-height: 18px;
  display: flex;
  align-items: center;
  position: relative;
}

.ps-categorytree .category-tree__item-link {
  color: #000;
  font-size: 12px;
  line-height: 15px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  padding: 0;
  margin-left: 10px;
  text-decoration: none;
  display: inline;
  margin-top: 3px;
  margin-bottom: 3px;
}

/* Indentation per depth level */
.ps-categorytree .category-tree__list[data-depth="0"] > .category-tree__item > .category-tree__item-header > .category-tree__item-link {
  margin-left: 10px;
}

.ps-categorytree .category-tree__list[data-depth="1"] > .category-tree__item > .category-tree__item-header > .category-tree__item-link {
  margin-left: 20px;
}

.ps-categorytree .category-tree__list[data-depth="2"] > .category-tree__item > .category-tree__item-header > .category-tree__item-link {
  margin-left: 30px;
}

.ps-categorytree .category-tree__list[data-depth="3"] > .category-tree__item > .category-tree__item-header > .category-tree__item-link {
  margin-left: 40px;
}


.ps-categorytree .category-tree__item-header .category-tree__item-link--leaf {
  padding-left: 0;
}

.ps-categorytree .category-tree__item-link:hover {
  color: #0958bd;
  text-decoration: underline;
}

.ps-categorytree .category-tree__item-link.selected {
  color: #aa2200;
  font-weight: bold;
}

/* Submenu background and borders per depth */
.ps-categorytree .accordion--category .accordion-body {
  margin: 0;
  padding: 0;
}

.ps-categorytree .category-tree__list[data-depth="1"] {
  background-color: #f5f5f5;
  border-top: 1px solid #aaa;
  border-bottom: 2px solid #999;
  border-left: 0;
  border-right: 0;
}

.ps-categorytree .category-tree__list[data-depth="2"] {
  background-color: #ececed;
  border-top: 1px solid #aaa;
  border-bottom: 2px solid #999;
  border-left: 0;
  border-right: 0;
}

.ps-categorytree .category-tree__list[data-depth="3"] {
  background-color: #e1e1e1;
  border-top: 1px solid #aaa;
  border-bottom: 2px solid #999;
  border-left: 0;
  border-right: 0;
}

/* Accordion expand/collapse grower toggle icon on the right */
.ps-categorytree .accordion--category .accordion-button {
  position: absolute;
  right: -1px;
  top: 0;
  width: 18px;
  height: 17px;
  padding: 0;
  margin: 0;
  border: 0 none;
  background: transparent none;
  box-shadow: none;
  cursor: pointer;
  z-index: 2;
  order: 2;
}

.ps-categorytree .accordion--category .accordion-button::after {
  display: block;
  width: 18px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  background-image: none !important;
  transform: none !important;
  content: "" !important;
  font-family: Arial, Helvetica, sans-serif;
}

/* Custom Chevron matching the FontAwesome right (collapsed) and down (expanded) icons */
.ps-categorytree .accordion--category .accordion-button.collapsed::before {
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #c0c0c0;
  border-right: 2px solid #c0c0c0;
  transform: rotate(45deg);
}

.ps-categorytree .accordion--category .accordion-button.collapsed:hover::before {
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
}

.ps-categorytree .accordion--category .accordion-button:not(.collapsed)::before {
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}

.ps-categorytree .accordion--category .accordion-button:not(.collapsed):hover::before {
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
}

@media (max-width: 767.98px) {
  .ps-categorytree.category-tree.left-block {
    display: none;
  }
}
