@use '../../_styles/variables' as *;
@use '../../_styles/mixins' as *;
$agreePrefixClass: #{$prefix}agree;
$agreeFontSize: 28px;

.#{$agreePrefixClass}-wrapper {
  font-size: $agreeFontSize;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  outline: none;
  &.is-disabled {
    >.#{$agreePrefixClass} {
      cursor: not-allowed;
    }
    input {
      cursor: not-allowed;
    }
    .#{$prefix}icon {
      opacity: .4;
    }
    .#{$agreePrefixClass}__label {
      color: $checkboxColor;
    }
  }
}

.#{$agreePrefixClass} {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  width: 1.7em;
  height: 1.7em;
  align-self: flex-start;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  > .#{$prefix}icon {
    color: $agreeColor;
    font-size: 1.5em;
    transition: all .4s easing(out-expo);
  }
  > input {
    top: 0;
    left: 0;
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
  }
  &__label {
    padding-left: 12px;
    font-size: 1em;
    font-weight: 400;
    color: $agreeColor;
    flex: 1 1 0%;
    line-height: 1.6em;
    a {
      color: $colorPrimary;
    }
  }
}
