.header-top-currency {
   display: flex;
   align-items: center;
   height: 42px;
   margin-left: 30px;
   position: relative;
   width: 90px;
   z-index: 100;
}

.currency-switch {
   background: $body-bg-alt;
   cursor: pointer;
   max-height: 40px;
   overflow: hidden;
   position: absolute;
   top: 0;
   right: 0;
   transition: all $transition-speed;
   user-select: none;
   z-index: 11;
   margin-right: 30px;

   .currency {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 42px;
      width: 90px;
      position: relative;
      transition: all .3s;
      color: $black;

      @include haf {
         background: darken($body-bg-alt, 1.5);
         color: $text-dark;
      }

      img {
         margin-right: 10px;
         margin-left: -15px;
      }
   }

   .active::after {
      @include fonticon;

      color: $text-muted;
      content: $icons_caret-down;
      font-size: 9px;
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
   }

   a {
      opacity: 0;
      text-decoration: none;
      z-index: -1;
   }

   &.open {
      max-height: 84px;

      a {
         opacity: 1;
         z-index: 1;
      }

      .active::after {
         content: $icons_caret-up;
      }
   }

   @media screen and (max-width: 675px) {
      .active {
         color: $black;
      }

      .currency {
         margin: auto;
         max-width: 100px;
         left: 0;
         right: 0;
      }
   }
}

@media screen and (max-width: $xl - 1) {
   .currency-switch {
      margin-right: 0;
   }

   .header-top-currency {
      width: 60px;
      margin-right: 0;
   }
}
