.woocommerce-multi-currency {
  img {
    max-width: 100%;
  }

  .wmc-currency.wmc-active a {
    cursor: default !important;
  }
}

.woocommerce-multi-currency.wmc-sidebar {
  position: fixed;
  z-index: 9999999999;
  -webkit-transition: all .25s ease;
  -moz-transition: all .25s ease;
  -ms-transition: all .25s ease;
  -o-transition: all .25s ease;
  top: 50%;
  transform: translateY(-50%);
  font-family: Arial;
  max-height: 100vh;
  overflow: auto;

  .wmc-title {
    text-align: center;
    visibility: hidden;
    color: #fff;
    font: 300 normal 16px Arial;
    margin: 0;
    text-transform: uppercase;
    background: #000000;
    padding: 16px 0;
    transition: all .25s ease;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    width: 250px;
  }

  .wmc-list-currencies {
    .wmc-sidebar-open {
      position: relative;
      height: 40px;
      width: 40px;
      //background: rgba(153, 153, 153, 0.2);
      border-radius: 50%;
      margin: 10px 0 0;
      line-height: 40px;
      cursor: pointer;
      text-align: center;
      //color: #ccc;
      font-weight: 700;
      font-size: 28px;
      display: none;
    }
  }

  &::-webkit-scrollbar {
    width: 0;
  }

  &::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  &::-webkit-scrollbar-thumb {
    background: #cecece;
    border-radius: 20px;

    &:hover {
      background: #555;
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-currency-flag {
  .wmc-list-currencies .wmc-sidebar-open {
    margin: 10px 10px 0;
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-hover {
  .wmc-title {
    display: block !important;
    visibility: visible;
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-collapse.wmc-hover {
  .wmc-currency {
    display: block !important;
    visibility: visible;
  }

  .wmc-list-currencies {
    .wmc-sidebar-open {
      display: none;
    }
  }
}

.wmc-approximately {
  line-height: 1.5;
  white-space: nowrap;
  padding-left: 5px;
}

.woocommerce-multi-currency.wmc-sidebar.style-1 {
  .wmc-list-currencies {
    width: 250px;
    display: inline-block;
    font-size: 0;

    .wmc-currency {
      background: #000000;
      text-transform: uppercase;
      letter-spacing: 1px;
      width: 250px;
      z-index: 1000;
      font: normal normal 10px Arial;
      margin: 4px 0 0;
      transition: all .25s ease;
      position: relative;
      cursor: pointer;
      clear: both;
      display: inline-block;
      height: 40px;

      &:hover {
        background: #f78080;
      }

      a {
        color: #fff;
        text-decoration: none;
        text-align: center;
        line-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
      }

      .wmc-currency-content-left {
        text-align: center;
        width: 40px;
        line-height: 40px;
        display: inline-flex;
        justify-content: center;
      }

      .wmc-currency-content-right {
        width: calc(100% - 40px);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        line-height: 40px;
      }

      span.wmc-active-title {
        color: #fff;
        text-decoration: none;
        text-align: center;
        line-height: 40px;
        vertical-align: top;
        display: inline-block;
        width: 170px;
        box-sizing: border-box;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }

    .wmc-currency.wmc-active {
      position: relative;
      background: #f78080;
    }

    .wmc-sidebar-open {
      &:before {
        content: "+";
        width: 100%;
        text-align: center;
      }
    }
  }

  &.wmc-currency-flag {
    .wmc-list-currencies {

      .wmc-currency {

        .wmc-currency-content-left {
          width: 60px;
        }

        .wmc-currency-content-right {
          width: calc(100% - 60px);
        }
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-switcher-layout-full {

  * {
    box-sizing: border-box;
  }

  .wmc-title {
    margin-bottom: 5px;
    border-radius: 6px;
  }

  .wmc-list-currencies {

    .wmc-currency {
      margin: unset;

      &:nth-child(2) {
        border-radius: 6px 6px 0 0;
      }

      &:has( + :last-child) {
        border-radius: 0 0 6px 6px;
      }

      a.wmc-currency-redirect {
        //margin: 0 3px;
        border-radius: 6px;
        max-width: 100%;
        width: unset;
      }

      &:hover {
        a.wmc-currency-redirect {
          //radius
        }
      }

      .vi-flag-64 {
        border-radius: 6px;
      }
    }
  }

  &.wmc-hover {
    .wmc-list-currencies {

      .wmc-currency {

        a.wmc-currency-redirect {
          //border-style: solid;
          //border-radius: 0 6px 6px 0;
          //border-width: 0 0 0 6px;
        }
      }

      .wmc-currency {

        &:not(.wmc-active) {
          &:hover {
            a.wmc-currency-redirect {
              //border-radius: 0 6px 6px 0;
            }
          }
        }
      }
    }
  }

  &.wmc-collapse {

    &:not(.wmc-hover) {

      .wmc-list-currencies {

        .wmc-currency {
          background: unset !important;
        }
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-switcher-layout-hoverdt {
  overflow-x: hidden;

  &.wmc-right {
    right: 0;

    &.wmc-currency-flag {
      right: 0;
    }

    .wmc-list-currencies {

      .wmc-currency {
        float: right;

        a {
          flex-direction: row-reverse;
          justify-content: end;
        }
      }
    }

    &:not(.wmc-hover) {

      .wmc-list-currencies .wmc-currency a {
        flex-direction: row-reverse;
      }
    }
  }

  &.wmc-left {
    left: 0;

    &.wmc-currency-flag {
      left: 0;
    }

    .wmc-list-currencies .wmc-currency a {
      flex-direction: row;
      justify-content: start;
    }

    &:not(.wmc-hover) {

      .wmc-list-currencies .wmc-currency a {
        flex-direction: row;
      }
    }
  }

  .wmc-list-currencies {
    display: block;
    width: fit-content;

    .wmc-currency {
      display: block;
      width: fit-content;
      background-color: unset;

      &.wmc-active {
        background-color: unset;

        a {

          >span {
            background-color: #f78080;
          }
        }
      }

      &:hover {
        background-color: unset;
      }

      a {
        gap: 10px;

        &:hover {

          .wmc-currency-content-dtdetail {
            display: block;
            visibility: visible;
            opacity: 1;
            transform: rotateY(0);
          }
        }

        >span {
          background-color: #000000;
          padding-left: 10px;
          padding-right: 10px;
        }

        .wmc-currency-content-dtname {

          span {
            width: 30px !important;
          }
        }

        .wmc-currency-content-dtdetail {
          //padding-right: 9px;
          //height: 40px;
          //margin: -32px 78px;
          //padding: 8px;

          display: none;
          visibility: hidden;
          opacity: 0;
          white-space: nowrap;
          float: right;
          text-align: center;
          color: #fff;
          transform-origin: 0;
          transform: rotateY(45deg);
          border-radius: 5px;
          transition: all .5s ease .300ms;
        }
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-switcher-layout-single {
  position: fixed;
  z-index: 99999;
  //overflow-x: visible;
  overflow: visible;
  //overflow-y: auto;
  width: 45px;

  * {
    box-sizing: border-box;
  }

  &.wmc-right {
    right: 0;

    &.wmc-currency-flag {
      right: 0;

      .wmc-list-currencies {

        .wmc-currency {
          -webkit-border-radius: 30px 0 0 30px;
          -moz-border-radius: 30px 0 0 30px;
          border-radius: 30px 0 0 30px;
        }
      }
    }

    .wmc-list-currencies {

      .wmc-currency {
        padding: 2px 2px 2px 0;
        -webkit-border-radius: 30px 0 0 30px;
        -moz-border-radius: 30px 0 0 30px;
        border-radius: 30px 0 0 30px;

        &:hover {
          -webkit-transform: translate(-210px, 0);
          -moz-transform: translate(-210px, 0);
          -ms-transform: translate(-210px, 0);
          -o-transform: translate(-210px, 0);
          transform: translate(-210px, 0);
        }

        .wmc-currency-content-left {
          margin-left: 7px;
          margin-right: 4px;
        }
      }

      .wmc-sidebar-open {
        float: right;
      }
    }
  }

  &.wmc-left {
    left: 0;

    &.wmc-currency-flag {
      left: 0;

      .wmc-list-currencies {

        .wmc-currency {
          -webkit-border-radius: 0 30px 30px 0;
          -moz-border-radius: 0 30px 30px 0;
          border-radius: 0 30px 30px 0;
        }
      }
    }

    .wmc-list-currencies {

      .wmc-currency {
        padding: 2px 0 2px 2px;
        -webkit-border-radius: 0 30px 30px 0;
        -moz-border-radius: 0 30px 30px 0;
        border-radius: 0 30px 30px 0;
        left: -215px;

        &:hover {
          -webkit-transform: translate(210px, 0);
          -moz-transform: translate(210px, 0);
          -ms-transform: translate(210px, 0);
          -o-transform: translate(210px, 0);
          transform: translate(210px, 0);
        }

        //-webkit-transform: translate( 210px, 0 );
        //-moz-transform: translate( 210px, 0 );
        //-ms-transform: translate( 210px, 0 );
        //-o-transform: translate( 210px, 0 );
        //transform: translate( 210px, 0 );

        a {
          flex-direction: row-reverse;
        }

        .wmc-currency-content-left {
          margin-left: 4px;
          margin-right: 7px;
        }

        span {
          float: unset;
        }
      }

      .wmc-sidebar-open {
        float: unset;
      }
    }
  }

  .wmc-list-currencies {
    width: 100%;

    .wmc-currency {
      //margin: unset;
      //width: 100%;

      height: 44px;
      font-size: 14px;
      vertical-align: middle;
      display: block;
      margin: 5px;
      background: rgba(0, 0, 0, .36);
      width: 250px;
      text-align: right;
      -webkit-transition: all .70s;
      -moz-transition: all .70s;
      -ms-transition: all .70s;
      -o-transition: all .70s;
      transition: all .70s;

      .wmc-currency-redirect {
        height: 40px;

        .wmc-currency-content-left {
          line-height: 26px;
          font-size: 10px;
          vertical-align: middle;
          text-align: center;
          display: inline-block;
          color: #000;
          background: #fff;
          padding: 2px;
          overflow: hidden;
          -webkit-border-radius: 50%;
          -moz-border-radius: 50%;
          border-radius: 50%;
          width: 30px !important;
          height: 30px !important;
          -webkit-transform: rotate(0deg);
          -moz-transform: rotate(0deg);
          -ms-transform: rotate(0deg);
          -o-transform: rotate(0deg);
          transform: rotate(0deg);


        }

        .wmc-currency-content-right {
          display: inline-block;
          width: calc(100% - 30px) !important;

          .wmc-currency-content-right-name {
            font-size: 10px;
          }

          .wmc-currency-content-right-flag {
            height: auto !important;
            width: 35px !important;
            display: inline-block;
            vertical-align: middle;

            .vi-flag-48 {

            }
          }
        }

        //&:nth-child(2) {
        //  border-radius: 6px 6px 0 0;
        //}
        //
        //&:has( + :last-child) {
        //  border-radius: 0 0 6px 6px;
        //}
        //
        //a.wmc-currency-redirect {
        //  margin: 0 3px;
        //  border-radius: 6px;
        //  max-width: 100%;
        //  width: unset;
        //}
        //
        //&:hover {
        //  a.wmc-currency-redirect {
        //    //radius
        //  }
        //}
      }
    }

    .wmc-sidebar-open {
      margin: 10px 0 0;
    }
  }

  //&.wmc-hover {
  //  .wmc-list-currencies {
  //
  //    .wmc-currency {
  //
  //      a.wmc-currency-redirect {
  //        border-style: solid;
  //        //border-radius: 0 6px 6px 0;
  //        //border-width: 0 0 0 6px;
  //      }
  //    }
  //
  //    .wmc-currency {
  //
  //      &:not(.wmc-active) {
  //        &:hover {
  //          a.wmc-currency-redirect {
  //            //border-radius: 0 6px 6px 0;
  //          }
  //        }
  //      }
  //    }
  //  }
  //}

  //&.wmc-collapse {
  //
  //  &:not(.wmc-hover) {
  //
  //    .wmc-list-currencies {
  //
  //      .wmc-currency {
  //        background: unset !important;
  //      }
  //    }
  //  }
  //}
}

.woocommerce-multi-currency.wmc-sidebar.wmc-collapse.style-1 {
  .wmc-list-currencies {
    .wmc-currency {
      &:not(.wmc-active) {
        display: none;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.style-1.wmc-left {
  .wmc-list-currencies {
    .wmc-currency {
      text-align: right;
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-left {
  .wmc-list-currencies {
    .wmc-sidebar-open {
      float: right;
    }

    .wmc-currency {
      span {
        display: inline-block;
        float: right;
      }
    }
  }

  left: -210px;

  &.wmc-currency-flag {
    left: -190px;
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-left:not(.wmc-hover) {
  .wmc-list-currencies {
    .wmc-currency {
      a {
        flex-direction: row-reverse;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-collapse {
  .wmc-list-currencies {
    .wmc-sidebar-open {
      display: block;
    }
  }
}

.woocommerce-multi-currency.wmc-price-switcher {
  a {
    &:hover {
      i {
        transform: scale(1.05);
      }
    }

    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    background: #eee;
    font-size: 0;

    span {
      padding: 0 15px 0;
      display: inline-block;
      //vertical-align: middle;
      align-content: space-evenly;
      font-size: 16px;
    }
  }

  font-size: 16px;
  position: relative;
  cursor: context-menu;
  z-index: 1;
  margin: 5px 0;
  display: inline-block;

  .wmc-current-currency {
    display: inline-block;
    padding: 0 20px 5px 0;
    position: relative;

    &:before {
      content: '\25bc';
      position: absolute;
      right: 0;
      top: 15%;
      font-size: 14px;
    }
  }

  .wmc-sub-currency {
    display: inline-block;
    opacity: 0;
    position: absolute;
    top: -50px;
    visibility: hidden;
    transition: all .25s ease;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    left: 0;
    max-height: 60vh;
    overflow: auto;

    &.wmc-show-up {
      max-height: 30vh;
    }
  }

  img {
    display: inline-block;
    max-width: 40px;
    vertical-align: top;
  }

  .wmc-currency {
    padding: 0;
    margin-bottom: 3px;

    a {
      display: flex;
      line-height: 2;
    }
  }

  &.wmc-switcher-layout-full {

    .wmc-sub-currency {
      border-radius: 6px;
    }

    .wmc-currency {
      margin: unset;

      a {
        padding: 2px 0;
      }
    }
  }
}

/*Scrollbar - firefox does not support scrollbar*/
.woocommerce-multi-currency.wmc-shortcode[data-layout="plain_vertical"] .wmc-sub-currency::-webkit-scrollbar,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout7"] .wmc-sub-currency::-webkit-scrollbar,
.woocommerce-multi-currency.wmc-price-switcher .wmc-sub-currency::-webkit-scrollbar {
  width: 7px;
}

.woocommerce-multi-currency.wmc-shortcode[data-layout="plain_vertical"] .wmc-sub-currency::-webkit-scrollbar-track,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout7"] .wmc-sub-currency::-webkit-scrollbar-track,
.woocommerce-multi-currency.wmc-price-switcher .wmc-sub-currency::-webkit-scrollbar-track {
  background: #f1f1f1;
  margin-top: 0;
  margin-bottom: 0;
}

.woocommerce-multi-currency.wmc-shortcode[data-layout="plain_vertical"] .wmc-sub-currency::-webkit-scrollbar-thumb,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout7"] .wmc-sub-currency::-webkit-scrollbar-thumb,
.woocommerce-multi-currency.wmc-price-switcher .wmc-sub-currency::-webkit-scrollbar-thumb {
  background: #cecece;
  border-radius: 20px;
}

.woocommerce-multi-currency.wmc-shortcode[data-layout="plain_vertical"] .wmc-sub-currency::-webkit-scrollbar-thumb:hover,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout7"] .wmc-sub-currency::-webkit-scrollbar-thumb:hover,
.woocommerce-multi-currency.wmc-price-switcher .wmc-sub-currency::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.woocommerce-multi-currency.wmc-shortcode[data-layout="plain_vertical"] .wmc-sub-currency,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout4"] .wmc-sub-currency,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout5"] .wmc-sub-currency,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout7"] .wmc-sub-currency,
.woocommerce-multi-currency.wmc-shortcode[data-layout="layout8"] .wmc-sub-currency {
  max-height: 40vh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none; //Firefox only
  height: fit-content;
}

.woocommerce-multi-currency.wmc-price-switcher {
  &:not(.wmc-currency-trigger-click) {
    &:hover {
      .wmc-sub-currency {
        visibility: visible;
        opacity: 1;
        top: 45px;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-price-switcher.wmc-currency-trigger-click.wmc-currency-trigger-click-active {
  .wmc-sub-currency {
    visibility: visible;
    opacity: 1;
    top: 45px;
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-currency-symbol {
  .wmc-list-currencies {
    .wmc-currency {
      span.wmc-currency-content-left {
        font-size: 16px;
        font-weight: 300;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-currency-flag.wmc-left {
  .wmc-list-currencies {
    .wmc-currency {
      border-radius: 0 5px 5px 0;
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-currency-flag.wmc-right {
  .wmc-list-currencies {
    .wmc-currency {
      border-radius: 5px 0 0 5px;
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-currency-flag.wmc-currency-symbol {
  .wmc-list-currencies {
    .wmc-currency {
      a {
        font-size: 16px;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-right {
  right: -210px;

  &.wmc-currency-flag {
    right: -190px;
  }
}

.woocommerce-multi-currency.wmc-sidebar.wmc-right.wmc-hover {
  right: 0;
}

.woocommerce-multi-currency.wmc-sidebar.wmc-left.wmc-hover {
  left: 0;
}

.woocommerce-multi-currency.wmc-shortcode {
  img {
    vertical-align: middle;
    height: 24px;
    width: 24px;
    margin: 0;
    display: inline-block;
    padding: 0;
  }

  .wmc-currency {
    a {
      text-decoration: none !important;
      box-shadow: none;
      margin: 0;
      padding: 0;
      color: inherit;

      &:hover {
        font-weight: bold;
      }
    }
  }

  .wmc-currency-wrapper {
    .wmc-current-currency-arrow {
      position: absolute;
      line-height: 1.5;
      right: 3px;
      padding: 0;
      top: 50%;
      transform: translateY(-50%);
      font-size: 15px;

      &::after {
        content: '\25bc';
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode[data-layout="layout3"] {
  .wmc-currency {
    a {
      display: flex;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.flag-large {
  img {
    width: 64px;
    height: auto;
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-horizontal {
  display: inline-block;
  font-size: 0;
  vertical-align: top;
  width: 100%;

  .wmc-currency {
    a {
      font-weight: 300;
    }

    display: inline-block;
    padding: 5px;
    vertical-align: top;
    max-width: 50%;
    font-size: 16px;
  }

  .wmc-currency.wmc-active {
    a {
      font-weight: 700;
    }
  }
}

.wp-block-group {

  .woocommerce-multi-currency.wmc-shortcode {

    * {
      box-sizing: border-box;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical {
  box-sizing: border-box;
  display: inline-block;
  cursor: context-menu;

  .wmc-currency-wrapper {
    position: relative;

    span.wmc-current-currency {
      position: relative;
      padding: 5px 20px;
      display: flex;
      font-weight: 700;
      border: 1px solid #e5e5e5;
      width: calc(100% + 2px);
    }

    .wmc-sub-currency {
      .wmc-currency {
        position: relative;
        padding: 5px 20px;

        a {
          -webkit-transition: all .25s ease;
          -moz-transition: all .25s ease;
          -ms-transition: all .25s ease;
          -o-transition: all .25s ease;
          font-weight: 400;
          display: flex;
          align-items: center;

          &:hover {
            font-weight: 700;
          }

          span {
            display: inline-block;
            vertical-align: middle;
            padding: 0 5px;
          }
        }
      }

      position: absolute;
      top: 100%;
      width: calc(100% + 2px);
      background: #fff;
      border: 1px solid #e5e5e5;
      text-align: left;
      -webkit-transition: all .25s ease;
      -moz-transition: all .25s ease;
      -ms-transition: all .25s ease;
      -o-transition: all .25s ease;
      display: none;
      border-top: none;
      z-index: 99;

      .wmc-currency.wmc-active {
        a {
          font-weight: 700;
        }
      }
    }
  }

  &.wmc-dropdown-direction-top {

    .wmc-currency-wrapper {

      .wmc-sub-currency {
        bottom: 100%;
        top: unset;
      }
    }
  }

  a {
    white-space: nowrap;
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical[data-layout="layout7"] {
  .wmc-currency-wrapper {
    .wmc-sub-currency {
      .wmc-currency {
        display: flex;
        justify-content: center;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical.wmc-currency-trigger-click.wmc-currency-trigger-click-active {
  .wmc-currency-wrapper {
    .wmc-sub-currency {
      display: block;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical {
  &:not(.wmc-currency-trigger-click) {
    .wmc-currency-wrapper {
      &:hover {
        .wmc-sub-currency {
          display: block;
        }
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical.layout4 {
  .wmc-currency-wrapper {
    .wmc-sub-currency {
      &::-webkit-scrollbar {
        width: 0;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical.layout5 {
  .wmc-currency-wrapper {
    span.wmc-current-currency {
      span {
        padding: 0 5px;
      }
    }

    .wmc-sub-currency {
      &::-webkit-scrollbar {
        width: 0;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode[data-layout="layout8"] {
  .wmc-currency-wrapper {
    .wmc-sub-currency {
      &::-webkit-scrollbar {
        width: 0;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-horizontal.layout6 {
  .wmc-currency {
    font-size: 16px;
  }
}

.woocommerce-multi-currency.wmc-shortcode.wmc-shortcode-fixed.top-left {
  top: 0;
  left: 0;
  bottom: unset;
  right: unset;
}

.woocommerce-multi-currency.wmc-shortcode.wmc-shortcode-fixed.top-right {
  top: 0;
  left: unset;
  bottom: unset;
  right: 0;
}

.woocommerce-multi-currency.wmc-shortcode.wmc-shortcode-fixed.bottom-left {
  top: unset;
  left: 0;
  bottom: 0;
  right: unset;

  .wmc-currency-wrapper {
    .wmc-sub-currency {
      top: unset;
      bottom: 100%;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.wmc-shortcode-fixed.bottom-right {
  top: unset;
  left: unset;
  bottom: 0;
  right: 0;

  .wmc-currency-wrapper {
    .wmc-sub-currency {
      top: unset;
      bottom: 100%;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.wmc-shortcode-fixed {
  position: fixed;
  z-index: 99999999;
  width: auto;
}

.wmc-sub-currency {
  .wmc-hidden {
    display: none !important;
  }
}

.woocommerce-multi-currency.layout10 {
  .wmc-text {
    vertical-align: top;
    padding-left: 5px;
  }
}

.wmc-current-currency-inner.wmc-active {
  display: block;
}

.woocommerce-multi-currency.wmc-shortcode.vertical-currency-symbols-circle {
  display: inline-block;
  cursor: context-menu;

  .wmc-currency-wrapper {
    position: relative;

    .wmc-sub-currency {
      position: absolute;
      top: 100%;
      width: fit-content;
      -webkit-transition: all .25s ease;
      -moz-transition: all .25s ease;
      -ms-transition: all .25s ease;
      -o-transition: all .25s ease;
      transition: all .25s ease;
      display: none;
      z-index: 999999;
    }
  }

  .wmc-currency {
    border-radius: 50px;
    width: 38px;
    height: 38px;
    text-align: center;
    margin-bottom: 3px;
    line-height: 37px;
    font-size: 20px;
  }

  .wmc-current-currency {
    border-radius: 50px;
    width: 38px;
    height: 38px;
    text-align: center;
    margin-bottom: 3px;
    line-height: 37px;
    font-size: 20px;
    display: inline-block;
  }

  .wmc-fix-font {
    font-size: 15px;
  }
}

.woocommerce-multi-currency.wmc-shortcode.vertical-currency-symbols-circle {
  &:not(.wmc-currency-trigger-click) {
    .wmc-currency-wrapper {
      &:hover {
        .wmc-sub-currency {
          display: block;
          overflow: hidden;
        }
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.vertical-currency-symbols-circle.wmc-currency-trigger-click.wmc-currency-trigger-click-active {
  .wmc-currency-wrapper {
    .wmc-sub-currency {
      display: block;
      overflow: hidden;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.layout9 {
  .wmc-current-currency {
    a {
      font-weight: bold;
    }
  }

  .wmc-currency-wrapper {
    font-size: 0;
  }

  .wmc-currency {
    a {
      padding: 0 14px;
    }

    font-size: 16px;
    display: inline-block;
    border-radius: 50px;
    min-width: 60px;
    text-align: center;
    margin-right: -30px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 0;
  }

  .wmc-left {
    text-align: left;
  }

  .wmc-right {
    text-align: right;
  }
}

.html.custom.html_topbar_right.has-child {
  padding: 0;
  font-size: .97em;
}

.wmc-flatsome-mobile-nav.wmc-current-currency {
  padding: 15px 0 15px 20px;
  flex-grow: 1;
}

.woocommerce-multi-currency {
  .wmc-show-up {
    top: unset !important;
    bottom: 100%;
    border-bottom: none !important;
  }
}

.woocommerce-multi-currency {
  &:not([data-layout="layout8"]) {
    .wmc-show-up {
      border-top: 1px solid #e5e5e5 !important;
    }
  }
}

.wmc-custom-checkout-left {
  float: left;
}

.wmc-custom-checkout-right {
  float: right;
  color: red;

  + {
    .wmc-approximately {
      float: right;
    }
  }

  .amount {
    float: none !important;
  }
}

.woocommerce-multi-currency.wmc-shortcode {
  .wmc-current-currency {
    .wmc-open-dropdown-currencies {
      display: flex;
      align-items: center;
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      width: 10px;

      &:after {
        content: "";
        border-width: 0 1px 1px 0;
        display: inline-block;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        border-style: solid;
        width: 6px;
        margin: 0;
        height: 6px;
        cursor: default;
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.layout10 {
  vertical-align: middle;

  .wmc-current-currency {
    padding-left: 10px !important;
    background-color: transparent !important;
    border: none !important;
    font-weight: normal !important;

    > span {
      &:first-child {
        display: flex;
      }
    }

    .wmc-open-dropdown-currencies {
      padding-left: 5px;
    }
  }

  .wmc-sub-currency {
    box-shadow: 0 0 2px rgba(0, 0, 0, .5);
    border-radius: 3px;
    padding: 5px;
    border: none !important;

    .wmc-currency {
      a {
        &:hover {
          font-weight: normal !important;
        }

        font-weight: normal !important;
      }

      &:hover {
        background-color: #e5ecf3;
      }
    }
  }

  .wmc-currency {
    padding: 5px !important;

    span {
      padding: 0 0 0 5px !important;
    }
  }

  .wmc-currency-wrapper {
    .wmc-sub-currency {
      z-index: 99999;
      max-height: 250px;
      overflow-y: auto;
      font-size: 12px;

      &::-webkit-scrollbar {
        width: 7px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        margin-top: 2px;
        margin-bottom: 2px;
      }

      &::-webkit-scrollbar-thumb {
        background: #cecece;
        border-radius: 20px;

        &:hover {
          background: #555;
        }
      }
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical.layout10 {
  .wmc-currency-wrapper {
    .wmc-sub-currency {
      width: auto;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode.plain-vertical.layout11 {
  .wmc-currency-wrapper {
    .wmc-currency {
      > a {
        span {
          &.wmc-sub-currency-symbol {
            padding: 0;
          }
        }
      }
    }

    .wmc-current-currency {
      .wmc-current-flag {
        vertical-align: sub;
      }
    }
  }

}

#order_review {
  .wmc-approximately {
    display: block !important;
    padding-left: 0;
  }
}

.woocommerce-mini-cart__total {
  .wmc-approximately {
    display: block !important;
    padding-left: 0;
  }
}

.product {
  .price {
    .wmc-approximately {
      display: block !important;
      padding-left: 0;
    }
  }
}

.woocommerce-cart-form__cart-item {
  .wmc-approximately {
    display: block !important;
    padding-left: 0;
  }
}

.cart_totals {
  .wmc-approximately {
    display: block !important;
    padding-left: 0;
  }
}

.woocommerce-mini-cart-item.mini_cart_item {
  .wmc-approximately {
    padding-left: 5px;
  }
}

.wmc-cache-pid {
  + {
    .subscription-details {
      + {
        .subscription-details {
          display: none;
        }
      }
    }
  }
}

.wmc-currency-loading {
  position: relative;
}

.woocommerce-multi-currency.wmc-currency-loading.wmc-price-switcher {
  .wmc-sub-currency {
    &:before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background: rgba(255, 255, 255, .7);
      z-index: 9999;
    }

    &:after {
      z-index: 9999;
      content: url(./images/loading.gif);
      font-size: 15px;
      position: absolute;
      left: 50%;
      top: 50%;
      opacity: 1;
      transform: translate(-50%, -50%) scale3d(.5, .5, .5);
      margin: 0;
      padding: 0;
    }
  }
}

.woocommerce-multi-currency.wmc-currency-loading {
  &:not(.wmc-price-switcher) {
    &:before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background: rgba(255, 255, 255, .7);
      z-index: 9999;
    }

    &:after {
      z-index: 9999;
      content: url(./images/loading.gif);
      font-size: 15px;
      position: absolute;
      left: 50%;
      top: 50%;
      opacity: 1;
      transform: translate(-50%, -50%) scale3d(.5, .5, .5);
      margin: 0;
      padding: 0;
    }
  }
}

.wmc-currency-flag {

  .wmc-currency {

    .wmc-currency-custom-flag {
      width: 60px;
      height: 40px;
    }
  }
}

.woocommerce-multi-currency.wmc-price-switcher {

  .wmc-currency-wrapper {
    .wmc-currency-custom-flag {
      display: inline-block;
      vertical-align: middle;
      max-width: 60px;
      max-height: 40px;
      width: unset;
      height: unset;
    }
  }
}

.woocommerce-multi-currency.wmc-shortcode {

  &.layout3 {

    .wmc-currency {

      .wmc-currency-custom-flag {
        display: inline-block;
        vertical-align: middle;
        max-width: 60px;
        max-height: 40px;
        width: unset;
        height: unset;
      }
    }
  }

  &.layout4 {

    .wmc-currency-wrapper {

      .wmc-currency-custom-flag {
        display: inline-block;
        vertical-align: middle;
        max-width: 60px;
        max-height: 40px;
        width: unset;
        height: unset;
      }
    }
  }

  &.layout5, &.layout10, &.layout11 {

    .wmc-currency-wrapper {

      .wmc-current-currency {

        .wmc-currency-custom-flag {
          display: inline-block;
          vertical-align: middle;
          max-width: 60px;
          max-height: 40px;
          width: unset;
          height: unset;
        }
      }

      .wmc-sub-currency {

        .wmc-currency-custom-flag {
          display: inline-block;
          vertical-align: middle;
          max-width: 60px;
          max-height: 40px;
          width: unset;
          height: unset;
        }
      }
    }
  }

  &.wmc-sc-current-currency {

    .wmc-current-currency {
      display: flex;
      align-items: center;
      padding: 5px;
      gap: 10px;

      .wmc-currency-custom-flag {
        display: inline-block;
        vertical-align: middle;
        max-width: 60px;
        max-height: 40px;
        width: unset;
        height: 100%;
      }
    }
  }

  &.wmc-list-currency-rates {

    .wmc-currency-base-wrap {
      display: flex;
      width: 100%;
      gap: 10px;
      align-items: center;
      justify-content: center;

      select {
        height: fit-content;
        padding: 7px 25px 7px 7px;
        border: solid 1px #eee;
      }
    }

    .wmc-currency-rate-table {

      .wmc-currency-rate-table-header {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;

        >div {
          align-self: center;
          padding: 5px;
        }
      }

      .wmc-currency-rate-table-content {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;

        >div {
          align-self: center;
          padding: 5px;
        }
      }

      .wmc-current-flag {
        vertical-align: middle;
        max-width: 60px;
        max-height: 40px;
      }

      .wmc-currency-custom-flag {
        vertical-align: middle;
        max-width: 60px;
        max-height: 40px;
        width: unset;
        height: unset;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .woocommerce-multi-currency.wmc-sidebar.style-1 {
    .wmc-list-currencies {
      .wmc-currency {
        margin-left: auto;
        margin-right: auto;
      }
    }
  }
  .woocommerce-multi-currency.wmc-sidebar {
    .wmc-title {
      margin-left: auto;
      margin-right: auto;
    }

    .wmc-list-currencies {
      .wmc-currency {
        &:not(.wmc-active) {
          display: none;
        }
      }

      .wmc-sidebar-open {
        display: flex;
      }
    }

    background: unset;
  }
  .woocommerce-multi-currency.wmc-sidebar.wmc-hover, .woocommerce-multi-currency.wmc-sidebar.wmc-hover.wmc-mobile-no-collapse {
    .wmc-list-currencies {
      .wmc-sidebar-open {
        display: none;
      }

      .wmc-currency {
        display: flex;
      }

      overflow: auto;
      width: 100%;
      margin: 0 auto;
      position: relative;
      transform: translateY(-50%);
      top: 50%;
      max-height: 100%;
    }

    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    transform: none;
    bottom: 0;
    padding: 10% 0;
    background: rgba(255, 255, 255, 0.8);
  }
  .woocommerce-multi-currency.wmc-sidebar.wmc-mobile-no-collapse {
    .wmc-list-currencies {
      .wmc-currency {
        display: inline-block;
      }

      .wmc-sidebar-open {
        display: none;
      }
    }
  }

  .woocommerce-multi-currency.wmc-sidebar.wmc-switcher-layout-single {

    .wmc-list-currencies {

      .wmc-currency {

        &:hover {
          -webkit-transform: unset;
          -moz-transform: unset;
          -ms-transform: unset;
          -o-transform: unset;
          transform: unset;
        }
      }
    }
  }

  .woocommerce-multi-currency.wmc-sidebar.wmc-switcher-layout-hoverdt.wmc-hover {

    .wmc-list-currencies {

      .wmc-currency  {
        float: unset;

        a {
          justify-content: center;

          .wmc-currency-content-dtdetail {
            display: block;
            visibility: visible;
            opacity: 1;
            transform: rotateY(0);
          }
        }
      }
    }
  }
}

/*Remove duplicated regular price of LearnPress courses for some themes*/
.course-origin-price + .origin-price {
  display: none;
}

.wmc-cache-loading {
  .woocommerce-Price-amount.amount {
    position: relative;

    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #f0f0f0;
    }

    &:after {
      content: '';
      position: absolute;
      top: 0;
      width: 10px;
      bottom: 0;
      background-color: #fefefe;
      opacity: 0.5;
      left: 0;
      filter: blur(1px);
      animation: waiting_bar_effect 1s infinite;
    }
  }
}


@keyframes waiting_bar_effect {
  0% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

.wmc-convertor-row {
  margin-bottom: 1em;

  input, select {
    line-height: 1.5;
    padding: 7px;
    width: 100%;
  }
}

.wmc-currency-convertor-result {
  font-weight: bold;
}

.woocommerce-shipping-destination {
  clear: both;
}