@use "../custom" as *;

.fastOrder {
  background-color: #161d26;
  border-radius: 1rem;
  padding: 0.875rem;
  max-width: 18.75rem;
  margin: auto;
  position: relative;
  margin-top: 75px;
  

  &::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: no-repeat url("../icons/3d-loading.svg");
    background-size: contain;
    background-position: center;
    top: -80px;
    left: -90px;
    z-index: -1;
    animation: rotate 16s infinite linear reverse;
  }
  &::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: no-repeat url("../images/hero-character.webp");
    background-size: contain;
    background-position: center;
    top: -70px;
    right: -234px;
    z-index: -1;
  }

  &__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    span {
      font-weight: 700;
      font-size: 0.75rem;
      color: #fff;
      font-family: $roobert;
    }
  }

  &__wrapper {
    margin-top: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }

  &__item {
    position: relative;
    width: 100%;
    height: 5rem;

    &-button {
      background-color: #12181f;
      border-radius: 1rem;
      padding: 1rem;
      border: none;
      outline: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-right: 2rem;
      width: 100%;
      position: relative;
      height: 100%;
      cursor: pointer;

      &::after {
        content: "";
        width: 0.875rem;
        height: 0.875rem;
        right: 0.875rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: no-repeat url("../icons/chevron-bottom.svg");
        background-position: center;

        transition: all ease-in-out 200ms;
      }

      &.show::after {
        transform: rotate(180deg);
      }
    }

    &-list {
      position: absolute;
      top: calc(100% + 1rem);
      background-color: #12181f;
      width: 100%;
      z-index: 9;
      border-radius: 1rem;
      height: 150px;
      overflow: auto;
      display: none;
      margin: 0;
      padding: 8px;
      flex-direction: column;
      gap: 0.25rem;

      &::-webkit-scrollbar {
        width: 0.3125rem;
        height: 0.5rem;
      }
      &::-webkit-scrollbar-button {
        width: 1.75rem;
        height: 1.75rem;
      }
      &::-webkit-scrollbar-thumb {
        background: #424242;
        border-radius: 100vh;
      }
      &::-webkit-scrollbar-track {
        background: #12181f;
        border-radius: 100vh;
      }

      &::-webkit-scrollbar-corner {
        background: transparent;
      }

      &.show {
        display: flex;
      }

      li {
        color: rgba($white, 0.8);
        font-family: $roobert;
        font-size: 0.75rem;
        padding: 6px 12px;
        background-color: rgba($white, 0.05);
        border-radius: 0.375rem;
        cursor: pointer;

        &:hover {
          color: $white;
        }
      }
    }

    &-subtitle {
      font-weight: 400;
      font-size: 0.75rem;
      color: #7c8499;
      font-family: $roobert;
    }
    &-title {
      font-weight: 600;
      font-size: 0.88rem;
      color: #fff;
      font-family: $roobert;
    }
  }

  &__submit {
    width: 100%;

    button {
      width: 100%;
      background-color: #0caf60;
      border-radius: 0.875rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      outline: none;
      padding: 0.875rem 0;
      font-weight: 700;
      font-size: 0.88rem;
      color: #fff;
      font-family: $roobert;
      &:hover {
        background-color: #10be6a;
      }
    }
  }
}
