body::-webkit-scrollbar,
.filter-wrap form::-webkit-scrollbar,
.filter-results::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #b8cde8;
  border-radius: 11px;
  padding: 3px;
}

::-webkit-scrollbar-track {
  background: #e8f1fb;
}

.filter-wrap {
  background-color: #fff;
  display: flex;
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: 0.2s;
  top: 136px;
  z-index: 99;
  height: calc(100% - 90px);
  max-height: 670px;
  width: 100%;
}

.price-select-placeholder i {
  font-size: 14px;
}

.filter--opened {
  position: relative;
}

.filter--opened::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 19, 52, 0.7);
}

.filter--opened .filter-wrap {
  opacity: 1;
  pointer-events: all;
}

.filter-form {
  margin: 2rem;
  max-width: 16.5rem;
  width: 100%;
}

.filter-form form {
  background: #f6faff;
  padding: 1.5rem;
}

.filter-results {
  position: relative;
  overflow: auto;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 15px;
  width: 100%;
}

.default-text {
  color: black;
  display: block;
  left: 15px;
  position: absolute;
  top: 15px;
  width: 260px;
  z-index: 1;
}

.default-text p {
  font-size: 17px;
}

.filter-results ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-wrap form {
  display: flex;
  flex-wrap: wrap;
  height: calc(100% - 110px);
  overflow-y: auto;
}

.filter-wrap input {
  display: none;
}

.search-block {
  background: #f6faff;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.filter-wrap .search-input {
  display: inline;
  border: 2px solid #dce6f3;
  padding: 10px 10px 8px;
  margin: 0;
  transition: 0.3s;
  box-shadow: none;
  outline: none;
}

.filter-wrap .search-input:hover,
.filter-wrap .search-input:focus {
  border-color: #b1c4de;
  box-shadow: none;
  outline: none;
}

.filter-wrap label {
  color: #293b51;
  padding: 5px 0;
  transition: 0.3s;
  cursor: pointer;
}

.filter-wrap .allCategory :checked ~ label, .filter-wrap .active-category + label {
  color: #f49700;
}

.filter-wrap ul {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 2;
}

.filter-wrap li {
  display: flex;
}

@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.filters-button-group {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: -1px;
  background: #fff;
  z-index: 999;
  padding-bottom: 20px;
}

.filters-button-group .btn {
  background-color: #F5F8FB;
  color: #4E6177;
  border: 0;
  margin: 7px 15px;
  padding: 4px 15px;
  min-width: 110px;
}

.filters-button-group .btn:hover,
.filters-button-group .btn:focus {
  background-color: #3A85E6;
  color: #fff;
}

.filters-button-group .btn.is-checked {
  background-color: #04122D;
  color: #fff;
}

.template-item {
  text-align: center;
}

.template-item figure {
  margin: 0 5px;
  -webkit-animation: show .8s ease;
  animation: show .8s ease;
}

.template-item img {
  width: 100%;
  transition: 0.3s;
  padding: 11px;
  background-color: #fff;
  box-shadow: 0 3px 20px rgba(0, 68, 135, 0.10);
  overflow: hidden;
  -webkit-transition: all .2s ease 0s;
  -o-transition: all .2s ease 0s;
  transition: all .2s ease 0s;
}

.template-item a {
  display: block;
  min-height: 269px;
  margin-bottom: 15px;
  width: 100%;
  -webkit-transition: all 0.3s ease 0.3s;
  -o-transition: all 0.3s ease 0.3s;
  transition: all 0.3s ease 0s;
}

.template-item a.active .template-name {
  color: #3a85e6;
}

.template-item a:hover {
  transform: translateY(-5px);
}

.template-link  .template-name {
  font-size: 18px;
  line-height: 32px;
}

.template-item figcaption {
  margin-top: 20px;
}

.template-item figure figcaption {
  margin: 0;
  position: relative;
  z-index: 1;
  -webkit-transition: all .2s ease 0s;
  -o-transition: all .2s ease 0s;
  transition: all .2s ease 0s;
}

.template-item .template-category {
  background: white;
  display: none;
  transition: 0.3s;
}

.template-item figure:hover .template-category {
  opacity: 1;
}

.template-item figcaption {
  padding: 15px 0;
}

.template-item span {
  font-size: 15px;
  font-weight: 300;
  color: #969696;
  /* display: none; */
}

/* Site-loader */
.loading {
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
  background-color: black;
  border-radius: 100%;
  height: 6em;
  width: 6em;
}

.spinner-container {
  align-items: center;
  background-color: white;
  display: flex;
  height: 100vh;
  justify-content: center;
  width: 100vw;
}

@keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
    transform: scale(1.0);
  }
}

@keyframes transform {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }
  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }
  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }
  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }
  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }
  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

@keyframes movement {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateY(20%) rotateY(10deg);
  }
}

@media (min-width: 992px) {
  .filter-wrap {
    top: 90px;
  }
  .price-select-wrap {
    min-width: 230px;
    margin-left: -80px;
  }
  .price-select-placeholder {
    text-align: center;
  }
}

@media (max-width: 1199px) {
  .filter-form {
    margin: 0;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  .search-block {
    background: #fff;
    padding: 1rem 1rem 1rem 1.5rem;
    margin-bottom: 0;
  }
  .filter-results {
    margin: 20px 0.6rem;
  }
  .filter-wrap {
    top: 140px;
    height: calc(100% - 140px);
    max-height: 100%;
    overflow: hidden;
  }
  .filter-wrap ul {
    background-color: #fff;
  }
  .filter-wrap .search-input {
    width: 100%;
  }
  .filter-wrap form {
    display: none;
  }
}

@media (max-width: 992px) {
  .template-item figcaption {
    padding: 15px 0 0;
  }
  .price-select-placeholder {
    padding: 10px 15px;
  }
}

@media(max-width:575.98px) {
  .filter-wrap {
    top: 136px;
    height: calc(100% - 136px);
  }
  .template-item figcaption {
    padding: 10px 0 0;
  }
  .btn {
    padding: 5px 15px 4px;
  }
}
