@import '../../../assets/scss/variables';

.breadacrumb-grid {
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 15px;
  height: 40px;
  position: relative;
}

.breadcumb-mb-5 {
  margin-bottom: 5px;
}

.grid-with-arrow {
  grid-template-columns: auto;
}

.breadcrumb-container {
  // display: flex;
  align-items: center;
  // justify-content: center;
  white-space: nowrap;
  overflow-y: hidden;
  scroll-behavior: smooth;
  overflow-x: scroll;
  height: 45px;
  padding-top: 10px;
  // width: calc(100% - 100px);
}

:only-child {
  .breadcrumb-end-layer-fade {
    position: absolute;
    min-height: 45px;
    min-width: 5px;
    z-index: 20;
    opacity: 0.7;
    background-color: #e6eff9;
    box-shadow: -8px 0px 14px 3px #e6eff9;
    border-radius: 5px;
  }
}

.breadcrumb-start-layer-fade {
  position: absolute;
  min-height: 45px;
  min-width: 5px;
  z-index: 20;
  opacity: 0.7;
  background-color: #e6eff9;
  box-shadow: 8px 0px 14px 3px #e6eff9;
  border-radius: 5px;
}

.breadcrumb {
  outline: none;
  font-size: 16px;
  color: #1f466c;
  line-height: 21px;
  padding: 10px 0;
  padding-bottom: 0px;
  cursor: pointer;

  &.branch {
    color: #596470;
  }
}

.hide {
  display: none;
  opacity: 0;

  &:nth-last-child(4) {
    /*declarations*/
    display: block;
    overflow: hidden;
    opacity: 0;
    flex: 0.0001;
    animation: fadeSlide 400ms;
  }
  &:nth-last-child(-n + 3) {
    /*declarations*/
    opacity: 1;
    display: block;
  }
}

.last {
  padding: 10px 50px;
}

.back-arrow-container {
  width: 118px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  z-index: 50;
  transform: rotate(180deg);
  cursor: pointer;
}

.foward-arrow-container {
  width: 118px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  z-index: 50;
  cursor: pointer;
}

@keyframes fadeSlide {
  0% {
    opacity: 1;
    transform: translateX(80px);
    flex: 0.5;
    overflow: hidden;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    flex: 0.0001;
  }
}

.back-arrow {
  padding: 10px 0;
}

.next {
  padding: 0 7px;
}

.selected {
  font-weight: bold;
}

.icon-start {
  position: absolute;
  left: 50px;
  margin-top: 1px;
  z-index: 30;
  opacity: 1;
  cursor: pointer;
}

.layer-fade-start {
  position: absolute;
  min-height: 40px;
  min-width: 35px;
  z-index: 20;
  left: 100px;
  opacity: 0.4;
  background-color: white;
  box-shadow: 3px 0 14px 8px white;
  border-radius: 5px;
}

.icon-end {
  position: absolute;
  right: 5px;
  margin-top: 1px;
  z-index: 30;
  opacity: 1;
  cursor: pointer;
}

.layer-fade-end {
  position: absolute;
  min-height: 40px;
  min-width: 35px;
  z-index: 20;
  right: 15px;
  opacity: 0.4;
  background-color: white;
  box-shadow: 3px 0 14px 8px white;
  border-radius: 5px;
}

/*
  ##Device = Big Desktops
*/
@media (min-width: 1281px) {
  .breadcrumb-end-layer-fade {
    right: 0px;
  }

  .breadcrumb-start-layer-fade {
    left: 100px;
  }
}

/*
  ##Device = Laptops, Desktops, Ipad pro
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  .breadcrumb-end-layer-fade {
    right: 0px;
  }

  .breadcrumb-start-layer-fade {
    left: 100px;
  }
}

/*
  ##Device = Tablets, Ipads
*/
@media (min-width: 768px) and (max-width: 1024px) {
  .breadcrumb-end-layer-fade {
    right: 15px;
  }

  .breadcrumb-start-layer-fade {
    left: 112px;
  }
}

/*
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
*/
@media (min-width: 481px) and (max-width: 767px) {
  .breadcrumb-end-layer-fade {
    right: 15px;
  }
}
