/**
 * Frontend styles
 *
 * CSS for both Frontend+Backend.
 */

 /* Fix for when used inside Section block. */
 @media screen and (min-width: 1024px) {
   .responsive-block-editor-addons-block-section {
     .responsive-testimonial-slick-carousel.slick-initialized {
       width: 85%;
       margin: 0 auto;
     }
   }

   .page.page-template-gutenberg-fullwidth .alignfull.responsive-block-editor-addons-block-section-outer-wrap,
   .page.sidebar-position-no:not(.woocommerce) .alignfull.responsive-block-editor-addons-block-section-outer-wrap,
   .page.page-template-gutenberg-fullwidth .alignfull.responsive-block-editor-addons-block-section-outer-wrap .alignfull,
   .page.page-template-gutenberg-fullwidth .alignfull.responsive-block-editor-addons-block-section-outer-wrap .alignwide {
     .responsive-block-editor-addons-block-section {
       .responsive-testimonial-slick-carousel.slick-initialized {
         width: 100%;
       }
     }
   }
 }

.responsive-block-editor-addons-testimonial__wrap {
  position: relative;
  box-sizing: border-box;
}
.responsive-block-editor-addons-testimonial__wrap,
.responsive-block-editor-addons-testimonial__wrap * {
  transition: all 0.2s;
}
.responsive-block-editor-addons-icon-wrap .responsive-block-editor-addons-icon {
  display: inline-block;
}
.responsive-block-editor-addons-tm__image {
  position: relative;
}
.responsive-block-editor-addons-tm__imgicon-style-circle
  .responsive-block-editor-addons-tm__image
  img {
  border-radius: 100%;
}
.responsive-block-editor-addons-tm__imgicon-style-square
  .responsive-block-editor-addons-tm__image
  img {
  border-radius: 0%;
}
.responsive-block-editor-addons-tm__image img,
.slick-slide .responsive-block-editor-addons-tm__image img {
  display: inline-block;
  box-sizing: content-box;
}
.responsive-block-editor-addons-tm__author-name,
.responsive-block-editor-addons-tm__company {
  display: inline-block;
}

.responsive-block-editor-addons-tm__content {
  overflow: hidden;
  text-align: center;
  word-break: break-word;
  padding: 15px;
  border-radius: inherit;
  position: relative;
}
.responsive-block-editor-addons-tm__image-position-left
  .responsive-block-editor-addons-tm__content,
.responsive-block-editor-addons-tm__image-position-right
  .responsive-block-editor-addons-tm__content {
  display: flex;
}
.responsive-block-editor-addons-tm__meta-inner {
  display: inline-block;
}
.responsive-block-editor-addons-tm__image-position-bottom
  .responsive-block-editor-addons-tm__image-content,
.responsive-block-editor-addons-tm__image-position-bottom
  .responsive-block-editor-addons-testimonial-details {
  display: table-cell;
  vertical-align: middle;
}
.responsive-block-editor-addons-tm__meta {
  width: 100%;
  line-height: 1;
}
.responsive-block-editor-addons-tm__image-position-bottom
  .responsive-block-editor-addons-tm__image-content {
  padding-right: 10px;
}
.responsive-block-editor-addons-tm__author-name,
.responsive-block-editor-addons-tm__company {
  display: block;
}

.responsive-block-editor-addons-tm__image-aligned-middle
  .responsive-block-editor-addons-tm__image-content {
  align-self: center;
}
.responsive-block-editor-addons-tm__desc {
  margin-bottom: 15px;
}
.responsive-block-editor-addons-tm__author-name {
  margin-bottom: 5px;
  font-size: 30px;
  line-height: 1em;
}
.responsive-block-editor-addons-tm__company {
  font-size: 15px;
  line-height: 1em;
  color: #888888;
}

.is-carousel .responsive-block-editor-addons-testomonial__outer-wrap {
  padding-left: 10px;
  padding-right: 10px;
}

.responsive-block-editor-addons-tm__overlay {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: transparent;
}

.responsive-block-editor-addons-tm__text-wrap {
  position: relative;
}
.responsive-block-editor-addons-tm__items {
  visibility: hidden;
}
.responsive-block-editor-addons-tm__items.slick-initialized {
  visibility: visible;
}
.responsive-block-editor-addons-tm__image-position-top
  .responsive-block-editor-addons-tm__image-content {
  display: flex;
  justify-content: center;
}
/* Slick CSS */
.responsive-block-editor-addons-slick-carousel {
  &.responsive-block-editor-addons-tm__arrow-outside .slick-next {
    right: -45px;
  }

  &.responsive-block-editor-addons-tm__arrow-inside {
    .slick-prev {
      left: 25px;
      z-index: 1;
    }

    .slick-next {
      right: 25px;
    }
  }
}

[dir="rtl"] {
  .responsive-block-editor-addons-tm__arrow-inside {
    &.responsive-block-editor-addons-slick-carousel {
      .slick-prev {
        left: auto;
        right: 25px;
      }

      .slick-next {
        left: 25px;
        right: auto;
      }
    }
  }
  .responsive-block-editor-addons-tm__arrow-outside {
    &.responsive-block-editor-addons-slick-carousel {
      .slick-next {
        left: -45px;
        right: auto;
      }
    }
  }
}
@media (max-width: 976px) {
  .responsive-block-editor-addons-tm-stacked-tablet {
    &.responsive-block-editor-addons-tm__image-position-bottom {
      .responsive-block-editor-addons-tm__image-content,
      .responsive-block-editor-addons-testimonial-details {
        display: block;
        vertical-align: middle;
      }
    }
    &.responsive-block-editor-addons-tm__image-position-left,
    &.responsive-block-editor-addons-tm__image-position-right {
      .responsive-block-editor-addons-tm__content {
        display: block;
      }
    }
    &.responsive-block-editor-addons-tm__image-position-right {
      &.responsive-block-editor-addons-tm-reverse-order-tablet
        .responsive-block-editor-addons-tm__content {
        display: inline-flex;
        flex-direction: column-reverse;
      }
    }
    &.responsive-block-editor-addons-tm__image-aligned-top {
      .responsive-block-editor-addons-tm__image-content {
        display: inline-flex;
        align-self: center;
      }
    }
  }

  .responsive-block-editor-addons-slick-carousel {
    &.responsive-block-editor-addons-tm__arrow-outside {
      .slick-prev {
        left: 15px;
        z-index: 1;
      }
      .slick-next {
        right: 15px;
      }
    }
  }

  [dir="rtl"] {
    .responsive-block-editor-addons-slick-carousel {
      &.responsive-block-editor-addons-tm__arrow-outside {
        .slick-prev {
          left: auto;
          right: 15px;
        }
        .slick-next {
          left: 15px;
          right: auto;
        }
      }
    }
  }
}

@media (max-width: 767px) {
  .responsive-block-editor-addons-tm-stacked-mobile {
    &.responsive-block-editor-addons-tm__image-position-bottom {
      .responsive-block-editor-addons-tm__image-content,
      .responsive-block-editor-addons-testimonial-details {
        display: block;
        vertical-align: middle;
      }
    }
    &.responsive-block-editor-addons-tm__image-position-left,
    &.responsive-block-editor-addons-tm__image-position-right {
      .responsive-block-editor-addons-tm__content {
        display: block;
      }
    }
    &.responsive-block-editor-addons-tm__image-position-right {
      &.responsive-block-editor-addons-tm-reverse-order-mobile
        .responsive-block-editor-addons-tm__content {
        display: inline-flex;
        flex-direction: column-reverse;
      }
    }
    &.responsive-block-editor-addons-tm__image-aligned-top {
      .responsive-block-editor-addons-tm__image-content {
        display: inline-flex;
        align-self: center;
      }
    }
  }

  .responsive-testimonial-slick-carousel .slick-arrow {
    display: none !important;
  }
}
.responsive-block-editor-addons-tm__content.skin-type-bubble
  .responsive-block-editor-addons-tm__desc {
  padding: 10px;
}
.responsive-block-editor-addons-tm__content.skin-type-bubble
  .responsive-block-editor-addons-testinomial-text-wrap {
  position: relative;
  background-color: #e4e4e4;
}

.responsive-block-editor-addons-tm__content.skin-type-bubble
  .responsive-block-editor-addons-testinomial-text-wrap:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #e4e4e4;
  border-bottom: 10px solid transparent;
  right: 50%;
  bottom: -20px;
}
.responsive-block-editor-addons-tm__content.skin-type-bubble.left-aligned
  .responsive-block-editor-addons-testinomial-text-wrap:before {
  left: 30px;
}
.responsive-block-editor-addons-tm__content.skin-type-bubble.right-aligned
  .responsive-block-editor-addons-testinomial-text-wrap:before {
  right: 30px;
}
.responsive-block-editor-addons-tm__content.skin-type-bubble.center-aligned
  .responsive-block-editor-addons-testinomial-text-wrap:before {
  right: 49%;
}
.responsive-testimonial-slick-carousel .slick-arrow {
  background: transparent;
}

.responsive-block-editor-addons-testomonial__outer-wrap .slick-track {
  max-width: initial !important;
}

.responsive-block-editor-addons-slick-carousel ul.slick-dots {
  position: relative;
  transform: unset;
}

.components-base-control__field {

  p {
    font-family: Roboto;
    font-size: 13px;
    font-weight: 400;
    line-height: 16.41px;
    text-align: left;
    color: #666666;
  }

  .responsive-block-editor-addons-alignment, 
  .responsive-block-editor-addons-alignment-tablet,
  .responsive-block-editor-addons-alignment-mobile  {
    max-height: 32px;
    height: 100%;
    margin-top: 8px;

    .components-toolbar {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      justify-items: center;
      min-height: 32px;
      max-height: 32px;
      height: 100%;
      border: 1px solid #C9C8C8;
      border-radius: 4px;
    
      > div {
        width: 100%;
        max-height: 32px;
        height: 100%;

        // First child styling
        &:first-child {
          border-right: 1px solid #C9C8C8;
        }
      
        // Last child styling
        &:last-child {
          border-left: 1px solid #C9C8C8;
        }
      
        .components-toolbar__control {
          width: 100%;
          max-height: 32px;
          height: 100%;
          &::before {
            width: 100%;
            left: 0px;
            right: 0px;
          }
        }
      
        .components-toolbar__control.is-pressed {
          &::before {
            background: #007CBA;
            width: 100%;
            left: 0px;
            right: 0px;
            max-height: 32px;
            height: 100%;
          }
        }
      }
    }
  }

}

.rbea-repeat-selector-wrapper-five-grid {
  .rbea-tab-radio-control-wrapper {
    .rbea-tab-radio-options{
      display: flex;
      gap: 0;
      box-shadow: inset 0 0 0 0.5px #C9C8C8;
      border-radius: 6px; 
      overflow: hidden;
      box-sizing: border-box;
    
      .rbea-tab-radio-option  {
        font-family: Roboto;
        color: #666;
        font-size: 12px;
        font-weight: 400;
        line-height: 16.41px;
        text-align: center;
        padding: 8px;
        display: block;
        flex: 1;
        height: 32px;
        border: unset;
        border-radius: 0;
        cursor: pointer;
        box-shadow: inset 0 0 0 0.5px #C9C8C8;
      }
    
      .rbea-tab-radio-option:first-child {
        border-radius: 6px 0px 0px 0px;
      }
      .rbea-tab-radio-option:last-child {
        border-radius: 0px 0px 6px 0px;
      }
      .rbea-tab-radio-option.is-active {
        background-color: #007CBA;
        color: white;
        box-shadow: inset 0 0 0 0.5px #007CBA;
        border-color: #007CBA;
      }
    }
  }
}