$breakpoint-sm: 767px;
$breakpoint-xs: 670px;
$breakpoint-xl: 1199px;
$breakpoint-lg: 991px;

.container-fluid {
  &.pl-60 {
    padding-left: 60px;
  }

  &.pr-60 {
    padding-right: 60px;
  }
}

.onepage-doc-sec {
  .border_bottom {
    margin: 80px 0;
  }

  .doc-content {
    h4,
    h2 {
      font-size: 20px;
      font-weight: 500;
      margin-bottom: 25px;
    }
  }
}

@media screen and (max-width: 767px) {
  .eazydocs-next-prev-wrap {
    column-count: 1;
    display: block;

    .next-prev-pager {
      &.first,
      &.second {
        width: 100%;
        margin-bottom: 20px;
      }
    }
  }
}

/* Onepage */
.documentation_area_sticky {
  z-index: 99;
  background: #fff;
  left: 0;
  right: 0;

  .one-page-docs-sidebar-wrap {
    background: #182530;
    color: #fff;
    box-sizing: border-box;
    padding: 30px;
    overflow: auto;
  }
}

.single-onepage-docs {
  .doc-section {
    .shortcode_title {
      margin-bottom: 25px;
      border-bottom: 1px solid var(--black_50);
      padding-bottom: 0 !important;
      letter-spacing: 2px;
      margin-top: 0;

      h2,
      h3,
      h4 {
        padding: 10px 0 !important;
        margin: 0 !important;
      }

      h2 {
        font-size: 32px;
      }

      h3 {
        font-size: 26px;
      }

      h4 {
        font-size: 22px;
      }
    }
  }
}

.doc_documentation_area {
  &.documentation_area_sticky {
    .doc-section:first-child {
      .shortcode_title.doc-sec-title {
        margin-top: 0;
      }
    }
  }
}

.onepage-doc-sec {
  .doc-content {
    h4, h2 {
      font-size: 20px;
      font-weight: 500;
      margin-bottom: 25px;
      color: var(--h_title);
    }
  }
}

#post {
  .onepage-doc-sec {
    padding-top: 60px;
    margin: 0;
  }
}

.nav_title {
  font-size: 16px;
  text-transform: uppercase;
  color: #fff;
  background: var(--ezd_brand_color);
  border-radius: 4px;
  line-height: 22px;
  padding: 13px 30px;
  margin-bottom: 0;
}


/** === Fullscreen layout === **/
.fullscreen-layout {
  nav.ezd-scroll.op-docs-sidebar {
    margin-left: -5px;
  }

  @media ( min-width: 991px ) {
    #post .doc-section {
      padding-top: 100px;
    }
  }

  .nav-sidebar.one-page-doc-nav-wrap .nav-item a {
    padding: 12px 15px;
  }

  .doc_rightsidebar {
    height: 100vh;
  }
}

.child-doc {
  .shortcode_title {
    border-left: 5px solid var(--ezd_brand_color);
    border-bottom: none;
    margin: 30px 0;
    padding-left: 15px;

    &.depth-two {
      background: rgba(214, 212, 212, 0.2);
    }
  }
}

@media screen and (min-width: 991px) {
  .documentation_area_sticky {
    .one-page-docs-sidebar-wrap {
      width: 24%;
      position: fixed;
      z-index: 1;
      left: 0;
      top: 0;
      bottom: 0;
      overflow: auto;
    }
  }
}

@media screen and (min-width: 768px) {
  .documentation_area_sticky {
    &.doc_documentation_area {
      padding-top: 0;
      position: absolute;
      top: 0;
      overflow-y: scroll;
      height: 100%;
    }

    &.fullscreen-layout.doc_documentation_area {
      padding-top: 0 !important;
      z-index: 111;
    }
  }
}

.documentation_area_sticky {
  .sticky-top {
    top: 48px;
  }

  .doc_rightsidebar {
    padding-top: 32px;
  }
}

@media screen and (max-width: 991px) {
  .admin-bar {
    .documentation_area_sticky {
      .doc_mobile_menu {
        .open_icon {
          top: 32px;
        }
      }
    }

    .documentation_area_sticky {
      .middle-content {
        padding-top: 32px;
      }

      .doc_documentation_area {
        &.documentation_area_sticky {
          .doc-section:first-child {
            .shortcode_title.doc-sec-title {
              margin-top: 42px;
            }
          }
        }
      }
    }
  }

  .doc_mobile_menu {
    .left-column, .doc_full_width & {
      max-width: 260px;
      width: 100%;
      left: -260px;
      position: absolute;
      z-index: 2;
      padding: 0;
    }

    .open_icon {
      display: block;
      right: -25px;
      left: auto;
    }
  }
}

@media screen and (min-width: 767px) {
  .documentation_area_sticky {
    .doc_rightsidebar {
      padding-top: 0;
    }
  }
}

@media screen and (max-width: 767px) {
  .admin-bar {
    .documentation_area_sticky {
      .open_icon,
      .doc_mobile_menu {
        .open_icon {
          top: 32px;
        }
      }
    }
  }

  .fullscreen-layout {
    .nav-sidebar {
      height: 100vh;
      overflow-y: scroll;
    }
  }

  .documentation_area_sticky {
    .one-page-docs-sidebar-wrap {
      padding: 1px;
    }
  }
}

body {
  &.admin-bar {
    .documentation_area_sticky {
      .one-page-docs-sidebar-wrap {
        top: 32px;
      }

      .doc_documentation_area {
        &.documentation_area_sticky {
          .doc-section:first-child {
            .shortcode_title.doc-sec-title {
              margin-top: 20px;
            }
          }
        }
      }

      .doc_rightsidebar {
        padding-top: 32px;
      }
    }
  }
}

.single-onepage-docs {
  .documentation_area_sticky {
    .one-page-docs-sidebar-wrap {
      img {
        display: block;
        max-width: 200px !important;
        height: auto !important;
        width: auto !important;
        max-height: 120px;
        margin: 10px;
      }
    }

    .nav-sidebar.one-page-doc-nav-wrap {
      .nav-item {
        background: transparent;

        .dropdown_nav {
          background: transparent;
          padding-top: 0;
          padding-bottom: 0;
        }

        a {
          color: #fff;
          opacity: .7;
        }

        &.active, &:hover {
          a {
            color: #f1f1f1;
            opacity: 1;
          }
        }
      }
    }

    .doc-title {
      color: var(--black__100);
      font-size: 22px;
      text-transform: none;
      margin: 25px 0 15px 10px;
    }
  }
}

.documentation_area_sticky {
  .nav-sidebar {
    .nav-item {
      .docs-progress-bar {
        background: rgb(214 212 212 / 20%);
      }

      &.active > a {
        background: transparent;
        opacity: 1;
      }

      .dropdown_nav {
        .nav-item {
          &.active a {
            background: transparent;
            color: #fff;
            font-weight: 500;
          }

          &:before {
            display: none;
          }

          &.active a {
            background: transparent;
          }
        }

        &:before {
          display: none;
        }
      }
    }
  }

  .documentation_info {
    padding: 0 40px;

    img {
      box-shadow: 0 0 10px 2px rgb(0 0 0 / 15%);
      margin: 10px 0;
      width: fit-content;
      max-width: 100%;
      height: auto;
    }
  }
}

.nav-sidebar.one-page-doc-nav-wrap {
  .nav-item {
    background: #f2f2f2;
    margin: 3px 0 0;
    list-style: none;
    @media screen and (max-width: 991px) {
      margin-top: 0;
    }

    a {
      padding: 13px 20px;
      align-items: center;
      z-index: 2;
      position: relative;
    }

    .dropdown_nav {
      padding-left: 32px !important;
      position: relative;
      padding-top: 10px;
      padding-bottom: 10px;
      background: #fff;

      &.doc-last-depth {
        padding-bottom: 0;
      }

      &:before {
        content: "";
        width: 2px;
        bottom: 15px;
        background: #edf1f3;
        position: absolute;
        top: 15px;
        left: 20px;
      }

      .nav-item {
        background: transparent !important;
        padding: 0 22px;
        margin-bottom: 8px;

        &::before {
          content: "5";
          font-family: "ElegantIcons";
          color: var(--ezd_brand_color);
          position: absolute;
          left: 0;
        }

        a {
          display: inline-block;

          &.active {
            color: var(--ezd_brand_color);
          }
        }

        &.active {
          > a {
            color: var(--ezd_brand_color);
          }
        }
      }
    }
  }

  .active {
    .dropdown_nav {
      display: block;
      overflow-y: auto;
      max-height: 450px;

      &::-webkit-scrollbar {
        width: 8px;
      }

      &::-webkit-scrollbar-track {
        background: transparent;
      }

      &::-webkit-scrollbar-thumb {
        background: var(--black_200);
        border-radius: 30px;
      }
    }

    .icon {
      transform: none;
    }
  }
}

/* Onepage Button */
.docs-twice-btn-wrapper {
  margin: 20px 0;
  column-count: 2;
  display: flex;
  gap: 7px;

  a {
    display: inline-block;
    color: #fff;
    border: 3px solid #0194D7;
    background: #0194D7;
    line-height: 19px;
    padding: 12px 14px;
    letter-spacing: 0px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 25px;
    text-transform: uppercase;
    text-decoration: none;

    &:hover {
      background: transparent;
    }

    &:last-child {
      background: #B11D8A;
      border-color: #B11D8A;

      &:hover {
        border-color: #B11D8A;
        color: #fff;
        background: transparent;
      }
    }
  }
}

.fullscreen-layout {
  &.onepage_doc_area {
    .middle-content {
      padding: 0;

      @media screen and (max-width: $breakpoint-sm) {
        padding: 0 15px;
      }
    }

    .nav-sidebar {
      &.one-page-doc-nav-wrap {
        .nav-item {
          &.active {
            background: #2A3D4B;

            ul {
              padding: 0 !important;
            }
          }

          ul {
            li {
              margin: 10px 0;

              &.nav-item {
                line-height: 27px;
                margin-bottom: 5px;

                &.active {
                  background: transparent;
                  opacity: 1;
                }
              }
            }
          }
        }
      }
    }
  }

  &.fullscreen-layout-onepage-sidebar {
    &.one-page-doc-nav-wrap {
      > .nav-item {
        > a {
          width: 80%;
        }

        > ul {
          overflow: hidden;
        }
      }
    }
  }

  .doc_rightsidebar .pageSideSection {
    padding-right: 10px;
  }

  .doc_right_mobile_menu {
    @media screen and (min-width: 768px) {
      position: fixed;
      right: 20px;
      width: 16%;
    }

    @media screen and (max-width: $breakpoint-sm) {
      position: fixed !important;
      z-index: 1;
      right: 0;
    }

    @media (max-width: $breakpoint-xs) {
      max-width: unset;
    }
  }
}

.admin-bar {
  .fullscreen-layout {
    .doc_right_mobile_menu,
    .doc_mobile_menu {
      @media screen and (max-width: $breakpoint-sm) {
        top: 32px;
      }
    }
  }
}

.onepage-doc-sec {
  figure {
    max-width: 100%;
  }
}

.nav-sidebar {
  &.one-page-doc-nav-wrap {
    .nav-item {
      .icon {
        right: 20px;
        position: absolute;
        top: 12px;
        font-size: 18px;
        transform: translateY(-50%);

        i.arrow_carrot-down {
          &:before {
            content: "\f543";
            font-family: dashicons;
          }
        }
      }

      &.active {
        .icon {
          i.arrow_carrot-down {
            &:before {
              content: "\f460";
              font-family: dashicons;
            }
          }
        }
      }
    }

    > .nav-item > .icon {
      top: 25px;
    }
  }
}

.onepage-doc-sec {
  .border_bottom {
    margin: 80px 0;
  }
}

.classic-onepage {
  .nav-sidebar.one-page-doc-nav-wrap .nav-item .icon {
    top: 50%;
  }
  #post .doc-section {
    padding-top: 0;
  }
}

.single-onepage-docs {
  .doc_rightsidebar .pageSideSection {
    padding-left: 25px;
  }
  .nav-sidebar {
    > .nav-item.active {
      > .icon, .nav-link .icon {
        .icon_plus {
          display: none;
        }

        .icon_minus-06 {
          display: block;
        }
      }

      li.active {
        > .icon {
          .icon_plus {
            display: none;
          }

          .icon_minus-06 {
            display: block;
          }
        }
      }
    }
  }
}

@media (max-width: $breakpoint-xl) {
  .documentation_area_sticky {
    .one-page-docs-sidebar-wrap {
      width: 26%;
    }
  }

  .fullscreen-layout {
    .doc_right_mobile_menu {
      width: 20%;
    }
  }
}

@media screen and (max-width: $breakpoint-lg) {
  .fullscreen-layout {
    &.onepage_doc_area {
      .middle-content {
        padding: 0;
      }
    }

    &.doc_documentation_area {
      position: fixed;
      overflow: auto !important;
      top:  0;
      height: -webkit-fill-available;
      z-index: 11;
    }

    .doc_right_mobile_menu {
      width: 100% !important;
      right: 0;
    }

    .onepage_doc_area {
      &.fullscreen-layout {
        .doc_rightsidebar {
          margin-top: 0;
          max-width: 250px;
        }
      }
    }
  }

  .documentation_area_sticky {
    .documentation_info {
      padding: 0 25px;
    }

    .one-page-docs-sidebar-wrap {
      width: 100% !important;
    }
  }
}

.documentation_area_sticky.onepage_doc_area.fullscreen-layout{
  .ezd-grid-column-full.doc_mobile_menu.doc-sidebar {
    left: -300px;
    position: fixed;
    width: 300px;
    bottom: 0;
    margin: auto;
    transition: .3s all;
    background: #182530;
  }
  @media (min-width: 768px) {
    .ezd-md-col-9 {
        grid-column: default;
    }
  }
}

