// Default variables
$font_size: 14px !default;
$font_size_small: 12px !default;

$input_border_radius: 5px !default;
$input_height: 42px !default;
$input_height_small: 36px !default;
$dropdown_padding: 18px !default;





.woocommerce-ordering{
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
    @include mq('md') {
    justify-content: flex-end;
    margin-top: 0;
    }
}

// Style the dropdown
.nice-select {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  position: relative; 
  outline: none;
  transition: all 0.2s ease-in-out;
  user-select: none;
  white-space: nowrap;
  width: auto;
  &:hover {

  }
  &:active, &:focus {

  }
  // Arrow
  &:after { 
    content: "\e901";
    font-family: 'toucan-font';   
    font-size: 2.4rem;   
    transition: all 0.15s ease-in-out;
  }
  
  &.open {
    @extend :active;
    &:after {
      transform: rotate(-180deg);
    }
    .list {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1) translateY(0);
    }
  }
  &.disabled {

    pointer-events: none;
    &:after { 

    }
  }
  
  // Modifiers
  &.wide {
    width: 100%;
    .list {
      left: 0 !important;
      right: 0 !important;
    }
  }
  &.right {
    float: right;
    .list {
      left: auto;
      right: 0;
    }
  }
  &.small {
    font-size: $font_size_small;
    height: $input_height_small;
    line-height: $input_height_small - 2;
    &:after { 
      height: 4px;
      width: 4px;
    }
    .option {
      line-height: $input_height_small - 2;
      min-height: $input_height_small - 2;
    }
  }
  
  // List and options
  .list {
    background-color: #fff;
    border-radius: 2px;
    box-sizing: border-box;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    padding: 22px 32px;
    pointer-events: none;
    position: absolute;
    top: 100%; 
    width: 270px;
    right: 0;
    transform-origin: 50% 0;
    transform: scale(.75) translateY(- $input_height / 2);
    transition: all .2s cubic-bezier(0.5, 0, 0, 1.25), opacity .15s ease-out;
    z-index: 9;
    display: flex;
    flex-direction: column;
    &:hover .option:not(:hover) {
      background-color: transparent !important;
    }
  }
  .option {
    cursor: pointer;
    line-height: $input_height - 2;
    list-style: none;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.4rem;
    min-height: $input_height - 2;
    outline: none;
    text-align: left;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    position: relative;


    &:before{
      content: "";
      height: 18px;
      width: 18px;
      flex: 0 0 18px;
      border-radius: 50%;
      display: inline-flex;
      margin-right: 7px;
    }

    &:after{
      transition: transform .2s ease-in-out;
      transform: scale(0);
      left: 6px;
      top: 17px;
      border-radius: 50%;
      height: 6px;
      width: 6px;
      content: "";
      line-height: 1;
      text-align: center;
      justify-content: center;
      font-size: 1.6rem;
      align-items: center;
      position: absolute;
    }
    &:hover:after, &.focus:after, &.selected.focus:after { 
      transform: scale(1);
    }
    &.selected { 
    
    }
    &.disabled {
      background-color: transparent;
      cursor: default;
    }
  }
}

// Use display instead of opacity for IE <= 10
.no-csspointerevents .nice-select {
  .list {
    display: none;
  }
  &.open {
    .list {
      display: block;
    }
  }
}
select.orderby{
  display: none;
}