/** === Badge style === **/
.nav-sidebar {
  .nav-item {
    .dropdown_nav {
      li {
        a {
          display: flex;
          align-items: baseline;
        }
      }
    }
  }
}

.ezd-doc-badge {
  display: flex;
  align-items: center;
  margin-left: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--ezd_brand_color);
  height: 16px;
  min-width: max-content;
}

.doc-link .ezd-doc-badge {
  margin-top: 2px;
}

.nav-sidebar .nav-item .dropdown_nav li.has_child > a span.ezd-doc-badge,
.nav-sidebar li.has_child > a span.ezd-doc-badge {
  margin-right: 40px;
}

/** === Content layout : Category === **/
.nav_category_layout {
  margin-left: -15px;

  .doc-title, .filter_form {
    padding-left: 15px;
  }

  .scroll {
    margin-left: 5px !important;
  }

  .nav-sidebar li ul,
  .nav-sidebar {
    list-style: none;
    padding: 0;
    margin-left: 0;

    li {
      margin: 0;
    }
  }

  .nav-sidebar {
    > li.page_item > a {
      text-transform: uppercase;
      letter-spacing: 1.2px;
      color: rgba(136, 153, 168, 1.00);
      padding: 10px;
      display: block;
      font-weight: 400;
      line-height: 22px;
      font-size: 14px;
      margin-top: 20px;

      &:hover {
        color: var(--ezd_brand_color);
      }
    }

    li {
      > ul > li.page_item_has_children {
        position: relative;
      }

      &.page_item_has_children:first-child > a {
        margin-top: 0;
      }

      > ul > li > a {
        padding: 5px 10px;
        display: block;
        font-weight: 400;
        line-height: 22px;
        font-size: 14px;
        color: var(--black_600);
        text-decoration: none;
        border-radius: 5px;
        margin-bottom: 4px;
      }
    }
  }

  .nav-sidebar {
    .page_item_has_children {
      .children {
        .children {
          padding-left: 8px;
          margin-left: 10px;
        }
      }
    }

    li {
      > ul {
        > li {
          &:hover {
            > a {
              background: rgba(208, 215, 222, 0.32);
            }
          }
        }

        > li.current_page_item {
          > a {
            color: var(--ezd_brand_color);
            background: rgba(255, 255, 255, 1.00);
            border: 1px solid rgba(211, 220, 228, 1.00);
          }
        }

        > li.page_item_has_children {
          &::before {
            content: "\33";
            display: block;
            clear: both;
            position: absolute;
            right: 6px;
            top: -3px;
            font-family: "ElegantIcons";
            bottom: 0;
            font-size: 18px;
            line-height: 2.4;
            cursor: pointer;
          }

          > .children {
            display: none;
            border-left: 1px solid #80808038;
            margin-top: 5px;
          }
        }

        li.page_item_has_children.current_page_parent > .children,
        li.page_item_has_children.current_page_item > .children {
          display: block;
        }
      }
    }
  }
}

/** === Contribute Buttons === **/
.contribut-btns {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  a {
    text-decoration: none;
    font-size: 15px;

    &.secondary-btn {
      color: var(--black_500);
      order: 2;

      &:hover {
        color: var(--ezd_brand_color);
      }
    }

    i {
      padding-right: 5px;
    }

    &.add {
      color: var(--ezd_brand_color);
      border: 1px solid var(--ezd_brand_color);
      order: 1;
      text-decoration: none;
      padding: 6px 18px;
      border-radius: 4px;

      &:hover {
        color: #fff;
        background-color: var(--ezd_brand_color);
      }

      i {
        padding-right: 3px;
      }
    }
  }
}

// CONTRIBUTOR Users
.contributed_users {
  display: flex;

  &::before {
    content: "•";
    margin: 0 5px;
    @media (max-width: 480px) {
      display: none;
    }
  }
}

.ezdoc_contributed_user_avatar {
  display: flex;
  align-items: center;

  span.contributed_user_list {
    display: contents;
  }

  a {
    margin-right: -3px;
    display: flex;

    &:first-child {
      margin-left: 5px;
      text-decoration: none;
    }

    + a {
      padding: 0;
      text-decoration: none;
    }

    img {
      border-radius: 50%;
      outline: 2px solid var(--bs-white);
      margin: 0 !important;
    }
  }

  .ezdoc_contributed_users {
    position: relative;
    display: inline-block;
    margin-left: 10px;

    .doc_users_dropdown {
      position: absolute;
      display: none;
      top: 35px;
      background: var(--bs-white);
      width: 410px;
      max-height: 415px;
      right: 0;
      margin: auto;
      z-index: 5;
      border-radius: 4px;
      padding: 25px;
      overflow: auto;
      @media (max-width: 767px) {
        left: -135px;
        right: auto;
        width: 370px;
      }

      h5 {
        font-size: 22px;
        margin-top: 0;
        margin-bottom: 12px;
      }

      .title {
        margin-bottom: 10px;
        color: var(--black_800);
      }

      &:nth-child(2) {
        &.before {
          display: none;
        }
      }

      .doc_dropdown_users_list {
        margin-top: 20px;

        &#to_add_contributors {
          ul {
            &:first-child {
              border-top: 2px solid #dddddd52;
              padding-top: 20px;
            }
          }
        }

        ul.users_wrap_item {
          list-style: none;
          padding: 0;
          display: flex;
          gap: 15px;
          align-items: center;
          margin: 0 0 15px;

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

          li {
            margin: 0;

            &:nth-child(2) {
              span:before {
                display: none;
              }
            }

            .circle-btn {
              border: 1px solid;
              width: 25px;
              height: 25px;
              display: block;
              text-align: center;
              border-radius: 50%;
              cursor: pointer;
              text-decoration: none;
              line-height: 22px;
              margin: 0;
            }

            .ezd_contribute_delete {
              color: red;
              border-color: red;

              &:hover {
                background-color: red;
                color: #fff;
              }
            }

            a {
              text-transform: capitalize;
              text-decoration: none;

              img {
                border-radius: 30px
              }
            }

            &:nth-child(2) {
              width: 80%;
              word-break: break-all;
              flex: 1;

              a {
                display: table-cell;
                font-size: 14px;
                line-height: 23px;
                color: var(--black_800);
                font-weight: 400;
                width: 100%;

                &:hover {
                  color: var(--ezd_brand_color)
                }
              }

              span {
                font-size: 14px;
                color: var(--black_400);
              }
            }

            a.ezd_contribute_add {
              border-color: #c981e8;
              color: #c981e8;

              &:hover {
                background-color: #c981e8;
                color: #fff;
              }
            }
          }

          .ezd-contributor-loader {
            width: 26px;
            height: 26px;
          }
        }

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

      &.before {
        display: none;
      }

      form {
        input {
          width: 100%;
          border: 1px solid var(--black_50);
          font-size: 13px;
          padding: 10px 20px;
          border-radius: 5px;
          color: var(--black_800);
          line-height: 1;

          &::-webkit-search-cancel-button {
            position: absolute;
            right: 12px;
            height: 15px;
            width: 15px;
            cursor: pointer;
            background-image: url("../images/icon/cross-icon.png");
            background-size: contain;
          }

          &:focus {
            border-color: var(--black_100);
            box-shadow: none;
            outline: none;
            color: var(--black_800);

            &::placeholder {
              color: var(--black_800);;
            }
          }
        }
      }

      h2 {
        margin-bottom: 10px;
        font-size: 21px;
        font-weight: 500;
      }

      &.active {
        display: block;
      }
    }

    i {
      font-size: 18px;
      vertical-align: middle;
      cursor: pointer;
      border: 1px solid var(--ezd_brand_color);
      border-radius: 30px;
      width: 24px;
      height: 24px;
      display: inline-block;
      transform: rotate(0deg);
      transition: 0.2s all;
      text-align: center;
      padding-top: 2px;

      &.active {
        transform: rotate(180deg);
        background-color: var(--ezd_brand_color);
        color: #fff;
      }
    }
  }
}

body.rtl {
  .ezdoc_contributed_user_avatar {
    gap: 10px;
  }
}

body.single-docs {
  overflow-x: hidden !important;
}

.documentation_item {
  &.embed-post {
    padding: 30px;
    border-radius: 10px;
  }

  .embed-post-icon {
    margin-right: 20px;
    max-width: 100px
  }
}


/*================ glossary docs ==============  */
.spe-list-template-three-column {
  display: grid;
}

.spe-list-filter {
  text-align: center;
  margin-bottom: 15px;
}

.spe-list-filter a {
  display: inline-block;
  padding: 3px;
  margin: 0 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  color: #5a5a5a;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s;

  &.mixitup-control-active {
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  &.filter_disable {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
  }

  &:hover {
    color: #666;
    text-decoration: none;
  }
}

.spe-list-search-form {
  margin-bottom: 15px;

  input[type="search"] {
    width: 100%;
    height: 45px;
    line-height: 44px;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    box-shadow: none;
    padding: 10px 15px 10px 25px;
    -webkit-transition: border-color ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s;
    transition: border-color ease-in-out .15s;

    &:focus {
      border-color: #000;
      outline: none;
    }
  }
}

.spe-list-block {
  .spe-list-block-heading {
    width: 100%;
    padding: 5px 18px;
    background: var(--black_50);
    color: var(--black_500);
    float: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    margin: 0;
  }

  .spe-list-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 15px;
    padding: 10px 0 35px 15px !important;
    list-style: none;
    margin: 0;

    .spe-list-item {
      padding: 15px 0 0 0;
      margin: 0;

      .spe-list-item-title {
        font-weight: 400;
        align-items: center;

        &::before {
          content: "h";
          font-family: "ElegantIcons";
          speak: none;
          font-style: normal;
          font-weight: normal;
          font-variant: normal;
          text-transform: none;
          line-height: 1;
          -webkit-font-smoothing: antialiased;
          padding-right: 15px;
        }
      }
    }
  }
}


// tooltrip css 
.ezd-body-docs {
  .tooltipster-sidetip {
    .tooltipster-box {
      border: 0px !important;
      background: #fff;
      max-width: 400px;
      box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.3), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    }

    .tooltipster-content {
      border: 0px !important;
      padding: 20px 30px;
      background: transparent;

      .tip_content {
        background: transparent;
        padding: 0px;
        box-shadow: none;
      }

      .text {
        background: transparent;
        padding: 0px;

        h4 {
          font-size: 22px;
          margin-bottom: 8px;
        }

        p {
          font-size: 16px;
        }
      }
    }
  }
  &.body_dark{
    .tooltipster-content {
      .text {
        h4 {
          color: black;
        }
      }
    }
  }
}

.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border, .tooltipster-sidetip .tooltipster-arrow-border {
  border: 0px !important;
  left: 2px;
}

.tooltipster-sidetip .tooltipster-arrow-background {
  border-color: transparent !important;
}

// tab css 
.tab-box {
  display: none;
}

h3.ezd_selected_comment_heading {
  font-size: 20px !important;
  margin-bottom: 15px;
  font-weight: 500;
  margin-top: 40px
}

.ezd_selected_comment_wrapper {
  list-style-type: auto;
  margin: 0;
  padding: 0;
  display: none;

  li {
    margin-left: 17px;
    outline: none;
    margin-bottom: 10px;
    cursor: pointer;

    b {
      font-weight: 500;
      font-size: 18px;
      color: #334155;
      text-decoration: none;
      font-size: 17px;
      line-height: 24px;
      margin-bottom: 2px;
      outline: none;
    }

    &:hover {
      color: var(--ezd_brand_color);

      b {
        color: var(--ezd_brand_color);
      }
    }
  }
}

.ezd_selected_comment_off {
  > i {
    display: none;
  }
}

#ezd_selected_comment_btn {
  position: absolute;
  z-index: 9999;
  display: none;

  > p {
    background-color: var(--ezd_brand_color);
    border: 1px solid var(--ezd_brand_color);
    padding: 0px 15px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: white;
    line-height: 24px;
    margin-bottom: 2px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: max-content;
    position: absolute;
    top: 0px;

    &:hover {
      background-color: #004fcf;
      border-color: #004fcf;
    }
  }

  > .ezd_selected_form_wrapper {
    width: 350px;
    position: absolute;
    top: 27px;
  }
}

#ezd_selected_comment_form {
  position: sticky;
  background-color: #ebebeb;
  border: 1px solid #e3e3e3d4;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
  right: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: auto;
  border-radius: 5px;
  bottom: 0;
  margin: auto;

  textarea {
    width: 100%;
    height: 150px;
    border: 1px solid rgba(227, 227, 227, 0.831372549);
    border-radius: 5px;
    padding: 7px 15px 10px;
    resize: none;
    color: var(--black_800);
    box-sizing: border-box;
    line-height: 30px;
    font-size: 14px;
  }

  button {
    padding: 14px 20px;
    background-color: var(--ezd_brand_color);
    cursor: pointer;
    display: block;
    width: 100%;
    border: none;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: .5px;

    &:hover {
      background-color: #0053db;
    }
  }
}

.selected-comment-active {
  span.ezd_mark_text {
    background: yellow;
    position: relative;

    &.active {
      background: yellow;
    }

    i {
      display: none;
      position: absolute;
      top: 30px;
      z-index: 11;
      left: 0;
      right: 0;
      font-style: normal;
      min-height: 90px;
      border-bottom-left-radius: 3px;
      border-bottom-right-radius: 3px;
      border-top-right-radius: 3px;
      word-break: break-all;
      width: 300px;
      background: #fff;
      box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.3), 0 0 1px 1px rgba(0, 0, 0, 0.05);
      border: 0;
      transform: translate(-45%, 0%);
      line-height: 26px;
      color: #6b707f;
      margin: auto auto 0;
      padding: 20px 25px;
      box-sizing: border-box;
      font-size: 16px;

      &:before {
        content: "";
        position: absolute;
        top: -6px;
        left: 0;
        right: 0;
        margin: auto;
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-top: 7px solid transparent;
        transform: rotate(224deg);
        box-shadow: 1px 1px 0 rgba(110, 108, 108, 0.25);
        background: white;
        border-top-right-radius: 2px;
      }

      .ezd_mark_text {
        display: inline-block;
      }

      > b {
        display: block;
        text-transform: capitalize;
        margin-top: 20px;
        font-size: 16px;
        margin-bottom: 1px;
        color: #3e3e3e;

        &:first-child {
          margin-top: 0;
        }
      }
    }

    &.ezd_selected_comment {
      > i {
        display: inline-block;
      }
    }
  }

  input[type='checkbox'] {
    &#ezd_selected_comment_switcher {
      display: none;
    }
  }

  label {
    &[for='ezd_selected_comment_switcher'] {
      color: var(--black_500);
      font-weight: normal;
    }
  }

  span.views.sep.selected-comment-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
  }
}

/* === Feedback on Selected Text Switcher === */
.ezd_comment_switcher {
  display: inline-block;

  input {
    display: none;
  }

  label {
    display: flex;
    width: 36px;
    height: 20px;
    padding: 3px;
    border-radius: 24px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
    align-items: center;

    &::after {
      content: "";
      display: inherit;
      width: 12px;
      height: 12px;
      border-radius: 12px;
      background: #ccc;
      transition: 0.3s;
    }
  }
}

.ezd_comment_switcher input:checked ~ label {
  border-color: var(--ezd_brand_color);
}

.ezd_comment_switcher input:checked ~ label::after {
  translate: 14px 0;
  background: var(--ezd_brand_color);
}

.ezd_comment_switcher input:disabled ~ label {
  opacity: 0.5;
  cursor: not-allowed;
}

.ezd-masonry-wrap {
  display: flow;

  > div {
    overflow: hidden;
  }

  @media screen and (min-width: 1200px) {
    &.ezd-masonry-col-2 {
      column-count: 2;
      gap: 25px;
    }
    &.ezd-masonry-col-3 {
      column-count: 3;
      gap: 15px;
    }
    &.ezd-masonry-col-4 {
      column-count: 4;
      gap: 10px;
    }
    &.ezd-masonry-col-5 {
      column-count: 5;
      gap: 10px;
    }
    &.ezd-masonry-col-6 {
      column-count: 6;
      gap: 10px;
    }
  }

  @media screen and (max-width: 1199px) {
    column-count: 3;
  }
  @media screen and (max-width: 1024px) {
    column-count: 2;
  }
  @media screen and (max-width: 768px) {
    column-count: 1;
  }
}

// Selected Text Comment Popup CSS
.ezd_selected-popup ul.ezd_selected-comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;

  li {
    border-bottom: 1px solid #cfcdcd6b;

    &:nth-child(even) {
      background: #dcdcdc26;
    }

    .ezd_selected-comment {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 15px;
      box-sizing: border-box;

      img {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 !important;
      }

      div {
        strong {
          display: block;
          font-size: 14px;
          color: var(--black_800);
          font-weight: 500;
          text-transform: capitalize;
          line-height: 18px;
          margin-bottom: 2px;
        }

        div {
          font-size: 14px;
          color: var(--black_800);
          line-height: 22px;
          word-break: break-word;
          font-style: normal;
        }

        span {
          font-size: 12px;
          color: var(--black_400);
          margin: 0 0 5px;
          display: block;
        }
      }
    }
  }
}

.ezd_selected-commentable {
  position: relative;

  &.ezd_commentable_active {
    &.active-para,
    &:hover {
      background: #0b57d03d;
      border-radius: 5px;
    }
  }
}

.ezd_selected-comment-btn {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding-left: 60px;
  margin-right: -60px;

  &.active-btn {
    display: inline-block;
  }

  @media screen and (max-width: 991px) {
    padding-left: 30px;
    margin-right: -30px;
  }

  .svg-container {
    display: block;
    padding-top: 10px;
    font-size: 12px;
    box-shadow: 0 1px 2px 0 rgba(48, 48, 48, 0.302), 0 2px 6px 2px rgba(48, 48, 48, 0.149) !important;
    height: 40px;
    width: 40px;
    transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);
    background: #fff;
    border: none;
    border-radius: 50%;
    padding-left: 5px;
    cursor: pointer;

    svg {
      margin-left: 3px;
      fill: var(--ezd_brand_color);

      &.close-icon {
        width: 21px;
        margin-top: -2px;
        margin-left: 4px;

        path {
          stroke: red
        }
      }
    }
  }
}

.ezd_selected-commentable:hover .ezd_selected-comment-btn {
  display: inline-block;
}

.ezd_selected-popup {
  display: none;
  position: absolute;
  top: 42px;
  right: -200px;
  width: 400px;
  background: var(--bs-white);
  border: 1px solid var(--black_50);
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--bs_lg);
  z-index: 11;
  overflow: hidden;

  @media screen and (max-width: 991px) {
    right: 0;
  }
  @media screen and (max-width: 500px) {
    width: 100%;
  }
}

.ezd_selected-popup.active {
  display: block;
}

.ezd_selected-popup .tabs {
  display: flex;
}

.ezd_selected-popup .tabs button {
  flex: 1;
  cursor: pointer;
  border: none;
  background: #f0f0f0;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  padding: 0;
  letter-spacing: 0.3px;
  transition: 0.5s all;
  line-height: 36px;
  border-radius: 0;
  color: black;

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

}

.ezd_selected-popup .tab-content {
  display: none;

  .ezd_selected-comment-form {
    margin: 5px 15px 15px;

    .options {
      margin-bottom: 22px;

      input {
        width: 20px;
        height: 20px;
        cursor: pointer;
      }

      label {
        display: flex;
        padding: 8px 0;
        font-size: 15px;
        color: var(--black_600);
        gap: 8px;
        align-items: center;
        cursor: pointer;
        font-weight: normal;
        line-height: 1.3;
      }
    }

    textarea {
      width: 100%;
      min-height: 50px;
      max-height: 100px;
      margin-bottom: 0;
      padding: 5px 10px;
      border: 1px solid var(--black_50);
      border-radius: 4px;
      resize: vertical;
      margin-top: 15px;
      color: var(--black_800);

      &::placeholder {
        font-size: 16px;
      }

      &:focus {
        border-color: var(--ezd_brand_color);
      }
    }

    .buttons {
      text-align: right;
      display: block;

      button {
        background: var(--ezd_brand_color);
        color: #fff;
        border: none;
        padding: 0 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        font-weight: bold;
        line-height: 35px;

        &.cancel-btn {
          background: transparent;
          margin-right: 5px;
          color: var(--ezd_brand_color);

          &:hover {
            background: var(--ezd_brand_color)12;
          }
        }
      }
    }

    .ezd-form-info-text {
      font-size: 12px;
      display: block;
      letter-spacing: .025em;
      font-family: "Google Sans Text", Roboto, Arial, sans-serif;
      font-weight: 400;
      color: var(--black_500);
      line-height: .875rem;
      -webkit-transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
      transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
      margin: -5px 16px 8px;
    }
  }

  .ezd-comment-form-heading {
    margin: 15px 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--black_800);
    letter-spacing: normal;
    line-height: 32px;

    &.inline-heading {
      margin-left: 0;
      margin-right: 0;
      line-height: 20px;
    }
  }

  .ezd-comment-form-footer {
    border-top: 0.0625rem solid rgba(171, 171, 171, 0.4117647059);
    color: var(--black_500);
    font-family: "Google Sans Text", Roboto, Arial, sans-serif;
    font-size: 12px;
    padding: 15px;
    line-height: 1rem;
  }

  &.active {
    display: block;
  }

  .ezd-comment-no-items {
    text-align: center;
    padding: 30px 15px;
    color: var(--black_400);
    font-size: 14px;
  }
}