/*============== Tab Styles ==========*/
.spel-tabs {
  .tab-content {
    display: block;
    padding: 25px 30px;
    border: 1px solid var(--black_50);
    border-radius: 0 5px 5px 5px;
    background-color: var(--bs-white);
    position: relative;
    margin-top: -1px;

    p {
      margin: 0;
    }

    .tab_arrow_btn {
      background: #0dcaf0;
      border-color: #0dcaf0;
      color: #fff;
      &.previous, &.next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        border-radius: 0;
        background: #e1ebf0;
        border: 0;
        color: var( --e-global-color-accent );
        outline: none;
        box-shadow: none;
        transition: all 0.4s linear;
        height: 32px;
        width: 19px;
        text-align: center;
        opacity: 0;

        &:hover {
          background: var( --e-global-color-accent );
          color: #fff;
        }
      }
      &.previous {
        left: 0;
      }

      &.next {
        right: 0;
      }
    }
    &:hover {
      .previous,
      .next {
        opacity: 1;
      }
    }
  }
}

.tab_shortcode {
  margin-bottom: 0 !important;
}

.header_tab_items,
.tab_shortcode {
  .nav-tabs {
    .numb {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var( --e-global-color-accent );
      display: inline-block;
      text-align: center;
      line-height: 20px;
      font-size: 12px;
      margin-right: 10px;
      transition: all 0.2s linear;
      color: #ffffff;
    }
  }
}

.header_tab_items {
  .nav-tabs {
    .nav-item {
      .nav-link {
        flex-flow: column;
        box-shadow: none;
        text-align: center;
        &.active {
          background: #ffffff;
          color: var( --e-global-color-accent );
        }
      }
    }
  }
}

/* Sticky Tab Styles */
.process_tab_shortcode {
  .previous,
  .next {
    position: absolute;
    top: 56%;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 0;
    background: #e1ebf0;
    border: 0;
    color: var( --e-global-color-accent );
    outline: none;
    box-shadow: none;
    transition: all 0.4s linear;
    height: 32px;
    width: 19px;
    text-align: center;

    &:focus {
      outline: none;
      box-shadow: none;
    }

    &:hover {
      background: var( --e-global-color-accent );
      color: #fff;
      border-color: transparent #ebebeb;
    }
  }

  .next {
    right: -30px;
    border-radius: 5px 0 0 5px;
  }

  .previous {
    left: -30px;
    border-radius: 0 5px 5px 0;
  }

  &:hover {
    .next {
      right: 0;
    }

    .previous {
      left: 0;
    }
  }
}

/* Vertical Menu Styles */
.v_menu {
  border-bottom: 1px solid var(--black_50);
  padding-bottom: 20px;
  padding-top: 5px;
  margin-bottom: 20px;

  .nav-item {
    display: inline-block;

    .nav-link {
      font-size: 16px;
      color: #6A737C;
      transition: all 0.2s linear;
      padding: 0;
      border: 0;
      border-radius: 0;

      span {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #e1e3eb;
        display: inline-block;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        margin-right: 10px;
        transition: all 0.2s linear;
        position: relative;
        top: -2px;
      }

      &.active,
      &:hover {
        color: var( --e-global-color-accent );
        border: 0;
        background: transparent;

        span {
          background: var( --e-global-color-accent );
          color: #fff;
        }
      }
    }

    & + li {
      margin-left: 55px;
    }
  }
}

/* Sticky Tab in Admin Bar */
body.admin-bar .sticky_tab.tab_fixed.sticky_tab_item {
  top: -38px;
}

/* Sticky Tab Fixed Position */
.sticky_tab {
  &.tab_fixed {
    &.sticky_tab_item {
      position: fixed;
      width: 100%;
      top: -70px;
      left: 0;
      right: 0;
      background: #031933;
      transform: translateY(70px);
      transition: transform 500ms ease, background 500ms ease;
      z-index: 30;
    }
  }
}

/* Tabs Slider Styles */
.tabs_sliders {
  position: relative;
  overflow: hidden;

  .scroller-btn {
    position: absolute;
    top: 50%;
    color: var( --e-global-color-accent );
    font-size: 20px;
    cursor: pointer;
    transform: translateY(-50%);
    left: 0;
    width: 40px;
    background: #f9f9f9;
    box-shadow: 4px 0 9px 1px rgba(0, 0, 0, 0.03);
    line-height: 44px;
    z-index: 9;
    text-align: center;
    &.right {
      right: 0;
      left: auto;

      &::before {
        left: -20px;
        right: auto;
      }
    }

    &.inactive-left-arrow {
      display: none;
    }

    &.inactive-right-arrow {
      display: none;
    }

  }

  ul {
    &.nav-tabs {
      display: flex;
      flex-wrap: nowrap;
      overflow: hidden;
      margin-bottom: -1px;
      border: 0;
      .nav-item {
        margin: 0;
        min-width: fit-content;
        .nav-link {
          font-size: 16px;
          color: var(--black_700);
          border-radius: 0;
          padding: 9px 20px;
          background: var(--black_25);
          border: 1px solid var(--black_50);
          position: relative;
          text-decoration: none;
          margin-bottom: 0;
          display: flex;
          gap: 8px;
          align-items: center;
          transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;

          &::before {
            content: "";
            width: 0;
            height: 2.1px;
            background: var( --e-global-color-accent );
            position: absolute;
            top: -1px;
            left: 0;
            opacity: 0;
            transition: width 0.2s linear;
          }

          &.active {
            background: var(--bs-white);
            color: var(--black_800);
            border-color: var(--black_75);
            border-bottom-color: transparent;
            z-index: 1;
            &::before {
              opacity: 1;
              width: 100%;
            }
            .tab_progress {
              .progress-bar {
                background: var( --e-global-color-accent );
                height: 2px;
              }
            }
          }

          svg, i {
            display: block;
            height: 24px;
            width: 24px;
            max-width: 26px;
            max-height: 26px;
            padding-top: 5px;
          }

          .tab_progress {
            .progress-bar {
              background: transparent;
              height: 2px;
            }
          }

        }

        &:last-child {
          .nav-link {
            border-right: 1px solid var(--black_50);
          }
        }
      }
    }
  }
}

/* Process Tab Shortcode */
.process_tab_shortcode {
  p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #6b707f;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .v_head {
    padding-bottom: 24px;
  }

  .v_middle {
    p {
      margin-bottom: 0;
      font-size: 15px;

      .red {
        color: #f12249;
      }

      .green {
        color: #11c52f;
      }
    }
  }

  .v_footer {
    padding-top: 25px;

    p {
      margin-bottom: 0;
    }
  }
}

/* Process Tab Shortcode */
.process_tab_shortcode {
  .previous,
  .next {
    position: absolute;
    top: 56%;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 0;
    background: #e1ebf0;
    border: 0;
    color: var( --e-global-color-accent );
    outline: none;
    box-shadow: none;
    transition: all 0.4s linear;
    height: 32px;
    width: 19px;
    text-align: center;

    &:focus {
      outline: none;
      box-shadow: none;
    }

    &:hover {
      outline: none;
      box-shadow: none;
      background: var( --e-global-color-accent );
      color: #fff;
    }
  }

  .next {
    right: -30px;
    border-radius: 5px 0 0 5px;
  }

  .previous {
    left: -30px;
    border-radius: 0 5px 5px 0;
  }

  &:hover {
    .next {
      right: 0;
    }

    .previous {
      left: 0;
    }
  }
}

/* Sticky Tab Styles */
body.remove {
  .tab_fixed {
    &.header_tab_items {
      transform: translateY(144px);
    }
  }
}

/* Header Tab Items */
.header_tab_items {
  background: #031933;

  &.tab_fixed {
    .nav.nav-tabs {
      li {
        a {
          svg,
          i,
          img {
            display: inline-block;
            margin-bottom: 0;
            position: relative;
            margin-right: 4px;
          }
        }
      }
    }

    .header_tab_content {
      margin-top: 61px;
      .tab-pane {
        padding: 0;
      }
    }
  }

  .nav.nav-tabs {
    justify-content: center;
    border: none;

    li {
      margin-bottom: 0;

      a {
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        text-align: center;
        font-size: 14px;
        font-weight: 400;
        color: #fff;
        padding: 10px 30px;
        text-decoration: none;

        svg,
        i,
        img {
          display: block;
          margin-bottom: 2px;
        }

        &:hover {
          background: #ebebeb;
          color: #6A737C;

          svg {
            path {
              fill: #6A737C;
            }
          }
        }

        &.active {
          background-color: #fff;
          color: var( --e-global-color-accent );

          svg {
            path {
              fill: var( --e-global-color-accent );
            }
          }
        }
      }
    }
  }
}


/* Auto Tabs Styles */
.tab_shortcode,
.header_tab_items {
  .tab_auto_play {
    .nav-item {
      .nav-link {
        position: relative;
        overflow: hidden;

        &::before {
          display: none;
        }

        .tab_progress {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 2px;

          &::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            opacity: 0.4;
          }
        }
      }
    }
  }
}