.#{$prefix}-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  // background: rgb(var(--wpt-lms-black));
  background: rgb(var(--wpt-lms-black), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  &-content {
    background: white;
    padding: 1.25rem;
    border-radius: 0.313rem;
    width: 31.25rem;
    position: relative;
    top: 30%;
    left: 40%;
    .#{$prefix}-modal-header {
      margin-bottom: 0.938rem;
      font-weight: 600;
      font-size: large;
    }
    .#{$prefix}-modal-body {
      margin-bottom: 0.938rem;
      font-weight: 600;
      font-size: large;
      ul {
        overflow-y: auto;
        height: 30vh;
        margin-top: 1.25rem;
      }
    }
    .#{$prefix}-modal-footer {
      display: flex;
      justify-content: space-between;
    }
  }
  .dashicons {
    cursor: pointer;
  }
  .close {
    position: absolute;
    top: 0.938rem;
    right: 1.25rem;
    cursor: pointer;
    font-size: x-large;
  }
  .modal-search-input {
    width: 100%;
  }
  #selectButton {
    border-radius: 0.188rem;
    font-size: 0.875rem;
    height: 2.75rem;
    line-height: 0.875rem;
    padding: 0 1.125rem;
    color: rgb(var(--wpt-lms-primary-700));
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .tablinks {
    background-color: rgb(var(--wpt-lms-white));
    border: none;
    padding: 0.625rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .tablinks.active {
    background-color: rgb(var(--wpt-lms-primary-700));
    font-weight: bold;
    color: rgb(var(--wpt-lms-white));
  }
}
// Quiz modal overlay
.#{$prefix}-modal-overlay {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  // opacity: 0.5;
  background: rgb(var(--wpt-lms-black), 0.5);
}
.#{$prefix}-modal-window {
  border: 0.063rem solid rgb(var(--wpt-lms-box-border));
  background-color: rgb(var(--wpt-lms-white));
  box-shadow: 0 0.063rem 0.25rem rgba(var(--wpt-lms-primary-800), 0.06);
  border-radius: 0.188rem;
  position: fixed;
  z-index: 999999;
  top: 50%;
  left: 50%;
  padding: 1.875rem 3.75rem;
  transform: translate(-50%, -50%);
  .#{$prefix}-content {
    margin-bottom: 1.25rem;
  }
  .#{$prefix}-buttons {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
  }
}
// Lesson modal
.#{$prefix}-lesson-modal {
  .#{$prefix}-modal-window {
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    .#{$prefix}-modal-header {
      border-radius: 0.188rem 0.188rem 0 0;
      padding: 1.125rem;
      background-color: rgba(var(--wpt-lms-primary-100));
      h3 {
        color: rgba(var(--wpt-lms-black));
        font-size: 1.125rem;
      }
    }
    .#{$prefix}-modal-body {
      padding: 0 1.875rem;
    }
    .#{$prefix}-modal-footer {
      padding: 0 0 1.875rem 1.875rem;
    }
  }
}
// Order Export PDF invoice modal
.#{$prefix}-export-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000000;
  background-color: rgba(0, 0, 0, 0.4);
  &-content {
    margin: 5% auto;
    background-color: rgb(var(--wpt-lms-white));
    box-shadow: 0 0.063rem 0.25rem rgba(var(--wpt-lms-primary-800), 0.06);
    border-radius: 0.188rem;
    width: 60%;
    position: relative;
    .close {
      color: rgba(var(--wpt-lms-primary-800));
      position: absolute;
      font-size: 1.75rem;
      font-weight: bold;
      top: -0.313rem;
      right: 0.688rem;
      cursor: pointer;
    }
    .#{$prefix}-tabs {
      display: flex;
      justify-content: space-around;
      box-shadow: 0 0 0.063rem 0.063rem rgba(0, 0, 0, 0.2);
    }
    .#{$prefix}-tabs>* {
      width: 100%;
      color: rgba(var(--wpt-lms-black));
      padding: 1.25rem;
      height: 100%;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.125rem;
      font-weight: 500;
    }
    .#{$prefix}-tabs>*:hover:not(.active) {
      background-color: rgba(var(--wpt-lms-primary-700), 5%);
    }
    .#{$prefix}-tabs>.active {
      color: rgba(var(--wpt-lms-white));
      background-color: rgba(var(--wpt-lms-primary-800));
    }
    #panels {
      ##{$prefix}-invoice {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        ##{$prefix}-invoice-content {
          display: flex;
          flex-direction: column;
          gap: 1.25rem;
          .#{$prefix}-invoice-header {
            h1 {
              margin-bottom: 1.25rem;
              font-size: 1.875rem;
              font-weight: 500;
            }
            .#{$prefix}-invoice-right {
              display: flex;
              flex-direction: column;
              gap: 0.625rem;
              p {
                font-size: 1rem;
                margin: 0;
                strong {
                  color: rgba(var(--wpt-lms-primary-700));
                }
              }
            }
          }
          .#{$prefix}-invoice-body {
            h4 {
              font-size: 1.25rem;
              font-weight: 500;
              margin-bottom: 1.5rem;
            }
          }
        }
      }
      .#{$prefix}-export-options {
        position: relative;
        &-content {
          padding: 1.25rem;
          display: flex;
          flex-direction: column;
          gap: 0.625rem;
          .#{$prefix}-export-options-select {
            display: flex;
            flex-direction: column;
            .form-group {
              display: flex;
              align-items: center;
              gap: 0.625rem;
            }
          }
          .#{$prefix}-export-options-loading {
            opacity: 0;
            z-index: -1;
            visibility: hidden;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(var(--wpt-lms-white));
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            .spinner {
              background: url("../../images/spinner.gif") no-repeat center center;
              z-index: 9;
              display: inline-block;
              visibility: visible;
            }
            &.active {
              opacity: 1;
              z-index: 9;
              visibility: visible;
            }
          }
        }
      }
    }
  }
}
.#{$prefix}-export-modal .panel {
  display: none;
}
.#{$prefix}-export-modal .panel.active {
  display: block;
}
// Backend featured img modal
.media-frame-title {
  h1 {
    padding: 0 16px;
    line-height: 36px;
  }
}
.media-router .media-menu-item {
  height: auto;
}
.media-frame input[type="search"],
.media-frame select,
.media-frame textarea,
.media-frame input[type="text"] {
  box-shadow: 0 0 0 transparent;
  border-radius: 4px;
  border: 1px solid #8c8f94;
  color: #2c3338;
  font-size: 13px;
}
.media-frame input[type="search"] {
  margin: 32px 0 0;
}
.attachment-details h2 {
  margin: 24px 0 8px;
}
// certificate modal
#CertificateModal {
  ul {
    display: flex;
    gap: 0.625rem;
    flex-direction: column;
    li {
      label {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        .wpt-lms-certificate-title {
          display: flex;
          align-items: center;
          gap: 0.625rem;
          justify-content: space-between;
          width: 100%;
          .wpt-lms-certificate-view {
            i {
              color: rgba(var(--wpt-lms-gray));
            }
          }
        }
      }
    }
  }
}
#CertificateImage {
  .#{$prefix}-modal-body {
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }
  .#{$prefix}-modal-footer {
    justify-content: center;
    .#{$prefix}-social-icon {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      button {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        height: auto;
        &:hover {
          background-color: transparent;
          box-shadow: 0;
          border: 0;
        }
      }
    }
  }
}