.dropdownContainer {
  @include min(tablet){ position: relative;}

  z-index: 3;
}

.dropdown {
  cursor: pointer;
  background-color: #fff;
  padding: .45rem;
  border-radius:.8rem;
  box-shadow: 0 20px 24px -4px rgb(27 27 28 / 5%);
}

.dropdownInner{
  cursor: pointer;
  background-color: #F4F4F4;
  padding: .7rem 0.4rem;

  @include flex-direction(row);
  @include flex-align(center, center);

  gap: 1.1rem;
  border-radius:.8rem;

  @include min(tablet){
    &::after{
      @include arrow(rgba(27, 27, 28, 1), 0.8rem, down, false, translateY(-50%));
  
      margin: .8rem .4rem .4rem;
    }
  }
}

@include min(tablet){
  .dropdownActive::after{
    @include arrow(rgba(27, 27, 28, 1), 0.8rem, up, false, translateY(50%));

    margin: .4rem .4rem .8rem;
  }
}

.dropdownOptions {
  position: absolute;
  background-color: #fff;
  top: 100%;
  padding: 1.6rem;
  border-radius: 0.8rem;
  gap: 0.6rem;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  right: 0;
  display: none !important;
  box-shadow: 0 20px 24px -4px rgb(27 27 28 / 5%);
  overflow-y: auto;
  padding-bottom: 50dvh;

  @include flex-align(start, start);

  @include min(tablet) {
    min-width: 18.2rem;
    margin-top: 2.6rem;

    @include flex-align(start, center);

    height: unset;
    padding: .4rem;
  }

  @include min(desktop) {
    margin-right: 0;
  }
}

.marketText{
  @include min(tablet){display: none;}

  color: rgb(27 27 28 / 100%);
  font-size: 1.8rem;
  font-weight: 700;
  width: 100%;
  line-height: 2.9rem;

  @include flex-direction(row);
  @include flex-align(center, center);

  svg{
    cursor: pointer;
    margin-left: auto
  }
}

.marketTitle{text-transform: capitalize}

.marketLink {
  @include flex-align(center, flex-start);

  width: 100%;
  background-color: rgb(244 244 244 / 100%);
  padding: .9rem .4rem;
  border-radius: .8rem;
  color: #1B1B1C;
  text-transform: capitalize;
  gap: .4rem;
  font-weight: 400;

  &:hover{
    font-weight: 700;
  }

  > img {
    width: 1.8rem;
    height: 1.8rem;
  }

  > span {
    font-size: 14px;
    font-style: normal;
    line-height: 22px;
  }

  &::after{
    @include arrow(rgba(27, 27, 28, 1), 0.8rem, right, false, translateY(-50%));

    margin-top: .8rem;
    margin-right: 1.287rem;
    margin-left: auto;
  }
}


.active {
  display: flex !important;
}

.RemoveBorder {
  > div::after {
    transform: rotate(0deg);
  }
}

.triangle {
  @include min(tablet) {
    display: block;
    position: absolute;
    bottom: 99%;
    right: 1.5rem;
    margin-top: -9px;
    background-color: #fff;
    width: 20px;
    height: 20px;
    border-top-right-radius: 5px;
    transform: rotate(300deg) skewX(-30deg) scale(1, 0.866);
    z-index: -1;
    box-shadow: 0 20px 24px -4px rgb(27 27 28 / 5%);

    &::before,
    &::after {
      content: '';
      position: absolute;
      background-color: inherit;
      width: 20px;
      height: 20px;
      border-top-right-radius: 5px;
      box-shadow: 0 20px 24px -4px rgb(27 27 28 / 5%);
    }

    &::before {
      transform: rotate(-135deg) skewX(-45deg) scale(1.414, 0.707) translate(0, -50%);
    }

    &::after {
      transform: rotate(135deg) skewY(-45deg) scale(0.707, 1.414) translate(50%);
    }
  }
}