@import "../../../../assets/css/lsow-lib";
$theme_color: #f94213;

@keyframes lsow-fade {
  0% {
    opacity: 0;
    }
  100% {
    opacity: 1;
    }
  }
/* ---------- General tab styles ---------- */

.lsow-tabs {
  position: relative;
  overflow: hidden;
  .lsow-tab-nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    .lsow-tab {
      text-align: center;
      @include flex(0 1 auto);
      a {
        display: block;
        text-overflow: ellipsis;
        white-space: normal;
        padding: 20px 40px;
        text-decoration: none;
        border: none;
        margin: 0;
        outline: none;
        transition: color 0.3s;
        @include respond-to-max(1024) {
          padding: 20px 25px;
          }
        }
      span.lsow-icon-wrapper span {
        font-size: 32px;
        font-weight: 400;
        vertical-align: middle;
        margin-right: 10px;
        }
      span.lsow-image-wrapper img {
        max-width: 24px;
        display: inline-block;
        vertical-align: middle;
        height: auto;
        width: auto;
        padding: 0;
        margin: 0 10px 0 0;
        border: none;
        }
      span.lsow-tab-title {
        font-size: 14px;
        line-height: 1;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        }
      }
    }
  .lsow-tab-panes {
    position: relative;
    .lsow-tab-pane {
      padding: 40px;
      display: none;
      overflow: hidden;
      &.lsow-active {
        display: block;
        animation: lsow-fade 0.3s ease-in-out;
        }
      }
    }
  }
/* ----- Fallback for IE 8/9 ----- */
.lsow-no-flexbox {
  .lsow-tab-nav {
    display: block;
    .lsow-tab {
      min-width: 15%;
      display: inline-block;
      }
    }
  }

/* ------------- Vertical tab styles ----------------- */

.lsow-tabs.lsow-vertical {
  display: flex;
  .lsow-tab-nav {
    @include flex (1 1 auto);
    @include flex-direction(column);
    justify-content: flex-start;
    }
  .lsow-tab-panes {
    @include flex (4 1 auto);
    }
  &.lsow-mobile-layout {
    @include flex-direction(column);
    }
  }
/* --------- Tab navigation in mobile ------------- */

.lsow-tab-mobile-menu {
  display: none; /* Hide on desktop */
  position: absolute;
  top: 23px;
  right: 20px;
  background: transparent;
  border: none;
  z-index: 10;
  i {
    font-size: 18px;
    color: #777;
    font-weight: bold;
    }
  }
.lsow-tabs.lsow-mobile-layout {
  .lsow-tab-mobile-menu {
    display: block; /* Show on mobile only */
    }
  .lsow-tab-nav {
    @include flex-direction(column);
    cursor: pointer;
    .lsow-tab {
      text-align: center;
      display: none;
      &.lsow-active {
        display: block;
        }
      }
    }
  &.lsow-mobile-open {
    /* Open all tab navs and change the expand menu button to close button */
    .lsow-tab-nav {
      .lsow-tab {
        display: block;
        }
    }
    .lsow-tab-mobile-menu {
      i:before {
        content: '\e911';
        }
      }
    }
  }
/* ------------- Style 1 ----------------- */

.lsow-tabs.style1 {

  .lsow-tab-nav {
    .lsow-tab {
      border-left: 1px solid #d9d9d9;
      border-bottom: 1px solid #e2e2e2;
      background: #e9e9e9;
      &:first-child {
        border-left-color: transparent;
        border-radius: 5px 0 0 0;
        }
      &:last-child {
        border-radius: 0 5px 0 0;
        }
      &.lsow-active {
        border-bottom: none;
        background: #f2f2f2;
        }
      a {
        color: #777;
        &:hover, &:focus {
          color: #333;
          }
        }
      &.lsow-active a {
        color: #333;
        }
      }
    }
  .lsow-tab-panes {
    background: #f2f2f2;
    border-radius: 0 4px 4px 4px;
    }
  }


.lsow-tabs.style1.lsow-mobile-layout {
  &:not(.lsow-mobile-open) {
      .lsow-tab.lsow-active {
        background: #eeeeee;
      }
    }
  .lsow-tab {
    border-left: none;
    border-bottom-color: #d9d9d9;
    &:first-child {
      border-radius: 5px 5px 0 0;
      }
    &:last-child {
      border-radius: 0;
      }
  }
  .lsow-tab-panes {
    border-radius: 0;
  }
}

/* -------- Style 2 ----------- */

.lsow-tabs.style2 {
  .lsow-tab-nav {
    background: #f2f2f2;
    border-radius: 5px 5px 0 0;
    padding: 0 30px;
    .lsow-tab {
      padding: 20px 10px;
      position: relative;
      a {
        display: inline-block;
        padding: 5px 20px;
        border-radius: 34px;
        color: #666;
        transition: all 0.3s;
        &:hover, &:focus {
          color: #888;
          }
        }
      &.lsow-active:after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 8px;
        margin: 0 auto;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #3c3d41;
        }
      &.lsow-active a {
        background: #838d8f;
        color: #fff;
        }
      }
    }
  .lsow-tab-panes {
    background: #3c3d41;
    border-radius: 0 0 5px 5px;
    .lsow-tab-pane {
      color: #838d8f;
      h1, h2, h3, h4, h5, h6 {
        color: #fff;
        }
      }
    }
  }
.lsow-tabs.style2.lsow-mobile-layout {
  .lsow-tab-mobile-menu {
    top: 27px;
  }
  .lsow-tab-nav {
    padding: 0;
  }
  &.lsow-mobile-open {
    .lsow-tab {
      border-bottom: 1px solid #e2e2e2;
      &:last-child {
        border-bottom: none;
      }
    }
    .lsow-tab.lsow-active:after {
      display: none;
    }
  }
}
.lsow-dark-bg .lsow-tabs.style2 {
  .lsow-tab-nav {
    .lsow-tab {
      a {
        color: #333;
        &:hover, &:focus {
          color: #666;
          }
        }
      &.lsow-active a {
        background: #aaa;
        color: #fff;
        }
      &.lsow-active:after {
        border-bottom: 8px solid #e7e7e7;
        }
      }
    }
  .lsow-tab-panes {
    background: #e7e7e7;
    .lsow-tab-pane {
      color: #666;
      h1, h2, h3, h4, h5, h6 {
        color: #333;
        }
      }
    }
  }
/* -------- Style 3 ----------- */

.lsow-tabs.style3 {
  .lsow-tab-nav {
    background: #3c3d41;
    border-radius: 5px 5px 0 0;
    .lsow-tab {
      position: relative;
      border-right: 1px solid #4e4f53;
      a {
        padding: 20px 30px;
        border-radius: 34px;
        color: #8f8e93;
        transition: all 0.3s;
        &:hover, &:focus {
          color: #ccc;
          }
        }
      &.lsow-active:after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 8px;
        margin: 0 auto;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #f2f2f2;
        }
      span.lsow-icon-wrapper span, span.lsow-image-wrapper img {
        margin: 0 auto;
        }
      span.lsow-tab-title {
        display: none;
        }
      &.lsow-active a {
        color: #eeeeee;
        }
      }
    }
  .lsow-tab-panes {
    background: #f2f2f2;
    border-radius: 0 0 5px 5px;
    }
  }
.lsow-tabs.style3.lsow-mobile-layout {
  .lsow-tab-nav {
     @include flex-direction(row);
     padding-right: 60px;
  }
  &.lsow-mobile-open {
    .lsow-tab {
      border-bottom: 1px solid #4e4f53;
      .lsow-dark-bg & {
        border-bottom-color: #e5e5e5;
      }
      &.lsow-active:after {
        display: none;
      }
    }
  }
}
.lsow-dark-bg .lsow-tabs.style3 {
  .lsow-tab-nav {
    background: #fff;
    .lsow-tab {
      border-right: 1px solid #ececec;
      a {
        color: #969696;
        &:hover, &:focus {
          color: #666;
          }
        }
      &.lsow-active a {
        color: #333;
        }
      &.lsow-active:after {
        border-bottom: 8px solid #e7e7e7;
        }
      }
    }
  .lsow-tab-panes {
    background: #e7e7e7;
    .lsow-tab-pane {
      color: #666;
      h1, h2, h3, h4, h5, h6 {
        color: #333;
        }
      }
    }
  }
/* ----------- Style 4 --------------- */

.lsow-tabs.style4 {
  background: #f2f2f2;
  border-radius: 5px;
  .lsow-tab-nav {
    border-bottom: 1px solid #dddddd;
    margin: 0 40px;
    .lsow-tab {
      position: relative;
      z-index: 1;
      margin-right: 20px;
      &:last-child {
        margin-right: 0;
        }
      a {
        color: #888;
        padding: 30px 20px;
        }
      &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: transparent;
        transition: background 0.3s;
        }
      &:hover a {
        color: #565656;
        }
      &.lsow-active {
        a {
          color: #333;
          }
        &:before {
          background: $theme_color;
          height: 2px;
          }
        }
      }
    }
  .lsow-tab-pane {
    padding: 40px;
    }
  }


.lsow-tabs.style4.lsow-mobile-layout {
  .lsow-tab-nav {
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
    .lsow-tab {
      margin: 0;
      border-bottom: 1px solid #e0e0e0;
      .lsow-dark-bg & {
        border-left: 1px solid #404040;
        border-right: 1px solid #404040;
        border-bottom-color: #404040;
      }
      .lsow-dark-bg &:first-child {
        border-top: 1px solid #404040;
      }
      a {
        padding: 20px 25px;
      }
      &:before {
        display: none;
      }
    }
  }
  &.lsow-mobile-open {
    .lsow-tab.lsow-active {
       border-left: 2px solid $theme_color;
       border-right: 2px solid $theme_color;
    }
  }
  &:not(.lsow-mobile-open) {
    .lsow-tab.lsow-active {
       .lsow-dark-bg & {
         border-top: 1px solid #404040;
       }
    }
  }
}
.lsow-dark-bg .lsow-tabs.style4 {
  background: transparent;

  .lsow-tab-nav {
    margin: 0;
    border-bottom: 1px solid #2a2a2a;
    .lsow-tab {
      a {
        color: #707070;
        }
      }
    .lsow-tab:hover {
      a {
        color: #b0b0b0;
        }
      }
    .lsow-tab.lsow-active {
      a {
        color: #e5e5e5;
        }
      }
    }

  .lsow-tab-pane {
    padding: 40px 0 0; 
    color: #909090;
    h1, h2, h3, h4, h5, h6 {
      color: #e5e5e5;
      }
    }
  }
/* ----------- Style 5 --------------- */

.lsow-tabs.style5 {
  .lsow-tab-nav {
    a {
      padding: 20px 50px;
      color: #777;
      position: relative;
      z-index: 1;
      &:after {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        background-color: #e9e9e9;
        content: '';
        -webkit-transition: -webkit-transform 0.3s, background-color 0.3s;
        transition: transform 0.3s, background-color 0.3s;
        -webkit-transform: perspective(900px) rotate3d(1, 0, 0, 90deg);
        transform: perspective(900px) rotate3d(1, 0, 0, 90deg);
        -webkit-transform-origin: 50% 100%;
        transform-origin: 50% 100%;
        -webkit-perspective-origin: 50% 100%;
        perspective-origin: 50% 100%;
        }
      &:hover, &:focus {
        color: #333;
        }
      }
    .lsow-tab.lsow-active a {
      color: #333;
      &:after {
        background-color: #f2f2f2;
        -webkit-transform: perspective(900px) rotate3d(1, 0, 0, 0deg);
        transform: perspective(900px) rotate3d(1, 0, 0, 0deg);
        }
      }
    }
  .lsow-tab-panes {
    background: #f2f2f2;
    }
  }

.lsow-tabs.style5.lsow-mobile-layout {
  .lsow-tab-nav {
    .lsow-tab {
      background: #f2f2f2;
      border-bottom: 1px solid #e5e5e5;
    }
  }
}

.lsow-dark-bg .lsow-tabs.style5 {
  .lsow-tab-nav {
    .lsow-tab a {
    color: #b0b0b0;
    &:hover, &:focus {
      color: #dddddd;
    }
    }
  .lsow-tab.lsow-active a {
    color: #333;
    }
  }
}

/* ------------- Style 6 and Vertical Style 7 ----------------- */

.lsow-tabs.style6, .lsow-tabs.style7 {
  .lsow-tab-nav {
    .lsow-tab {
      text-align: left;
      a {
        padding: 5px 2px;
        color: #666;
        transition: all 0.3s;
        border-top: 2px solid transparent;
        border-bottom: 2px solid transparent;
        display: inline-block;
        &:hover, &:focus {
          color: #333333;
          }
        }
      &.lsow-active a {
        border-color: $theme_color;
        color: #333;
        }
      }
    }
  .lsow-tab-pane {
    padding: 40px 0 0;
    }
  }
.lsow-tabs.style6 {
  .lsow-tab-nav {
    margin: 0 auto;
    text-align: left;
    .lsow-tab {
      margin-right: 50px;
      &:last-child {
        margin-right: 0;
        }
      }
    }
  .lsow-tab-pane {
    padding: 40px 0 0;
    }
  }
.lsow-tabs.style7 {
  .lsow-tab-nav {
    .lsow-tab {
      padding: 0 25px 0 0;
      a {
        max-width: none;
        margin: 6px 0;
        @include respond-to-max(479) {
          text-align: center;
          }
        }
      }
    }
  .lsow-tab-panes {
    @include flex(6 1 auto);
    .lsow-tab-pane {
      padding: 0 0 0 20px;
      }
    }
  }



.lsow-tabs.style6.lsow-mobile-layout, .lsow-tabs.style7.lsow-mobile-layout {
  .lsow-tab-mobile-menu {
    top: 22px;
    }
  .lsow-tab-nav {
    .lsow-tab {
      padding: 12px 0;
      width: 100%;
      text-align: center;
      a {
        margin: 0;
      }
    }
  }
  .lsow-tab-pane {
    padding: 30px 0 0;
  }
}

.lsow-dark-bg .lsow-tabs.style6, .lsow-dark-bg .lsow-tabs.style7 {
  .lsow-tab-nav {
    .lsow-tab {
      a {
        color: #b0b0b0;
        }
      }
    .lsow-tab:hover {
      a {
        color: #dddddd;
        }
      }
    .lsow-tab.lsow-active {
      a {
        color: #eaeaea;
        }
      }
    }
  .lsow-tab-pane {
    color: #909090;
    h1, h2, h3, h4, h5, h6 {
      color: #e5e5e5;
      }
    }
  }
/* ------------- Vertical Style 8 ----------------- */

.lsow-tabs.style8 {
  .lsow-tab-nav {
    .lsow-tab {
      margin: 2px 0;
      a {
        padding: 15px 30px;
        border-radius: 4px;
        background: #f2f2f2;
        color: #777777;
        transition: all 0.3s;
        border-left: 3px solid transparent;
        text-align: left;
        &:hover, &:focus {
          color: #333333;
          }
        }
      &.lsow-active a {
        color: #333;
        border-left-color: $theme_color;
        }
      }
    }
  .lsow-tab-pane {
    padding: 0 0 0 40px;
    }
  }


.lsow-tabs.style8.lsow-mobile-layout {
  .lsow-tab-mobile-menu {
    top: 18px;
  }
  .lsow-tab-nav {
    .lsow-tab a {
      text-align: left;
    }
  }
  &:not(.lsow-mobile-open) {
    .lsow-tab.lsow-active a {
      border-color: transparent !important;
    }
  }
  .lsow-tab-pane {
    padding: 30px 0 0;
  }
}


.lsow-dark-bg .lsow-tabs.style8 {
  .lsow-tab-pane {
    color: #909090;
    h1, h2, h3, h4, h5, h6 {
      color: #e5e5e5;
      }
    }
  }

/* ------------- Vertical Style 9 ----------------- */

.lsow-tabs.style9 {
    background: #f2f2f2;
    border-radius: 5px;
  .lsow-tab-nav {
    border-right: 1px solid #dddddd;
    .lsow-tab {
      border-bottom: 1px solid #d8d8d8;
      background: #e9e9e9;
      &.lsow-active {
        margin-right: -1px;
        background: #f2f2f2;
        }
      a {
        padding: 20px 30px;
        color: #777;
        &:hover, &:focus {
          color: #333;
          }
        }
      &.lsow-active a {
        color: #333;
        }
      }
    }
  .lsow-tab-panes {
    @include flex(5 1 auto);
    }
  }

.lsow-tabs.style9.lsow-mobile-layout {
  .lsow-tab-nav {
    border-right: none;
  }
  &:not(.lsow-mobile-open) {
    .lsow-tab.lsow-active {
      background: #eeeeee;
      border: none;
    }
  }
}
/* -------- Vertical Style 10 ----------- */

.lsow-tabs.style10 {
  .lsow-tab-nav {
    background: #3c3d41;
    border-radius: 5px 0 0 5px;
    .lsow-tab {
      position: relative;
      border-bottom: 1px solid #4e4f53;
      padding: 0;
      &:last-child {
        border-bottom: none;
        }
      a {
        padding: 20px;
        color: #8f8e93;
        transition: all 0.3s;
        &:hover, &:focus {
          color: #ccc;
          }
        }
      &.lsow-active:after {
        content: '';
        display: block;
        position: absolute;
        top: 32px;
        right: 0;
        height: 8px;
        margin: 0 auto;
        border-top: 8px solid transparent;
        border-right: 8px solid #f2f2f2;
        border-bottom: 8px solid transparent;
        }
      span.lsow-icon-wrapper span, span.lsow-image-wrapper {
        margin: 0 auto;
        }
      span.lsow-tab-title {
        display: none;
        }
      &.lsow-active a {
        color: #fff;
        }
      }
    }
  .lsow-tab-panes {
    background: #f2f2f2;
    border-radius: 0 5px 5px 0;
    }
  }
.lsow-tabs.style10.lsow-mobile-layout {
  @include flex-direction(row);
  .lsow-tab-mobile-menu {
    display: none;
  }
  .lsow-tab-nav {
    .lsow-tab {
      display: block;
      }
    }
}
.lsow-dark-bg .lsow-tabs.style10 {
  .lsow-tab-nav {
    background: #fff;
    .lsow-tab {
      border-bottom: 1px solid #ececec;
      &:last-child {
        border-bottom: none;
        }
      a {
        color: #969696;
        &:hover, &:focus {
          color: #666;
          }
        }
      &.lsow-active a {
        color: #333;
        }
      &.lsow-active:after {
        border-right: 8px solid #e7e7e7;
        }
      }
    }
  .lsow-tab-panes {
    background: #e7e7e7;
    .lsow-tab-pane {
      color: #666;
      h1, h2, h3, h4, h5, h6 {
        color: #333;
        }
      }
    }
  }