@use 'sass:math';
@import '../abstract/_all';
input:is([type='button'], [type='submit'], [type='reset']),
input[type='file']::file-selector-button,
button {
  color: $c-primary;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: $btn-radius;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
  justify-content: center;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  padding: 2px 16px 0;
  background-color: transparent;
  min-height: $height-btn;
  @include font-light;

  letter-spacing: .64px;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
  }
  &[disabled],
  &:disabled,
  &.disabled {
    pointer-events: none;
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    opacity: 1;
    cursor: not-allowed;
  }
  .has-light & {
    color: $c-primary;
    border-color: $c-white;
    background-color: $c-white;
    @include font-regular;
    &::after {
      background-color: $c-white;
    }
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:visited,
    &:active,
    &.active {
      color: $c-white;
      background-color: $c-middle-grey;
      border-color: $c-middle-grey;
    }
    &[disabled],
    &:disabled,
    &.disabled {
      cursor: default;
      pointer-events: none;
      background-color: $c-light-grey;
      border: 1px solid $c-light-grey;
      color: $c-dark-grey;
      opacity: 1;
    }
  }
  &.btn-separate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 32px;
    &.btn--mini,
    &.btn--small {
      width: max-content;
    }
  }
  &.btn-feel-invert {
    color: $c-primary;
    background-color: transparent;
    border: 1px solid $c-feel;
    svg {
      g {
        fill: $c-primary;
        stroke: $c-primary;
      }
      circle {
        stroke: $c-primary;
      }
    }
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      color: $c-primary;
      opacity: 1;
      border-color: rgba($c-feel, 0.5);
    }
    &[disabled],
    &:disabled,
    &.disabled {
      opacity: 1;
      border-color: $c-light-grey;
      color: $c-dark-grey;
      cursor: default;
    }
  }
  &.has-ico-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &.btn-clear {
    padding: 8px;
    background: none;
    border: none;
  }
}
.btn-xs {
  position: relative;
  display: inline-flex;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  font-size: $text-sm;
  margin-right: $padding-global;
  white-space: nowrap;
  cursor: pointer;
  padding: math.div($btn-padding, 2);

  &:active,
  &:focus,
  &:visited {
    outline: none;
  }
}
.btn--wrap {
  white-space: wrap;
}
.btn--mini {
  padding: 0 $padding-global * 2;
  font-size: $btn-text-mini;
  min-width: 50px;
}
.btn--small {
  min-height: $height-btn;
  padding-right: $padding-global * 2;
  padding-left: $padding-global * 2;
}
.btn--medium {
  padding-right: $padding-global * 5;
  padding-left: $padding-global * 5;
  max-width: 272px;
  width: 100%;
  min-height: $height-btn;
}
.btn--mini-rd {
  padding-right: $padding-global * 3;
  padding-left: $padding-global * 3;
  font-size: $btn-text-mini;
  min-height: $height-btn;
  display: inline-flex;
  align-content: center;
  align-items: center;
  @media (min-width: $break-sm) {
    padding: $padding-global * 2;
    font-size: $btn-text-small;
    min-height: $height-btn;
  }
}
.btn--large {
  min-height: $height-btn;
  min-width: 200px;
  max-width: 400px;
  width: 100%;
  padding-right: $padding-global * 7;
  padding-left: $padding-global * 7;
  font-size: $btn-text-large;
}
.btn--xlarge {
  padding-right: $padding-global * 8;
  padding-left: $padding-global * 8;
  position: relative;
  display: inline-flex;
  min-height: $height-btn;
  min-width: 200px;
  max-width: 400px;
  padding: $btn-padding;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--xxl {
  display: flex;
  min-height: 60px;
  padding: 10px 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.btn--search {
  min-height: initial;
  display: flex;
  font-size: 11px;
  line-height: 1;
  padding: 6px;
  justify-content: center;
  align-items: flex-start;
  border-bottom: 1px solid $c-primary;
}
.btn--full {
  width: 100%;
  padding-right: $padding-global * 2;
  padding-left: $padding-global * 2;
}
.btn--round {
  border-radius: 50px;
}
.btn-primary {
  color: $c-white;
  background-color: $c-primary;
  border: 1px solid $c-primary;
  @include font-regular;

  svg {
    g {
      fill: $c-white;
      stroke: $c-white;
    }
    circle {
      stroke: $c-white;
    }
    path {
      fill: $c-white;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    color: $c-white;
    background-color: $c-dark-grey;
    border: 1px solid $c-dark-grey;
    opacity: 1;
    cursor: pointer;
  }
  &[disabled],
  &:disabled,
  &.disabled {
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    opacity: 1;
    svg {
      g {
        fill: $c-dark-grey;
        stroke: $c-dark-grey;
      }
      circle {
        stroke: $c-dark-grey;
      }
      path {
        fill: $c-dark-grey;
      }
    }
  }
  .has-light & {
    color: $c-primary;
    background-color: $c-white;
    border: 1px solid $c-white;
    svg {
      g {
        fill: $c-primary;
        stroke: $c-primary;
      }
      circle {
        stroke: $c-primary;
      }
      path {
        fill: $c-primary;
      }
    }
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      color: $c-white;
      background-color: $c-dark-grey;
      border: 1px solid $c-dark-grey;
      opacity: 1;
      svg {
        g {
          fill: $c-white;
          stroke: $c-white;
        }
        circle {
          stroke: $c-white;
        }
        path {
          fill: $c-white;
        }
      }
    }
    &[disabled],
    &:disabled,
    &.disabled {
      background-color: $c-light-grey;
      border: 1px solid $c-light-grey;
      color: $c-dark-grey;
      opacity: 1;
    }
  }
}
.btn-secondary {
  color: $c-primary;
  background-color: $c-white;
  border: 1px solid $c-primary;
  svg {
    circle {
      stroke: $c-primary;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    color: $c-primary;
    background-color: $c-white;
    border: 1px solid $c-dark-grey;
    opacity: 1;
  }
  &[disabled],
  &:disabled,
  &.disabled {
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    opacity: 1;
    svg {
      g {
        fill: $c-middle-grey;
        stroke: $c-middle-grey;
      }
      circle {
        stroke: $c-middle-grey;
      }
      path {
        fill: $c-middle-grey;
      }
    }
  }
  .has-light & {
    color: $c-white;
    background-color: transparent;
    border: 1px solid $c-white;
    svg {
      g {
        fill: $c-white;
        stroke: $c-white;
      }
      circle {
        stroke: $c-white;
      }
      path {
        fill: $c-white;
      }
    }
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      color: $c-white;
      background-color: $c-dark-grey;
      border: 1px solid $c-dark-grey;
      opacity: 1;
      svg {
        g {
          fill: $c-white;
          stroke: $c-white;
        }
        circle {
          stroke: $c-white;
        }
        path {
          fill: $c-white;
        }
      }
    }
    &[disabled],
    &:disabled,
    &.disabled {
      background-color: $c-light-grey;
      border: 1px solid $c-light-grey;
      color: $c-dark-grey;
      opacity: 1;
    }
  }
}
.btn-phantom {
  color: $c-white;
  background-color: transparent;
  border: 1px solid $c-white;
  svg {
    g {
      fill: $c-white;
      stroke: $c-white;
    }
    circle {
      stroke: $c-white;
    }
    path {
      fill: $c-white;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    color: $c-primary;
    background-color: transparent;
    border: 1px solid $c-dark-grey;
    opacity: 1;
  }
}
.btn-limited {
  height: auto;
  min-height: $height-btn;
  color: $c-white;
  background-color: $c-limited;
  border: 1px solid $c-limited;
  @include font-regular;
  svg {
    g {
      fill: $c-white;
      stroke: $c-white;
    }
    circle {
      stroke: $c-white;
    }
    path {
      fill: $c-white;
    }
  }
}
.btn-primary-feel {
  color: $c-white;
  background-color: $c-feel;
  svg {
    g {
      fill: $c-primary;
      stroke: $c-primary;
    }
    circle {
      stroke: $c-primary;
    }
    path {
      fill: $c-primary;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    color: $c-primary;
    opacity: 1;
    background-color: rgba($c-feel, 0.6);
  }
  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    filter: none;
    opacity: 1;
    svg-icon,
    svg-icon2,
    md-icon {
      background-color: $c-middle-grey !important;
      border: 1px solid $c-middle-grey !important;
    }
  }
}
.btn-secondary-feel {
  color: $c-primary;
  background-color: $c-white;
  border: 1px solid $c-primary;
  svg {
    g {
      fill: $c-primary;
      stroke: $c-primary;
    }
    circle {
      stroke: $c-primary;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    opacity: 1;
    color: $c-primary;
    border: 1px solid $c-dark-grey;
    background-color: $c-white;
  }
  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    filter: none;
    opacity: 1;
    svg-icon,
    svg-icon2,
    md-icon {
      background-color: $c-middle-grey !important;
      border: 1px solid $c-middle-grey !important;
    }
  }
  .has-light & {
    color: $c-white;
    border-color: $c-white;
    background-color: transparent;
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      opacity: 1;
      color: $c-white;
      border: 1px solid $c-dark-grey;
      background-color: $c-dark-grey;
    }
  }
}
.btn-tertiary {
  background-color: transparent;
  border: 0 solid transparent;
  height: auto;
  min-width: 24px;
  padding-inline: 0;

  svg {
    g {
      fill: $c-primary;
      stroke: $c-primary;
    }
    circle {
      stroke: $c-primary;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    border: 0 solid transparent;
    background-color: transparent;
    cursor: pointer;
  }
  &.active {
    border-bottom: 0.5px solid #000;
  }
  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    filter: none;
    opacity: 1;
    svg-icon,
    svg-icon2,
    md-icon {
      background-color: transparent !important;
      border: 0 solid transparent !important;
    }
  }
  .has-light & {
    color: $c-white;
    border-color: transparent;
    background-color: transparent;
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      opacity: 0.6;
      border: 1px solid transparent;
      background-color: transparent;
    }
  }
}

.btn-label-m {
  background-color: transparent;
  border: 0 solid transparent;
  height: auto;
  min-width: 24px;
  padding: 10px 0;
  min-height: auto;

  svg {
    g {
      fill: $c-primary;
      stroke: $c-primary;
    }
    circle {
      stroke: $c-primary;
    }
  }

  &:hover,
  &.hover
 {
    border: 0 solid transparent;
    background-color: transparent;
    cursor: pointer;
    color: $c-dark-grey;
    opacity: 1;

  }


  &.focus,
  &.active {
    border: 0 solid transparent;
    background-color: transparent;
    cursor: pointer;
    color: $c-primary;
    @include font-regular;

  }

 
  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    background-color: transparent;
    border: 0 solid transparent;
    color: $c-dark-grey;
    filter: none;
    opacity: 1;
    svg-icon,
    svg-icon2,
    md-icon {
      background-color: transparent !important;
      border: 0 solid transparent !important;
    }
  }
  .has-light & {
    color: $c-white;
    border-color: transparent;
    background-color: transparent;
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      opacity: 0.6;
      border: 1px solid transparent;
      background-color: transparent;
    }
  }
}

.hg-btn-badge {
  align-items: center;
  background-color: transparent;
  color: $c-dark-grey;
  display: inline-flex;
  font-size: $text-sm;
  justify-content: center;
  min-width: var(--hg-spacing-24, 24px);
  padding-inline: 0;
  white-space: nowrap;

  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active,
  &.is-active {
    color: $c-primary;
    border-color: transparent;
    background-color: transparent;
    cursor: pointer;
  }

  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    color: $c-middle-grey;
    border-color: transparent;
    background-color: transparent;
    opacity: 1;
  }

  &:active,
  &.active,
  &.is-active {
    @include font-regular;
  }

  .has-light & {
    background-color: transparent;
    color: $c-white;
    border-color: transparent;

    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      background-color: transparent;
      color: $c-white;
      border-color: transparent;

    }
    &:disabled,
    &[disabled],
    &.disabled {
      background-color: transparent;
      border-color: transparent;
      color: $c-light-grey;

    }
  }
}

.btn-text {
  background-color: transparent;
  border-color: transparent;
  color: $c-primary;
}
.btn-invert {
  color: $c-primary;
  background-color: transparent;
  border: 1px solid $c-primary;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    opacity: 0.6;
  }
}
.btn-invert-light {
  color: $c-primary;
  background-color: transparent;
  border: 1px solid $c-middle-grey;
  &:focus,
  &.focus,
  &:hover,
  &:active,
  &.active {
    opacity: 0.6;
    svg {
      path {
        fill: $c-white;
      }
    }
  }
}
.btn-default {
  background-color: $c-primary;
  border: 1px solid $c-primary;
  color: $c-white;
}
.btn-blue {
  background-color: $c-info;
  color: $c-white;
  border: 1px solid $c-info;
  @include font-regular;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    color: $c-white;
    text-decoration: none;
    opacity: 0.6;
  }
}
.btn-link {
  border: none;
  text-align: start;
  text-decoration: none;
  color: $c-primary;
  background-color: transparent;
  padding: 0;
  border-radius: $btn-radius;
  height: auto;
  min-height: auto;
  .has-light & {
    color: $c-white;
    background-color: transparent;
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:visited,
    &:active,
    &.active {
      background-color: transparent;
      color: $c-white;
      text-decoration: none;
      opacity: 0.6;
    }
  }
}
.btn-trans {
  color: $c-white;
  background: rgb(226 226 226 / 60%);
  font-size: $text-sm;
  border: 0 solid $c-white;
  box-sizing: border-box;
  svg {
    stroke: $c-white;
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    color: $c-white;
    text-decoration: none;
  }
}
.btn-circle {
  right: 0;
  position: absolute;
  display: flex;
  width: 40px;
  max-width: initial;
  height: 40px;
  border: 1px solid $c-primary;
  border-radius: 50px;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-color: transparent;
}
.btn-social {
  height: auto;
  min-height: $height-btn;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  svg-icon,
  svg-icon2,
  md-icon {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: $btn-radius;
    margin-top: -2px;
    left: 16px;
    position: absolute;
    div {
      display: flex;
    }
  }
  &:disabled,
  &[disabled],
  &.disabled {
    background-color: $c-light-grey;
    border-color: transparent;
    opacity: 1;
    svg {
      path {
        fill: $c-dark-grey;
      }
    }
  }
}
.btn-google,
.has-light .btn-google {
  background-color: $c-white;
  color: $c-primary;
  border: var(--line-width) solid $c-primary;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    border: var(--line-width) solid $c-light-grey;
    opacity: 1;
  }
}
.btn-facebook {
  background-color: $c-facebook;
  color: $c-white;
  border: 1px solid $c-facebook;
  @include font-regular;
  
  svg-icon,
  svg-icon2,
  md-icon {
    background-color: transparent;
    path {
      fill: $c-white;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    opacity: 1;
    background-color: $c-facebook;
    border: 1px solid $c-facebook;
  }
  .has-light & {
    background-color: $c-facebook;
    color: $c-white;
    border: 1px solid $c-facebook;
  }
}
.btn-apple,
.has-light .btn-apple {
  background-color: $c-black;
  color: $c-white;
  border: 1px solid $c-black;
  @include font-regular;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    opacity: 1;
    background-color: $c-dark-grey;
    border: 1px solid $c-dark-grey;
  }
  svg-icon path,
  svg-icon2 path,
  md-icon path {
    fill: $c-white;
  }
}
.btn-apple-secondary,
.has-light .btn-apple-secondary {
  background-color: $c-white;
  color: $c-black;
  border: 1px solid $c-black;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    opacity: 1;
    background-color: $c-white;
    border: 1px solid $c-dark-grey;
  }
}
.btn-naver,
.has-light .btn-naver {
  background-color: $c-naver;
  color: $c-white;
  padding-inline: 40px;
  border: 1px solid $c-naver;
  @include font-regular;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    opacity: 1;
    background-color: $c-naver;
    border: 1px solid $c-naver;
  }
  svg-icon path,
  svg-icon2 path,
  md-icon path {
    fill: $c-white;
  }
}
.btn-wechat,
.has-light .btn-wechat {
  background-color: $c-wechat;
  color: $c-white;
  padding-inline: 40px;
  border: 1px solid $c-wechat;
  @include font-regular;
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:visited,
  &:active,
  &.active {
    opacity: 1;
    background-color: $c-naver;
    border: 1px solid $c-wechat;
  }
  svg-icon path,
  svg-icon2 path,
  md-icon path {
    fill: $c-white;
  }
}
.btn-block {
  display: block;
  width: 100%;
}
.btns {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  .btn {
    margin-right: $padding-global;
  }
}
.btns .btn:not(:last-child) {
  margin-right: $padding-global;
}
.btn-group {
  position: relative;
  display: flex;
  & > :not(:first-child, :last-child) {
    border-radius: 0;
    margin-left: -1px;
  }
  [class^='btn--'],
  [class*=' btn--'] {
    position: relative;
    border-radius: 0;
    float: left;
    margin-right: 0;
    &:first-child {
      margin-left: 0;
    }
    &:last-child {
      margin-left: -1px;
    }
  }
  .btn {
    border-radius: 0;
    &:first-child {
      border-radius: $btn-radius 0 0 $btn-radius;
    }
    &:last-child {
      border-radius: 0 $btn-radius $btn-radius 0;
    }
  }
}
.btn-selector {
  position: relative;
  display: flex;
  & > :not(:first-child, :last-child) {
    border-radius: 0;
    margin-left: -1px;
  }
  [class^='btn--'],
  [class*=' btn--'] {
    height: initial;
    border-color: $c-middle-grey;
    color: $c-primary;
    position: relative;
    border-radius: 0;
    float: left;
    margin-right: 0;
    &.is-active {
      background-color: transparent;
      color: $c-black;
      border-color: $c-black;
      z-index: 10;
    }
    &.disabled,
    &:disabled {
      background-color: transparent;
      color: $c-middle-grey;
      border-color: $c-middle-grey;
    }
    &:first-child {
      margin-left: 0;
    }
    &:last-child {
      margin-left: -1px;
    }
    &:hover {
      color: $c-black;
      border-color: $c-black;
      z-index: 11;
    }
  }
  .btn {
    border-radius: 0;
    &:first-child {
      border-radius: $btn-radius 0 0 $btn-radius;
    }
    &:last-child {
      border-radius: 0 $btn-radius $btn-radius 0;
    }
  }
  .is-active {
    background: transparent;
    color: #000;
    border-color: #000;
    z-index: 10;
  }
}
.btn-selector-wrap {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  &.btn-selector .btn {
    border-radius: 0;
    white-space: normal;
    min-height: 50px;
    flex: none;
    max-width: 70px;
    padding-inline: 4px;
    min-width: 50px;
    overflow-wrap: break-word;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
  }
}
[lang^="zh"],
//chino
[lang^="zn"],
//chino
[lang^="ko"] //coreano ko-KR
{
  .btn-selector-wrap {
    &.btn-selector .btn {
      font-family: Helvetica, Arial, sans-serif;
      font-weight: 500;
      font-size: 12px;
    }
  }
}
.btn-group > .btn {
  flex: 1;
}
.btn-group-inline {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  .btn {
    display: inline-flex;
    width: auto;
    min-width: 200px;
    margin: 0 8px;
  }
}
.btn-anim {
  height: auto;
  min-height: $height-btn;
  display: flex;
  flex-flow: column nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  span {
    position: absolute;
    transition:
      transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
      opacity 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .btn-submit {
    transform: translateY(0);
  }
  .btn-loading {
    opacity: 0;
    transform: translateY(40px);
  }
  &:disabled,
  &[disabled],
  &.disabled {
    background-color: $c-light-grey;
    color: $c-dark-grey;
    border-color: transparent;
    opacity: 1;
    svg {
      path {
        fill: $c-dark-grey;
      }
    }
  }
}
.is-loading {
  &.btn-anim {
    .btn-submit {
      transform: translateY(-40px);
      opacity: 0;
    }
    .btn-loading {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.no-focus {
  &:focus {
    color: $c-white;
    background-color: $c-primary;
    border-color: $c-primary;
  }
}
.btn-loading svg {
  animation: spin 1.6s ease-in-out infinite;
}
.btn-social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  svg {
    margin-right: 8px;
  }
  &.btn-facebook {
    border: $c-facebook solid 1px;
    background: $c-facebook;
    color: $c-white;
  }
  &.btn-outline-login {
    border: $c-middle-grey solid 1px;
  }
  &.disabled {
    filter: invert(1);
    background: $c-white;
    color: $c-primary;
    cursor: default;
    svg {
      path {
        fill: $c-primary;
      }
    }
  }
}
.btn-feel {
  background-color: $c-feel;
  border: 1px solid $c-feel;
  color: $c-white;
  @include font-regular;
  &:hover,
  &.hover,
  &:focus,
  &.focus {
    background-color: $c-feel-light;
    border: 1px solid $c-feel-light;
    color: $c-white;
    opacity: 1;
  }
  &[disabled],
  &:disabled,
  &.disabled {
    background-color: $c-middle-grey;
    border: 1px solid $c-middle-grey;
    color: $c-dark-grey;
    opacity: 1;
  }
  .has-light & {
    background-color: $c-feel;
    border: 1px solid $c-feel;
    color: $c-primary;
    &:hover,
    &.hover,
    &:focus,
    &.focus {
      background-color: $c-feel-light;
      border: 1px solid $c-feel-light;
      color: $c-primary;
      opacity: 1;
    }
    &[disabled],
    &:disabled,
    &.disabled {
      background-color: $c-middle-grey;
      border: 1px solid $c-middle-grey;
      color: $c-dark-grey;
      opacity: 1;
    }
  }
}
.btn-world {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  background-color: rgba($c-primary, 0.4);
  color: $c-white;
  transition: all 0.4s ease-in-out;
  svg {
    path {
      fill: $c-white;
    }
  }
  &:hover,
  &.hover,
  &:focus,
  &.focus {
    background-color: rgba($c-primary, 0.8);
    border: none;
  }
  .btn-world-left {
    padding-right: 8px;
  }
  .btn-world-center {
    width: calc(100% - 40px);
    padding-right: 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
    text-align: start;
    margin-top: -1px;
  }
}
.btn-svg svg-icon,
.btn-svg svg-icon2,
.btn-svg md-icon {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  border-radius: $btn-radius;
  position: absolute;
  top: 0;
  left: 1px;
  width: 46px;
  height: 46px;
  padding-bottom: 3px;
}
.btn.btn-secondary-rd {
  border-radius: $btn-radius;
  border: 1px solid $c-primary;
  padding: 9px 2px 4px;
  height: auto;
  min-height: $height-btn;
  min-width: 100px;
  text-align: center;
  background: none;
  font-size: $btn-text-r;
  @media (min-width: $break-sm) {
    padding: 16px 2px 14px;
    height: auto;
    min-height: $height-btn;
    font-size: $btn-text-m;
    min-width: 120px;
  }
  &:hover {
    opacity: 0.5;
  }
}
.has-light {
  .btn-phantom {
    color: $c-white;
    background-color: transparent;
    border: 1px solid $c-white;
  }
  .btn-primary-feel {
    &:hover,
    &.hover,
    &:focus,
    &.focus {
      background-color: rgba($c-feel, 0.6);
      color: $c-dark-grey;
      border-color: rgba($c-feel, 0.6);
    }
    &[disabled],
    &:disabled,
    &.disabled {
      opacity: 1;
      background-color: $c-light-grey;
      color: $c-dark-grey;
      cursor: default;
    }
  }
  .btn-google {
    svg path {
      fill: initial;
      stroke: none;
    }
  }
}
.is-active.btn-secondary {
  background-color: $c-primary;
  color: $c-white;
  border: 1px solid $c-primary;
}
.btn-grid {
  display: grid;
  gap: 0;
  padding-inline: 1px;
  .btn {
    border: 1px solid $c-primary;
    margin-left: -1px;
    margin-top: -1px;
  }
}
.btn--color {
  width: auto;
  min-width: 42px;
  height: auto;
  min-height: 42px;
  position: relative;
  &:hover {
    opacity: 0.6;
  }
  &.is-active {
    padding-bottom: 8px;
    &::after {
      position: absolute;
      left: 0;
      bottom: -4px;
      content: '';
      width: 100%;
      height: 1px;
      background-color: #000;
    }
  }
}
.btn-square {
  border: none;
  width: auto;
  min-width: 33px;
  height: auto;
  min-height: $height-btn;
  padding: 12px;

  @media (min-width: $break-sm) {
    width: auto;
    min-width: 37px;
    height: auto;
    min-height: 37px;
    padding: 12px;
  }

  svg {
    position: relative;
    z-index: 15;
    transform: scale(0.8);
    @media (min-width: $break-sm) {
      transform: scale(1);
    }
  }
  &::after {
    content: '';
    position: absolute;
    background-color: $c-secondary-30;
    width: 13px;
    height: 13px;
    @media (min-width: $break-sm) {
      width: 19px;
      height: 19px;
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    opacity: 1;

    &::after {
      content: '';
      background-color: $c-middle-grey;
      border: 1px solid $c-middle-grey;
      opacity: 1;
      cursor: pointer;
    }

  }
  &[disabled],
  &:disabled,
  &.disabled {
    background-color: transparent;
    border: 1px solid transparent;
    color: $c-dark-grey;
    opacity: 1;
    svg {
      position: relative;
      z-index: 15;
      g {
        fill: $c-dark-grey;
        stroke: $c-dark-grey;
      }
      circle {
        stroke: $c-dark-grey;
      }
      path {
        fill: $c-dark-grey;
      }
    }
  }
  .has-light & {
    border: none;
    width: auto;
    min-width: 37px;
    height: auto;
    min-height: 37px;
    padding: 12px;
    &.btn {
      background-color: transparent;
    }
    svg {
      position: relative;
      z-index: 15;
      path {
        fill: $c-primary;
      }
    }
    &::after {
      content: '';
      position: absolute;
      background-color: $c-secondary-30;
      width: 19px;
      height: 19px;
    }
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      opacity: 1;

      &::after {
        content: '';
        background-color: $c-middle-grey;
        border: 1px solid $c-middle-grey;
        opacity: 1;
        cursor: pointer;

      }

    }
    &[disabled],
    &:disabled,
    &.disabled {
      background-color: $c-light-grey;
      border: 1px solid $c-light-grey;
      color: $c-dark-grey;
      opacity: 1;
      svg {
        position: relative;
        z-index: 15;
        g {
          fill: $c-dark-grey;
          stroke: $c-dark-grey;
        }
        circle {
          stroke: $c-dark-grey;
        }
        path {
          fill: $c-dark-grey;
        }
      }
    }
  }
}
.btn-icon {
  padding-inline: 0;
  display: flex;
  justify-content: space-between;
}
.quick-purchase {
  .product-size-selector__li:hover {
    &:hover {
      cursor: pointer;
    }
    &:hover .tab-xl .tab-inner-size::after {
      position: absolute;
      left: 0;
      bottom: -2px;
      content: '';
      width: 100%;
      height: 1px;
      background-color: #000;
    }
  }
}
.btn-quick {
  align-items: center;
  background-color: transparent;
  border: 0 solid transparent;
  display: inline-flex;
  flex-flow: row nowrap;
  gap: 4px;
  height: auto;
  justify-content: space-between;
  min-height: 16px;
  min-width: 36px;
  padding: 0;
  width: auto;
  color: $c-primary;
  background-color: transparent;
  line-height: 1;

  .text {
    line-height: 1;
  }
  
  md-icon,
  .icon {
    display: inline-flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;

    path {
      fill: $c-primary;
    }
  }
  
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    border: 0 solid transparent;
    background-color: transparent;
    cursor: pointer;
    
  }

  &:hover,
  &.hover {
    .text {
      text-decoration: underline;
    }
  }

  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    filter: none;
    opacity: 1;
    svg-icon,
    svg-icon2,
    md-icon {
      background-color: transparent !important;
      border: 0 solid transparent !important;
    }
  }
  
  .has-light & {
    color: $c-white;
    border-color: transparent;
    background-color: transparent;
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      opacity: 0.6;
      border: 1px solid transparent;
      background-color: transparent;
    }
  }
}

.btn-tab {
  background-color: transparent;
  border: 0 solid transparent;
  height: auto;
  min-height: auto;
  padding: 16px;
  svg {
    g {
      fill: $c-primary;
      stroke: $c-primary;
    }
    circle {
      stroke: $c-primary;
    }
  }
  .icon-sizes {
    margin-top: -4px;
    transform: translate(4px, 5px);
  }
  .is-active & {
    .tab-inner-size::after {
      content: '';
      position: absolute;
      width: 4px;
      height: 4px;
      background-color: $c-primary;
      bottom: -4px;
      left: 50%;
      transform: translate(-50%, 0);
    }
  }
  &:focus,
  &.focus,
  &:hover,
  &.hover,
  &:active,
  &.active {
    border: 0 solid transparent;
    background-color: transparent;
    cursor: pointer;
  }
  &:disabled,
  &[disabled],
  &.disabled {
    pointer-events: none;
    cursor: default;
    background-color: $c-light-grey;
    border: 1px solid $c-light-grey;
    color: $c-dark-grey;
    filter: none;
    opacity: 1;
    svg-icon,
    svg-icon2,
    md-icon {
      background-color: transparent !important;
      border: 0 solid transparent !important;
    }
  }
  .has-light & {
    color: $c-white;
    border-color: transparent;
    background-color: transparent;
    &:focus,
    &.focus,
    &:hover,
    &.hover,
    &:active,
    &.active {
      opacity: 0.6;
      border: 1px solid transparent;
      background-color: transparent;
    }
  }
}

.btn-link-tab {
  align-items: flex-start;
  align-self: flex-start;
  border-color: transparent;
  border-style: solid;
  border-width: var(--line-width) 0;
  display: inline-flex;
  flex-flow: row nowrap;
  gap: 4px;
  height: auto;
  justify-content: space-between;
  min-height: $height-btn;
  padding: 12px 0;
  text-align: initial;

  .btn-prepend,
  .btn-append {
    align-items: center;
    display: flex;
    flex-flow: column nowrap;
    flex: 0 0 auto;
    justify-content: center;
  }

  .btn-content {
    align-items: stretch;
    display: flex;
    flex-flow: column;
    flex: 1 1 auto;
    gap: 8px;
    justify-content: flex-start;
  }

  @at-root .is-rtl .btn-icon-arrow-right {
    transform: rotate(180deg);
  }

  &:disabled,
  &[disabled],
  &.disabled {
    border-left: 0;
    border-right: 0;
  }

  &.btn-lines {
    border-bottom-color: $c-black;
    border-top-color: $c-black;

    &:disabled,
    &[disabled],
    &.disabled {
      border-bottom-color: $c-middle-grey;
      border-top-color: $c-middle-grey;
    }
  }
}

