/* branches CSS */
.branches {
  display: flex;
  flex-flow: row wrap;
/*  justify-content: space-between;*/
}
.branches .branch {
	width: 100%;
}
.branches .branch .sub {
  height: 0px;
  transition: all 0.9s ease-in-out;
  opacity: 0;
}
.branches:not(.expanded) .branch {
  overflow: hidden;
}
.branches.expanded .branch .sub {
  height: auto;
  opacity:1;
}
.branches .branch .sub.show {
  height: auto;
  opacity: 1;
}
.branches .btn {
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.branches.expanded .btn {
  display: none !important;
}
.branches .branch .btn.align-left {
  float: left;
}
.branches .branch .btn.align-right {
  float: right;
}
.branches .branch .btn.align-center {
  float: none;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.branches ul.contact {
  list-style-type: none;
  margin: 10px auto;
  padding: 0px;
}
.branches ul.contact li {
	margin: 0px;
	padding: 0px;
	overflow-wrap: break-word;
}
.branches .branch .icon {
  display: block;
}

body.no-scroll {
  overflow: hidden;
}
.branch-popup {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0,0,0,0.85) !important;
  transition: all 0.4s ease-in-out;
}
.branch-popup .bg-overlay .branch {
  position: absolute;
  width: 90vw;
  height: 95vh;
  overflow-y: auto;
  border: 1px solid #fff !important;
  box-shadow: 0px 0px 10px #fff !important;
}
.branch-popup .close-br-popup {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid #000;
  width: 48px;
  height: 48px;
  font-size: 36px;
  line-height: 48px;
  text-align: center;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  background-color: #fff;
  z-index: 10000;
}
.branch-popup .btn {
  display: none;
}
.branch-popup.hide {
	display: none;
}
.branch-popup .sub {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
}

.branches-filter {
  position: absolute;
  top: 0px;
  right: 0px;
  transform: translateY(-125%);
}
.branches-filter select {
  min-height: 35px;
  background-repeat: no-repeat;
  background-position: right;
  background-size: 18px;
  padding-right: 20px !important;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iIzYyNjI2MiIgZD0iTTE1IDhsLTQgNi00LTZoOHoiLz48L3N2Zz4=);
  border-radius: 5px;
}

@media(min-width: 460px){
  .branches.cols-2,
  .branches.cols-3,
  .branches.cols-4,
  .branches.cols-5,
  .branches.cols-6 {
	  justify-content: space-evenly;
  }
  
  .branches.cols-2 .branch,
  .branches.cols-3 .branch,
  .branches.cols-4 .branch,
  .branches.cols-5 .branch,
  .branches.cols-6 .branch {
    width: 48.5%;
  }
}
@media(min-width: 768px){
  .branches.cols-3 .branch,
  .branches.cols-4 .branch,
  .branches.cols-5 .branch,
  .branches.cols-6 .branch {
    width: 32%;
  }
  .branch-popup .sub .image {
    width: 25%;
  }
  .branch-popup .sub .address {
    width: 100%;
  }
  .branch-popup .bg-overlay .branch {
    position: absolute;
    width: auto;
    height: auto;
    max-height: 60vh;
    max-width: 60vw;
    min-width: 30vw;
    min-height: 40vh;
    overflow-y: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid #fff !important;
    box-shadow: 0px 0px 10px #fff !important;
  }
  .branch-popup .close-br-popup {
    right: calc(30vw - 48px);
    top: calc(20vh - 12px);
  }
}
@media(min-width: 960px){
  .branches.cols-4 .branch {
    width: 24%;
  }
  .branches.cols-5 .branch {
    width: 19.5%;
  }
  .branches.cols-6 .branch {
    width: 16%;
  }
}