:root {
  --bg-color: white;
  --line-color: #e8e8e8;
  --cdrp-h: 100vh;
  --cdrp-hs: 120px;
  --top-layer-h: 120px;
  --max-drpdwn-h: 540px;
  --mtech-msp-input-h: 48px;
  --mtech-msp-input-w: 420px;
  --mtech-msp-input-maxw: 100%;
  --mtech-msp-text-pad: 8px;
  --mtech-msp-text-item-pad: 2px 8px;
  --disabled-color: #acacac;
  --links-color: black;
  --title-color: black;
}

.mtech-sp-menu {
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  line-height: 1.2;
}

.mtech-sp-menu .sp-menu-container {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
}

.mtech-sp-menu ul {
  display: block;
  margin: 0;
  font-size: 14px;
}

.mtech-sp-menu ul li {
  margin: 0;
  padding-right: 8px;
  display: inline-block;
  height: auto;
  vertical-align: middle;
}

.mtech-sp-menu ul li a {
  color: var(--links-color);
  font-weight: 500;
  padding: var(--mtech-msp-text-pad);
}

.mtech-sp-menu ul li a:hover {
  color: var(--orange);
}

.mtech-sp-menu .main-links.active a{
  color: var(--orange);
}

.mtech-sp-menu .mtech-sp-menu-dropdown {
  /* display: flex; */
  position: absolute;
  top: 38px;
  height: calc(100vh - 80px);
  max-height: var(--max-drpdwn-h);
  max-width: 1440px;
  width: calc(100% - 48px);
  left: 50%;
  transform-origin: center;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  /* flex-wrap: wrap; */
  flex-direction: column;
  border-radius: 0 0 12px 12px;
  border-top: 0px;
  border: .5px solid var(--line-color);
  -moz-box-shadow: inset 0 7px 9px -7px var(--line-color);
  -webkit-box-shadow: inset 0 7px 9px -7px var(--line-color);
  box-shadow: inset 0 7px 9px -7px var(--line-color);
  /* padding-bottom: 32px; */
  display: none;
}

.outer-shadow {
  -moz-box-shadow: 0 7px 9px -7px var(--line-color);
  -webkit-box-shadow: 0 7px 9px -7px var(--line-color);
  box-shadow: 0 7px 9px -7px var(--line-color);
}

.mtech-sp-menu .mtech-sp-menu-dropdown .top-layer {
  width: 100%;
  height: var(--top-layer-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-color);
  padding: 24px;
  position: relative;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .top-layer .thumbnail-display {
  display: block;
  position: absolute;
  right: 20px;
  height: calc(var(--top-layer-h) - 20px);
  width: 320px;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer {
  position: relative;
  width: inherit;
  height: 100%;
  padding: 24px 32px;
  overflow-y: auto;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  overflow-y: auto;
  display: none;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters {
  padding-left: 144px;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filtred-rows {
  padding-left: 24px;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item {
  padding: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--links-color);
  border-radius: 12px;
  position: relative;
  font-weight: 700;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item .filter-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform-origin: center;
  transform: translateY(-50%);
  visibility: hidden;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item.selected,
.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item:hover {
  background-color: var(--orange);
  color: white;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item.selected .filter-icon,
.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item:hover .filter-icon {
  visibility: visible;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item.disabled {
  background-color: transparent;
  color: var(--disabled-color);
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container .filter-item.disabled .filter-icon {
  visibility: hidden;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-content.with-filters .filter-container {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 144px;
  overflow-y: auto;
  border-right: 1px solid var(--line-color);
  padding-top: 24px;
  padding-left: 2px;
  padding-right: 2px;
  display: flex;
  flex-direction: column;

}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-lvl-content.with-back-btn {
  padding-left: 128px !important;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-lvl-content.with-back-btn .back-btn-wrapper {
  position: absolute;
  left: 24px;
  top: 40px;
  transform-origin: center;
  transform: translateY(-50%);
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-lvl-content .back-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-el {
  margin-bottom: 32px;
  padding-bottom: 32px;
  /* height: 100%; */
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-el .sub-title {
  font-size: 12px;
  padding: var(--mtech-msp-text-pad);
  /* width: 100%; */
  border-radius: 4px 4px 4px 4px;
  background-color: #f7f7f7;
  display: inline-block;
  text-align: center;
  color: var(--title-color);
  font-weight: 700;
  border: 1px solid #e5e5e5;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-el .sub-link-container {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-right: 8px;
  font-size: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-el .sub-link-container a {
  padding: var(--mtech-msp-text-item-pad);
  margin: 0;
  border-radius: 4px;
  color: var(--links-color);
  font-weight: 500;
  display: inline-flex;
  flex-direction: row;
  align-content: space-around;
  flex-wrap: nowrap;
  /* justify-content: space-between; */
  align-items: center;
}

.mtech-sp-menu .mtech-sp-menu-dropdown .sub-layer .sub-layer-el .sub-link-container a:hover {
  color: white;
  background-color: var(--orange);
}

/* scrollbar */
/* width */
.sub-link-container,
.sub-layer-el {
  scrollbar-color: var(--orange);
  scrollbar-width: thin;
}

.sub-link-container::-webkit-scrollbar,
.sub-layer::-webkit-scrollbar {
  width: 2px;
}

/* Track */
.sub-link-container::-webkit-scrollbar-track,
.sub-layer::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* Handle */
.sub-link-container::-webkit-scrollbar-thumb,
.sub-layer::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

/* Handle on hover */
.sub-link-container::-webkit-scrollbar-thumb:hover,
.sub-layer::-webkit-scrollbar-thumb:hover {
  background: #e5410a;
}

/* Search input */
.mtech-sp-menu-dropdown .top-layer .search-input {
  position: relative;
  height: var(--mtech-msp-input-h);
  width: var(--mtech-msp-input-w);
}

.mtech-sp-menu-dropdown .top-layer .search-input input {
  position: relative;
  height: var(--mtech-msp-input-h);
  width: var(--mtech-msp-input-w);
  border-radius: calc(var(--mtech-msp-input-h) / 2);
  z-index: 1;
  padding-left: calc(var(--mtech-msp-input-h) + 4px);
  padding-right: calc(var(--mtech-msp-input-h));
}

.mtech-sp-menu-dropdown .top-layer .search-input .search-icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform-origin: center;
  transform: translateY(-50%);
  height: var(--mtech-msp-input-h);
  width: var(--mtech-msp-input-h);
  border-radius: calc(var(--mtech-msp-input-h) / 2);
  background-color: var(--orange);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtech-sp-menu-dropdown .top-layer .search-input .search-icon i {
  font-size: 18px;
  color: white;
}

.mtech-sp-menu-dropdown .top-layer .search-input .clear-btn {
  position: absolute;
  top: 50%;
  right: calc(var(--mtech-msp-input-h)/4);
  transform-origin: center;
  transform: translateY(-50%);
  height: calc(var(--mtech-msp-input-h)/2);
  width: calc(var(--mtech-msp-input-h)/2);
  border-radius: calc(var(--mtech-msp-input-h) / 2);
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  cursor: pointer;
}

.mtech-sp-menu-dropdown .top-layer .search-input .clear-btn i {
  font-size: 12px;
  color: white;
}

.header-bottom {
  border-top: 1px solid var(--line-color);
}