@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,600;1,600&amp;display=swap");

.mb-30 {
  margin-bottom: 30px;
}

.templates-loading {
  cursor: wait;
  position: relative;
}

.templates-loading:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 999;
}

.kmb-site-templates-section-banner {
  color: #fff;
  background: #6f41db;
}

.kmb-site-templates-section-banner-title {
  font-size: 48px;
  font-weight: 700;
  font-family: Vary-Bold;
}

.kmb-site-templates-filter {
  position: sticky;
  top: 0;
  z-index: 6;
  color: #fff;
  background: #6f41db;
  box-sizing: border-box;
  box-shadow: 2px 4px 5px 0.5px #5f5f601f;
}

.kmb-site-templates-page-content .arrow {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.kmb-site-templates-page-content .arrow.arrow-bar::before {
  bottom: 1px;
  content: "";
  height: 15px;
  position: absolute;
  right: 0px;
  transform-origin: bottom;
  width: 2px;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: #231a50;
  border-radius: 1px;
}

.kmb-site-templates-page-content .arrow::after {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-right-style: solid;
  border-right-width: 2px;
  content: "";
  display: inline-block;
  height: 10px;
  left: 0px;
  position: absolute;
  top: 0;
  width: 10px;
}

.kmb-site-templates-page-content .arrow.is-left {
  -moz-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}

.kmb-site-templates-page-content .arrow.is-right {
  -moz-transform: rotate(315deg);
  -ms-transform: rotate(315deg);
  -webkit-transform: rotate(315deg);
  transform: rotate(315deg);
}

.kmb-site-arrow-bottom {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-left: 5px;
  margin-bottom: 2px;
  transform: rotate(45deg);
}

.kmb-site-arrow-bottom::after {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-right-style: solid;
  border-right-width: 2px;
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0px;
  width: 8px;
  height: 8px;
}

.kmb-site-templates-filter-group {
  display: flex;
  align-items: center;
}

.kmb-site-templates-filter-group > li {
  cursor: default;
  position: relative;
  display: inline-flex;
  margin-left: 40px;
}

.kmb-site-templates-filter-group > li:first-child {
  margin-left: 0;
}

.kmb-site-templates-filter-group a {
  text-transform: lowercase;
  display: inline-block;
}

.kmb-site-templates-filter-group a::first-letter {
  text-transform: uppercase;
}

.kmb-site-templates-filter-group-name {
  color: #fff;
}

@media (max-width: 1024px) {
  .kmb-site-templates-filter-group-name {
    color: #231a50;
  }
}

.kmb-site-templates-filter-group
  .kmb-site-templates-filter-group-item:hover
  .kmb-site-templates-filter-group-name,
.kmb-site-templates-filter-group
  .kmb-site-templates-filter-group-item.active
  .kmb-site-templates-filter-group-name {
  color: #00ffc3;
}

.kmb-site-templates-filter-group
  > li
  .kmb-site-templates-filter-group-li-inner {
  align-items: center;
  display: flex;
  height: 80px;
  white-space: nowrap;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.0015em;
}

.kmb-site-templates-filter-group > li > .kmb-site-templates-filter-industries {
  background-color: #fff;
  opacity: 0;
  position: absolute;
  top: 100%;
  visibility: hidden;
  z-index: 2;
  left: -10px;
  min-width: 300px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 10px 20px;
  box-shadow: 0px 0px 4px 0.5px #1824261f;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  writing-mode: horizontal-tb;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  scrollbar-width: thin;
  scrollbar-color: #6f41db #f0f0f0;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries::-webkit-scrollbar {
  width: 8px;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries::-webkit-scrollbar-thumb {
  background: #6f41db;
  border-radius: 4px;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries::-webkit-scrollbar-thumb:hover {
  background: #5832b5;
}

@media (min-width: 577px) {
  .kmb-site-templates-filter-group
    > li:hover
    > .kmb-site-templates-filter-industries {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 576px) {
  .kmb-site-templates-filter-group> li.active > .kmb-site-templates-filter-industries {
    opacity: 1;
    visibility: visible;
    padding: 14px;
    left: 10px;
    max-width: 90%;
    box-shadow: 2px 2px 4px 2px #1824261f;
  }
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  > li {
  margin-bottom: 24px;
  padding: 0;
  width: 100%;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  > li:last-child {
  margin-bottom: 0;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  > li
  .kmb-site-templates-filter-industry-name {
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.0015em;
  display: block;
  padding: 8px 0;
}

.kmb-site-templates-filter-industry-name:hover {
  color: #6f41db !important;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  .kmb-site-templates-filter-categories {
  padding-left: 16px;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  .kmb-site-templates-filter-categories
  > li {
  margin: 8px 0;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  .kmb-site-templates-filter-categories
  > li
  a {
  color: #231a50;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  text-decoration: none;
}

.kmb-site-templates-filter-group
  > li
  > .kmb-site-templates-filter-industries
  .kmb-site-templates-filter-categories
  > li
  a:hover {
  color: #6f41db;
}

.kmb-site-templates-section-content {
  background: #f6f5f8b2;
}

.kmb-site-templates-section-banner .kmb-autocomplete-search {
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-input-wrap {
  width: 100%;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-input {
  width: 100%;
  color: #918da8;
  background: #fff;
  outline: none !important;
  border: 1px solid transparent;
  font-family: Open-Sans-Regular;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-input::placeholder {
  color: #918da8;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search.inputing
  .kmb-autocomplete-search-input:focus,
.kmb-site-templates-section-banner
  .kmb-autocomplete-search.inputing:hover
  .kmb-autocomplete-search-input {
  border-radius: 25px 25px 0 0;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-btn
  svg
  * {
  fill: #918da8 !important;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-loading-icon
  div {
  border: 4px solid #000;
  border-color: #000 transparent transparent;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-result
  .kmb-autocomplete-search-result-list {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  padding: 10px 15px;
  color: var(--bs-body-color);
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search.inputing:hover
  .kmb-autocomplete-search-result
  .kmb-autocomplete-search-result-list {
  visibility: visible;
  opacity: 1;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-result
  .kmb-autocomplete-search-result-list
  > li {
  cursor: pointer;
}

.kmb-site-templates-section-banner
  .kmb-autocomplete-search
  .kmb-autocomplete-search-result
  .kmb-autocomplete-search-result-list
  > li
  a {
  color: var(--bs-body-color) !important;
}

.kmb-site-template-item .kmb-site-template-item-name {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.0015em;
}

.kmb-site-template-item-preview-group {
  position: relative;
  border-radius: 8px;
  box-shadow: 1px 2px 5px 0px #18242614;
}

.kmb-site-template-item-preview-group > .kmb-site-template-item-preview {
  border-radius: 8px;
  width: 416px;
  height: 467px;
  max-height: 467px;
  max-width: 100%;
  overflow: hidden;
}

.kmb-site-template-item-preview-group img {
  /* width: 100%; */
  width: 416px;
  height: 467px;
}

/* .kmb-site-template-item-preview-group > .kmb-site-template-item-preview,
.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-hover {
  height: 100%;
} */

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-hover {
  padding: 25px;
  align-items: center;
  background: hsla(0, 0%, 100%, 0.7);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  opacity: 0;
  border-radius: 8px;
  pointer-events: none;
  transition: opacity 0.05s linear;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview:hover
  .kmb-site-template-item-inner-hover {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.1s ease-out;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-btn-group {
  display: flex;
  flex-direction: column;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-btn-group
  > a {
  padding: 8px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 16px;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-btn-group
  > .kmb-site-template-item-edit-btn {
  background: #231a50;
  color: #fff;
  border: 1px solid #231a50;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-btn-group
  > .kmb-site-template-item-edit-btn:hover {
  background: #6f41db;
  color: #fff;
  border: 1px solid #918da8;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-btn-group
  > .kmb-site-template-item-view-btn {
  background: #fff;
  color: #231a50;
  border: 1px solid #918da8;
}

.kmb-site-template-item-preview-group
  > .kmb-site-template-item-preview
  .kmb-site-template-item-inner-btn-group
  > .kmb-site-template-item-view-btn:hover {
  background: #6f41db;
  color: #fff;
  border: 1px solid #918da8;
}

.kmb-site-template-view-back-btn {
  font-family: "Open Sans", sans-serif;
  color: #110b2f;
  text-decoration: none;
  font-size: 16px;
}

.kmb-site-template-view-back-btn:hover {
  color: #6f41db;
}

.kmb-site-template-view-back-btn i {
  margin-right: 4px;
}

.kmb-site-arrow-left {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-left: 5px;
  margin-bottom: 2px;
  transform: rotate(136deg);
}

.kmb-site-arrow-left::after {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-right-style: solid;
  border-right-width: 2px;
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0px;
  width: 8px;
  height: 8px;
}

.kmb-site-templates-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.kmb-site-templates-pagination > li {
  margin-left: 7px;
  margin-right: 7px;
}

.kmb-site-templates-pagination > li > * {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #231a50;
  font-size: 14px;
}

.kmb-site-templates-pagination > li > span.current-page {
  background: #cbacff;
}

.kmb-site-templates-pagination > li.kmb-site-templates-pagination-previous {
  margin-right: 20px;
}

.kmb-site-templates-pagination > li.kmb-site-templates-pagination-next {
  margin-left: 20px;
}

.kmb-site-templates-pagination > li.kmb-site-templates-pagination-previous > *,
.kmb-site-templates-pagination > li.kmb-site-templates-pagination-next > * {
  background: #fff;
  border: 1px solid #bdbaca;
  font-size: 35px;
}

.kmb-site-templates-pagination
  > li.kmb-site-templates-pagination-previous
  > span,
.kmb-site-templates-pagination > li.kmb-site-templates-pagination-next > span {
  color: #bdbaca;
}

.kmb-site-templates-pagination
  > li.kmb-site-templates-pagination-previous
  > span
  .arrow.arrow-bar::before,
.kmb-site-templates-pagination
  > li.kmb-site-templates-pagination-next
  > span
  .arrow.arrow-bar::before {
  background-color: #bdbaca;
}

.kmb-site-templates-related-categories-container
  .kmb-site-templates-related-categories-title {
  font-family: Vary-Bold, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 800;
  margin-bottom: 25px;
}

.kmb-site-templates-related-categories-container
  .kmb-site-templates-related-categories {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kmb-site-templates-related-categories-container
  .kmb-site-templates-related-categories
  > li {
  margin-right: 15px;
  margin-bottom: 15px;
}

.kmb-site-templates-related-categories-container
  .kmb-site-templates-related-categories
  > li
  > a,
.kmb-site-templates-related-categories-container
  .kmb-site-templates-related-categories
  > li
  > span {
  color: #231a50;
  cursor: pointer;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 40px;
  display: inline-block;
  border: 1px solid #bdbaca;
}

@media (max-width: 576px) {
  .kmb-site-templates-filter {
    position: relative;
    z-index: 999;
    padding-bottom: 24px;
  }

  .kmb-site-templates-filter-nav {
    position: relative;
  }

  .kmb-site-templates-filter-nav::before {
    content: "Filter Templates";
    display: block;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #bdbaca;
    border-radius: 20px;
    cursor: pointer;
    color: #231a50;
  }

  .kmb-site-templates-filter-nav::after {
    content: "";
    border: solid #231a50;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    position: absolute;
    right: 20px;
    top: 18px;
    transition: transform 0.3s ease;
  }

  .kmb-site-templates-filter-nav.active::after {
    transform: rotate(-135deg);
    top: 20px;
  }

  .kmb-site-templates-filter-group {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    padding: 8px 0;
    flex-direction: column;
  }

  .kmb-site-templates-filter-nav.active .kmb-site-templates-filter-group {
    display: flex;
  }

  .kmb-site-templates-filter-group > li {
    margin: 0;
    width: 100%;
  }

  .kmb-site-templates-filter-group-li-inner {
    padding: 12px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border: none;
    border-radius: 0;
    color: #231a50;
    cursor: pointer;
  }

  .kmb-site-templates-filter-group-li-inner:hover {
    background: #f5f5f5;
  }

  .kmb-site-templates-filter-group-li-inner .kmb-site-templates-filter-arrow {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }

  .kmb-site-templates-filter-group-item.active
    .kmb-site-templates-filter-arrow {
    transform: rotate(-135deg);
  }

  .kmb-site-templates-filter-industries {
    display: none;
    background: #f5f5f5;
  }

  .kmb-site-templates-filter-group-item.active
    .kmb-site-templates-filter-industries {
    display: block;
  }

  .kmb-site-templates-filter-industry-item {
    padding: 8px 20px 8px 40px;
  }

  .kmb-site-templates-filter-industry-item:hover {
    background: #eaeaea;
  }

  .kmb-site-templates-filter-industry-name {
    color: #231a50;
    display: block;
    padding: 8px 0;
  }

  .kmb-site-templates-filter-categories {
    padding-left: 20px;
    background: #eaeaea;
  }

  .kmb-site-templates-filter-category-item a {
    color: #231a50;
    display: block;
    padding: 8px 20px;
  }

  .kmb-site-templates-filter-category-item a:hover {
    background: #dedede;
  }

  /* Mobile-specific template preview styles */
  .kmb-site-template-item-preview-group
    > .kmb-site-template-item-preview
    .kmb-site-template-item-inner-hover {
    opacity: 0;
    pointer-events: auto; /* Enable touch events */
    transition: opacity 0.2s ease-out;
  }

  /* Show buttons on tap */
  .kmb-site-template-item-preview-group
    > .kmb-site-template-item-preview.active
    .kmb-site-template-item-inner-hover {
    opacity: 1;
  }

  /* Adjust button sizes for better touch targets */
  .kmb-site-template-item-preview-group
    > .kmb-site-template-item-preview
    .kmb-site-template-item-inner-btn-group
    > a {
    padding: 12px 24px;
    min-width: 120px;
    margin: 5px 0;
  }
}
