.sp-smart-brands-wrapper {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

.sp-smart-brands-wrapper * {
  box-sizing: border-box;
}

.sp-smart-brands-wrapper .sp-smart-brands-section {
  box-sizing: border-box;
}

.sp-smart-brands-wrapper[data-layout_preset="inline_layout"] {
  overflow: unset;
}

.sp-smart-brands-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.sp-smart-brands-row [class*="sp-smart-brands-col-"] {
  /* position: relative; */
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 20px;
  padding-top: 0;
}

/* Carousel */
.sp-smart-brands-swiper-wrapper {
  position: relative;
}

.sp-smart-brands-wrapper .sp-smart-brands-carousel .swiper-wrapper {
  align-items: center;
}

.sp-smart-brands-wrapper .sp-smart-brands-carousel .sp-smart-brands-thumb-wrapper,
.sp-smart-brands-wrapper .sp-smart-brands-grid:not(.sp-smart-brands-list) .sp-smart-brands-thumb-wrapper {
  text-align: center;
  line-height: 0;
}

.sp-smart-brands-wrapper .sp-smart-brands-list .sp-smart-brands-thumb-wrapper.text-center {
  text-align: initial;
}

.sp-smart-brands-wrapper .sp-smart-brands-thumb-wrapper a {
  display: inline-block;
}

.sp-smart-brands-wrapper .sp-smart-brands-thumb-wrapper img {
  max-width: 100%;
  height: auto;
}

/* 
* Navigation & pagination style.
*/
.sp-smart-brands-carousel .sp-brand-button-next,
.sp-smart-brands-carousel .sp-brand-button-prev {
  right: 1px;
  color: #aaa;
  border: 1px solid;
  border-color: #aaa;
  border-radius: 0;
  overflow: hidden;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  position: absolute;
  z-index: 22;
  left: auto;
  top: 18px;
  font-size: 20px;
  transition: ease all .3s;
  margin-top: -15px;
  cursor: pointer;
  padding: 0;
  background-image: none;
}

.sp-smart-brands-carousel .sp-brand-button-prev {
  margin-right: 38px;
}

div.sp-smart-brands-carousel.sp_brands_nav-top_right .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-top_right .swiper-button-next,
div.sp-smart-brands-carousel.sp_brands_nav-top_center .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-top_center .swiper-button-next,
div.sp-smart-brands-carousel.sp_brands_nav-top_left .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-top_left .swiper-button-next {
  top: -44px;
}

div.sp-smart-brands-carousel.sp_brands_nav-top_center .swiper-button-prev {
  left: 50%;
  margin-left: -36px;
}

div.sp-smart-brands-carousel.sp_brands_nav-top_center .swiper-button-next {
  left: 50%;
  margin-left: 5px;
}

div.sp-smart-brands-carousel.sp_brands_nav-top_left .swiper-button-prev {
  left: 0;
}

div.sp-smart-brands-carousel.sp_brands_nav-top_left .swiper-button-next {
  left: 0;
  margin-left: 38px;
}

/* Bottom position */
div.sp-smart-brands-carousel.sp_brands_nav-bottom_left .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_left .swiper-button-next,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-button-next,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_right .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_right .swiper-button-next {
  left: 0;
  top: auto;
  bottom: -44px;
}

div.sp-smart-brands-carousel.sp_brands_nav-bottom_right .swiper-button-prev,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_right .swiper-button-next {
  right: 0;
  left: auto;
}

/* Bottom left */
div.sp-smart-brands-carousel.sp_brands_nav-bottom_left .swiper-button-prev {
  left: 0;
}

div.sp-smart-brands-carousel.sp_brands_nav-bottom_left .swiper-button-next {
  left: 0;
  margin-left: 38px;
}

/* Bottom Center */
div.sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-button-prev {
  left: 50%;
  margin-left: -36px;
  bottom: 25px;
}

div.sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-button-next {
  left: 50%;
  margin-left: 5px;
  bottom: 25px;
}

div.sp-smart-brands-carousel .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -42px;
}

div.sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-pagination-bullets,
div.sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -5px;
}

.sp-smart-brands-wrapper .sp-smart-brands-carousel.sp_brands_nav-bottom_center .swiper-wrapper {
  padding-bottom: 65px;
}


/* Bottom Right */
.sp_brands_nav-bottom_right.sp-smart-brands-carousel .swiper-button-next,
.sp_brands_nav-bottom_right.sp-smart-brands-carousel .swiper-button-prev {
  right: 0;
  left: auto;
}

/* Vertical Inner, Vertical Outer & Vertically Center */
.sp-smart-brands-carousel-wrapper .sp-smart-brands-carousel.sp_brands_nav-vertical_center,
.sp-smart-brands-carousel-wrapper .sp-smart-brands-carousel.sp_brands_nav-vertical_outer {
  margin: 0 45px;
  position: static;
  overflow: hidden;
}

.sp-smart-brands-carousel-wrapper .sp-smart-brands-carousel.sp_brands_nav-vertical_center {
  margin: 0 15px;
}

.sp_brands_nav-vertical_center.sp-smart-brands-carousel .swiper-button-next,
.sp_brands_nav-vertical_center.sp-smart-brands-carousel .swiper-button-prev,
.sp_brands_nav-vertical_outer.sp-smart-brands-carousel .swiper-button-next,
.sp_brands_nav-vertical_outer.sp-smart-brands-carousel .swiper-button-prev,
.sp_brands_nav-vertical_center_inner.sp-smart-brands-carousel .swiper-button-next,
.sp_brands_nav-vertical_center_inner.sp-smart-brands-carousel .swiper-button-prev {
  right: 0;
  left: auto;
  top: 50%;
  z-index: 99;
  margin-top: 0;
  position: absolute;
  transform: translateY(-50%);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.sp_brands_nav-vertical_center.sp-smart-brands-carousel .swiper-button-prev,
.sp_brands_nav-vertical_outer.sp-smart-brands-carousel .swiper-button-prev,
.sp_brands_nav-vertical_center_inner.sp-smart-brands-carousel .swiper-button-prev {
  left: 0;
}

/* Vertical On Hover */
.sp-smart-brands-carousel-wrapper .sp-smart-brands-carousel.nav-visible-on-hover .swiper-button-prev {
  left: -35px;
  opacity: 0;
}

.sp-smart-brands-carousel-wrapper .sp-smart-brands-carousel.nav-visible-on-hover .swiper-button-next {
  right: -35px;
  opacity: 0;
}

.sp-smart-brands-carousel-wrapper:hover .sp-smart-brands-carousel.nav-visible-on-hover .swiper-button-next {
  right: 0;
  opacity: 1;
}

.sp-smart-brands-carousel-wrapper:hover .sp-smart-brands-carousel.nav-visible-on-hover .swiper-button-prev {
  left: 0;
  opacity: 1;
}

.sp-smart-brands-carousel .sp-brand-button-prev:after,
.sp-smart-brands-carousel .sp-brand-button-next:after {
  display: none;
}

.sp-smart-brands-carousel .sp-brand-button-next i,
.sp-smart-brands-carousel .sp-brand-button-prev i {
  font-size: 11px;
  font-weight: 800;
  color: #958a8a;
}

.sp-smart-brands-wrapper .sp-smart-brands-carousel .sp-brand-button-next:hover,
.sp-smart-brands-wrapper .sp-smart-brands-carousel .sp-brand-button-prev:hover {
  background-color: #0f68a9;
  border-color: #0f68a9;
}

div.sp-smart-brands-carousel.sp_brands_nav-top_right,
div.sp-smart-brands-carousel.sp_brands_nav-top_right,
div.sp-smart-brands-carousel.sp_brands_nav-top_center,
div.sp-smart-brands-carousel.sp_brands_nav-top_center,
div.sp-smart-brands-carousel.sp_brands_nav-top_left,
div.sp-smart-brands-carousel.sp_brands_nav-top_left {
  margin-top: 60px;
}

.sp-brand-pagination .swiper-pagination-bullet {
  height: 11px;
  width: 11px;
  opacity: 1;
}

.sp-smart-brands-row:has(.sp-smart-brands-not-found) {
  justify-content: center;
}

.sp-smart-brands-not-found {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  margin: 20px 0;
  width: 100%;
  text-align: center;
}

/* Ajax load function pagination hide. */
.sp-smart-brands-row .sp-brand-ajax-pagination-wrapper {
  display: none;
}

/* Name & Description style. */
.sp-smart-brands-content-wrapper .sp-smart-brands-name.text-center a,
.sp-smart-brands-wrapper .sp-smart-brands-name.text-center a {
  text-decoration: none !important;
}

.sp-smart-brands-wrapper .sp-smart-brands-name {
  padding-top: 10px;
  padding-bottom: 10px;
}

.sp-smart-brands-wrapper .sp-smart-brands-name .sp-brand-name {
  color: #2f2f2f;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 0px;
  text-transform: none;
}

.sp-smart-brands-wrapper .sp-smart-brands-description.text-center {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  text-transform: none;
  text-align: center;
  letter-spacing: 0px;
  color: #555;
}

.sp-smart-brands-wrapper .sp-smart-brands-details-wrapper .sp-smart-brands-name-count,
.sp-smart-brands-wrapper .sp-smart-brands-details-wrapper-list .sp-smart-brands-name-count {
  margin: 0 10px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-smart-brands-wrapper .sp-smart-brands-details-wrapper .sp-smart-brands-name-count>span,
.sp-smart-brands-wrapper .sp-smart-brands-details-wrapper-list .sp-smart-brands-name-count>span {
  margin-left: 5px;
}

/* List Layout Style. */
.sp-smart-brands-wrapper .sp-smart-brands-list .sp-brand-term-row {
  display: flex;
  width: 100%;
  justify-content: center;
}

.sp-smart-brands-list .sp-smart-brands-row .smart-brand-term {
  width: 100%;
}

.sp-smart-brands-wrapper .sp-smart-brands-list .sp-brand-term-image {
  flex: 0 0 40%;
}

.sp-smart-brands-wrapper .sp-smart-brands-list .sp-smart-brands-details-wrapper-list {
  flex: 0 0 60%;
  padding-left: 15px;
}

.sp-smart-brands-list .sp-brand-term-row {
  margin-bottom: 23px;
}

.sp-smart-brands-wrapper .sp-smart-brands-details-wrapper-list .sp-smart-brands-name {
  padding-top: 0;
}

.sp-smart-brands-wrapper .sp-smart-brands-details-wrapper-list .sp-smart-brands-name-count>span {
  padding-bottom: 10px;
}

/* Brand single Page Style. */
.sp-smart-brands-single-product img {
  padding-top: 10px;
}

.sp-smart-brands-name.text-center {
  display: inline-block;
}

.sp-smart-brands-single-product>span {
  margin-right: 5px;
}

.sp-smart-brands-single-product .sp-smart-brands-content-wrapper {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-right: 10px;
}

.sp-smart-brands-single-product.only_name .sp-smart-brands-content-wrapper {
  margin-right: 5px;
}

.sp-smart-brands-archive-page.only_logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.sp-smart-multiple-brands:not(.sp-smart-brands-archive-page) span {
  display: block;
}

.sp-smart-multiple-brands .sp-smart-brands-content-wrapper {
  margin-top: 10px;
}


/* preloader image */
.sp-smart-brands-section-preloader {
  background-color: #fff;
  background-image: url(../img/preloader.gif);
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  z-index: 9999;
  width: 100%;
  height: 100%;
  visibility: visible;
}

/* Brand Section Title  */
.sp-smart-brands-wrapper .sp-smart-brands-section .sp-smart-brands-section-title {
  font-size: 24px;
}

#poststuff .sp-smart-brands-wrapper .sp-smart-brands-section .sp-smart-brands-section-title {
  font-size: 24px;
  margin: 0px 0px 30px 0px;
  color: #444444;
  line-height: 28px;
  letter-spacing: 0px;
  text-transform: none;
  padding: 0;
}

/* Brand archive page design */
.tax-sp_smart_brand .woocommerce-products-header__title.page-title {
  text-align: center;
}


.tax-sp_smart_brand .sp-smart-brands-description {
  text-align: center;
  margin: 10px auto;
}


.woocommerce ul.products li.product .sp-smart-brands-single-product img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.sp-smart-brands-single-product {
  margin-bottom: 10px;
}

/* Swiper slider grid */
.sp-smart-brands-carousel.swiper-grid-column>.swiper-wrapper {
  flex-direction: row;
}

.sp-smart-brands-carousel.swiper-grid-column .swiper-slide {
  margin-top: 0px !important;
  padding-bottom: 20px;
}

/* A-Z filter buttons */
.sp-smart-brands-az-filter-button.sp-smart-brands-filter {
  padding: 0;
  margin: 15px 0;
}

.sp-smart-brands-ajax-az-live-filter,
.sp-smart-brands-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.sp-smart-brands-ajax-live-filter button.button,
.sp-smart-brands-filter li {
  float: left;
  margin: 4px;
  list-style: none;
}

.sp-smart-brands-ajax-live-filter button,
.sp-smart-brands-filter li button {
  position: relative;
  padding: 8px 15px;
  font-weight: 600;
  border: none;
  background-color: #e2e2e2;
  color: #444444;
  border-radius: 2px;
  display: inline-block;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-bottom: none;
  cursor: pointer;
}

.sp-smart-brands-filter li button:focus {
  outline: none;
}

.sp-smart-brands-filter li button:hover,
.sp-smart-brands-ajax-live-filter button:hover,
.sp-smart-brands-filter li button.active {
  background-color: #16a08b;
  color: #ffffff;
  border-color: #16a08b;
}

.sp-smart-brands-ajax-live-filter-wrapper .sp-smart-brands-select .filterSelect {
  padding: 8px 30px 8px 15px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  cursor: pointer;
  min-width: 80px;
  background-position: 90% 50%;
  line-height: 1.2;
}

/* A-Z filter dropdown */
.sp-smart-brands-az-dropdown-filter .sp-smart-brands-az-select {
  padding: 0 15px;
  margin: 15px 0;
  max-width: 150px;
  width: 100%;
  height: 40px;
  background-position: 92% 50%;
}

/* Pagination styles. */
.sp-smart-brands-wrapper .sp-brand-infinite-scroll-loader {
  display: block;
  width: 100%;
  text-align: center;
}

.sp-smart-brands-wrapper .sp-brand-infinite-scroll-loader>img,
.sp-smart-brands-wrapper .sp-brand-infinite-scroll-loader svg {
  display: inline-block;
}

.sp-smart-brands-wrapper .sp-brand-load-more {
  text-align: center;
  padding-top: 30px;
  margin: 10px auto 50px !important;
}

.sp-smart-brands-wrapper .sp-brand-load-more button {
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  color: #5e5e5e;
  border: 2px solid #bbb;
  font-weight: 600;
  border-radius: 3px;
  background: #fff;
  padding: 10px 16px;
  -webkit-transition: all 0.33s;
  transition: all 0.33s;
  line-height: 1.2;
}

.sp-smart-brands-wrapper .sp-brand-load-more button:hover {
  color: #ffffff;
  background: #0F68A9;
  border-color: #0F68A9;
}

.sp-smart-brands-wrapper .sp-brand-load-more button:focus {
  outline: none;
  box-shadow: none;
}

/* gutenberg editor style */
.sp-smart-brands-gutenberg-shortcode.editor-styles-wrapper {
  width: 100%;
  padding: 0 0 10px;
}

.sp-smart-brands-gutenberg-shortcode.editor-styles-wrapper>select {
  max-width: 100%;
  padding: 2px 10px;
}

.sp-smart-brands-gutenberg-shortcode.editor-styles-wrapper:after {
  display: none;
}

/* Pagination Strokes style */
.sp-smart-brands-carousel-wrapper .sp-smart-brands-section .sp-brand-pagination.sp_brands-pagination-strokes .swiper-pagination-bullet {
  border-radius: 0;
  border-radius: 2px;
  height: 5px;
  width: 20px;
}

/** Pagination Scrollbar style */
.sp-smart-brands-carousel-wrapper .swiper-scrollbar.sp_brands-pagination-scrollbar {
  width: 50%;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  bottom: unset;
  cursor: -webkit-grab;
  cursor: grab;
}

.brands-carousel-fade-effect .swiper-sliding-effect {
  display: flex;
  width: 100%;
}

/* Ajax live filter button style on Flat-some Theme */
.theme-flatsome .sp-smart-brands-ajax-live-filter button.button,
.theme-flatsome .sp-smart-brands-filter li {
  margin-left: 0;
}

.theme-flatsome .sp-smart-brands-ajax-live-filter button.button>button,
.theme-flatsome .sp-smart-brands-filter li>button {
  margin-right: 0;
  line-height: 1em;
  margin-bottom: 0;
}

/* Pagination style in Avada Theme */
.theme-Avada .sp-smart-brands-carousel-wrapper .swiper-pagination-horizontal.swiper-pagination-bullets {
  display: block;
}

.theme-Avada .sp-smart-brands-carousel-wrapper .swiper-slide.smart-brand-term.fade {
  opacity: initial;
}

.rtl .sp-smart-brands-swiper-wrapper .bx-wrapper {
  direction: ltr;
}

.tax-product_brand .woocommerce-products-header .smart-brand-banner {
    order: 2;
}

.tax-product_brand .woocommerce-products-header .sp-smart-brands-description {
    order: 3;
}

.tax-product_brand .woocommerce-products-header .smart-brand-banner + .sp-smart-brands-description {
    margin-top: 15px;
}