// Quick Access add services modal
@import "src/assets/scss/variables";
:root {
  --overlay-bg:rgb(12, 52, 61, 0.3);
}
:root[data-theme="dark"] {
  --overlay-bg:rgba(0, 0, 0, 0.5);
}
$overlay-bg:var(--overlay-bg);
.qa-modal-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: $overlay-bg;
    z-index: 9999;

    #dua-modal {

      width: 1444px;
      position: absolute;
      max-width: 85vw;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: $app-background;
      opacity: 1;
      padding: 2.7rem 2.2rem;
      border-radius: 10px;
      max-height: 550px;
      overflow-y: hidden;
      //
      //@media (max-width: 1750px) {
      //  width: 1000px;
      //}
      //
      //@media (max-width: 1600px) {
      //  width: 800px;
      //}


      .dua-modal-header {
        margin: 0 0 9rem 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .dua-modal-header-left {
          display: flex;
          align-items: center;

          h3, p {
            color: $title-color;
            font-size: 1.5rem;
            font-weight: bold;
            letter-spacing: 0.3px;
          }

          h3 {
            margin: 0 0.7rem 0 1.1rem;
          }
        }

        .dua-modal-close-btn-container {
          .close-btn {
            outline: none !important;
            border: none;
            background-color: $app-background;
          }
        }
      }

      .modal-searchbar-container {
        margin-bottom: 7rem;
        display: flex;
        justify-content: center;


        input {
          width: 58rem;
          padding-bottom: 0.95rem;
          border: none;
          border-bottom: 1px solid #707070;
          font-size: 1.8rem;
          font-weight: 300;
          color: $text-color;
          outline: none !important;
          background: transparent;

          &::placeholder {
            text-align: center;
            font-size: 1.8rem;
            font-weight: 100;
            color: $text-color;
          }

          &:focus {
            border-bottom: 1px solid #1a73e8;
          }
        }
      }

      .qa-modal-content-container {
        padding: 0 2rem 4.4rem 2rem;
        margin-bottom: 2.5rem;
        display: grid;
        grid-template-columns: 430px 430px 430px;
        column-gap: 2rem;
        row-gap: 1.3rem;
        cursor: pointer;
        max-height: 220px;
        overflow-y: auto;

        &::-webkit-scrollbar {
          width: 5px;
          height: 50% !important;
          transform: scaleY(0.5) !important;
        }

        /* Track */
        &::-webkit-scrollbar-track {
          background: #e9f0f9;
          border-radius: 10px;
        }

        /* Handle */
        &::-webkit-scrollbar-thumb {
          background: #ccc;
          border-radius: 10px;
        }

        /* Handle on hover */
        &::-webkit-scrollbar-thumb:hover {
          background: transparent;
        }

        .qa-modal-app-container {
          width: 100%;
          background-color: $grayish-box-background;
          border-radius: 5px;
          padding: 1.2rem 1.8rem 1.2rem 0;

          .qa-modal-app {
            margin-left: 3rem;

            p {
              font-size: 1.4rem;
              color: $title-color;

              .qa-app-role {
                font-weight: bold;
              }
            }

            img {
              display: none;
            }
          }

          &:hover {
            background-color: #1a73e8;

            .qa-modal-app {
              display: flex;
              align-items: center;
              justify-content: space-between;

              p {
                color: $white;
              }

              img {
                display: block;
              }
            }
          }

        }

        @media (max-width: 1750px) {
          grid-template-columns: auto auto;
        }
      }

      .qa-modal-footer {
        display: flex;
        justify-content: flex-end;

        .qa-modal-footer-btn {
          font-size: 1.3rem;
          background-color: #040059;
          color: $white;
          letter-spacing: 0;
          padding: 1.2rem 2.9rem;
          margin-left: 1.86rem;
          border-radius: 10px;
          transition: 0.5s;
          white-space: nowrap;
        }
      }

      /* Track */
      &::-webkit-scrollbar-track {
        background: #e9f0f9;
        border-radius: 10px;
        margin-top: 70px;
        margin-bottom: 20px;
      }

      /* Handle */
      &::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
      }

      /* Handle on hover */
      &::-webkit-scrollbar-thumb:hover {
        background: transparent;
      }
    }
  img{
    filter:$svg-default;
  }
}


