/* Currency switchers */
.elementor-widget-container:has(.customCurrencySwitcher){
  background-color: transparent !important;
}
.customCurrencySwitcher{
  position:relative;
  user-select: none;
  display: inline-block;
  &.customCurrencySwitcher--header{
    color:#000000;
    .customCurrencySwitcher__current{
      height: 36px;
      border-radius: 36px;
      border:solid 1px #CB0D00;
      background-color: #FFFFFF;
      z-index: 3;
      &:after{
        height: 0;
        width: 0;
        border-top:solid 7px #000000;
        border-bottom:solid 7px transparent;
        border-right:solid 6px transparent;
        border-left:solid 6px transparent;
        top: calc(50% + 3px);
      }
    }
    .customCurrencySwitcher__list{
      border:solid 1px #CB0D00;
      background: #FFFFFF;
      top: calc(100% - 25px);
      z-index: 2;
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
      .customCurrencySwitcher__list__item{
        padding:2px 10px 5px;
        &:first-child{
          padding-top: 23px;
        }
        &:hover, &:focus{
          background-color: rgba(0,0,0,.2)
        }
      }
    }
    .customCurrencySwitcher__symbol{
      width: 22px;
      height: 22px;
      border-radius: 22px;
      font-size: 16px;
      line-height: 16px;
      vertical-align: middle;
    }
  }
  &.customCurrencySwitcher--footer{
    color:#FFFFFF;
    .customCurrencySwitcher__current{
      height: 34px;
      border-radius: 2px;
      border:solid 1px rgba(255,255,255,.3);
      background-color: transparent;
      text-transform: uppercase;
      &:after{
        width:7px;
        height:7px;
        border-bottom: solid 1px #FFFFFF;
        border-right: solid 1px #FFFFFF;
        rotate:45deg;
      }
    }
    .customCurrencySwitcher__list{
      border:solid 1px rgba(255,255,255,.3);
      .customCurrencySwitcher__list__item{
        &:hover, &:focus{
          background-color: rgba(255,255,255,.2);
        }
        &:not(:first-child){
          border-top-color: rgba(255,255,255,.3);
        }
      }
    }
    .customCurrencySwitcher__symbol{
      width: 18px;
      height: 18px;
      border-radius: 18px;
      font-size: 12px;
      line-height: 12px;
      vertical-align: middle;
    }
  }
  .customCurrencySwitcher__current{
    cursor: pointer;
    display: inline-flex;
    gap:3px;
    align-items: center;
    padding:8px 28px 8px 10px;
    margin:0;
    position: relative;
    flex-shrink: 0;
    &:after{
      content:"";
      display: block;
      position: absolute;
      right:12px;
      top:50%;
      translate:0 -50%;
      pointer-events: none;
    }
  }
  .customCurrencySwitcher__list{
    min-width: 100%;
    position: absolute;
    top:50%;
    left:0;
    display: flex;
    flex-direction: column;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition:.2s;
    background-color: #061127;
    .customCurrencySwitcher__list__item{
      transition:.2s;
      padding:8px 10px;
      display: inline-flex;
      gap:3px;
      align-items: center;
      color:currentColor;
      white-space: nowrap;
      min-width: 100%;
      &:not(:first-child){
        border-top: solid 1px;
      }
    }
  }
  &:hover, &:focus-visible{
    &.customCurrencySwitcher--footer .customCurrencySwitcher__current:after{
      rotate:-135deg;
      top:55%;
    }
    &.customCurrencySwitcher--header{
      .customCurrencySwitcher__list{
        top: calc(100% - 20px);
      }
    }
    .customCurrencySwitcher__list{
      opacity: 1;
      pointer-events: all;
      top:100%;
    }
  }
  .customCurrencySwitcher__symbol{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border:solid 1px currentColor;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    position: relative;
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: currentColor;
    &.customCurrencySwitcher__symbol--EUR{
      mask-image:url(./img/picto_euro.svg);
    }
    &.customCurrencySwitcher__symbol--USD{
      mask-image:url(./img/picto_dollar.svg);
    }
  }
}