.bubble-checkbox-item {
  border-radius: 17.5px;
  height: 35px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: center;
  line-height: 27px;
  &--checked {
    background-color: $success-color;
    .text {
      color: $white;
    }
  }
  &--unchecked {
    background-color: $semi-white;
  }
}

.checkbox-error {
  &__container {
    text-align: right;
  }
  &__message {
    color: $alert-color;
    font-size: $tiny-font-size-global;
  }
}

.checkbox-image-item {
  width: 100%;
  @include breakpoint(medium) {
    max-width: rem-calc(150);
    height: 100%;
    padding-left: 0;
    padding-top: 0;
    box-sizing: border-box;
    margin: 0;
  }
  &__wrapper {
    border-radius: rem-calc(5);
    border: solid 1px $gray-border-color;
    cursor: pointer;
    position: relative;
    background-color: $primary-very-light-color;
    box-shadow: 0 1px 0 0 #cfd8e1, inset 0 2px 0 0 #ffffff;
    @include breakpoint(small only) {
      margin-top: rem-calc(10);
      padding: rem-calc(10);
    }
    @include breakpoint(medium) {
      margin: 10px;
      margin-left: auto;
      margin-right: auto;
      height: 80px;
      width: 100px;
    }
    &--selected {
      border: rem-calc(1) solid $primary-color;
      color: $white;
    }
    &--disabled {
      background-color: #f3f3f3;
      border-color: #c0c0c0;
      cursor: not-allowed;
      img {
        opacity: 0.6;
      }
    }
  }
  &__label {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: $medium-font-size-global;
    width: 100%;
    &--selected {
      color: $primary-color;
    }
  }
  &__img-wrapper {
    @include flex-align(justify, middle);
    @include breakpoint(medium) {
      @include flex-align(center, middle);
    }
  }
  &__img {
    width: 70px;
    height: 55px;
    @include breakpoint(small only) {
      max-width: 25%;
    }
  }
  &__checkmark-wrapper {
    background-color: rgba(255, 255, 255, .8);
    @include position(absolute, 0, 0, 0, 0);
    border-radius: rem-calc(5);
  }
  &__checkmark {
    @include box(50px, 50px);
  }
}

.radio-checkbox-item {
  margin-bottom: 5px;
  @include breakpoint(small only) {
    margin-bottom: 10px;
  }
  &--no-label {
    margin-bottom: 0px
  }
  &--disabled {
    cursor: not-allowed !important;
  }
  &__checkbox {
    cursor: pointer;
    border: 3px solid $transparent;
    @include box(38px, 38px, circle);
    &--unchecked {
      background-color: $white;
      border-color: rgba(119, 119, 119, 0.53);
    }
    &--checked {
      border-color: $primary-color;
    }
    &--disabled {
      background-color: $input-background-disabled;
      border-color: $gray-border-color;
      &:hover {
        @extend .simple-checkbox-item__checkbox--disabled;
      }
    }
    &-selected {
      height: 15px;
      width: 15px;
      background: $primary-color;
      border-radius: 30px;
    }
  }
  &__label {
    cursor: pointer;
    margin-left: 12px;
    margin-right: 12px;
  }
  &__disabled {
    color: $color-text-input;
  }
}

.simple-checkbox-item {
  &--no-label {
    margin-bottom: 0px
  }
  &--disabled {
    cursor: not-allowed !important;
  }
  &__checkbox {
    &:focus {
      border-color: #2684ff;
    }
    border: 1px solid $transparent;
    &--circle {
      border-radius: 100%;
    }
    :not(.simple-checkbox-item__checkbox--circle) {
      border-radius: 4px;
    }
    &--unchecked {
      background-color: $white;
      border-color: $gray-border-color;
    }
    &--checked {
      background-color: $primary-color;
      border-color: $primary-color;
    }
    &--disabled {
      background-color: $input-background-disabled;
      border-color: $gray-border-color;
      &:hover {
        @extend .simple-checkbox-item__checkbox--disabled;
      }
    }
  }
  &__label {
    margin-left: 12px;
    margin-right: 12px;
  }
  &__disabled {
    color: $color-text-input;
  }
}

.text-checkbox-item {
  @extend .wig-button;
  &__button {
    width: 100%;
  }
  &--checked-transparent {
    @extend .wig-button--secondary;
  }
  &--unchecked-transparent {
    border: rem-calc(1px) solid $gray-border-color;
    border-radius: $button-small-radius;
    color: #696969;
  }
  &--unchecked-default {
    @extend .wig-button--secondary;
    font-weight: bold;
  }
  &--checked-default {
    background-color: #f6b819;
    color: black;
    font-weight: bold;
  }
}

.gallery-item-checkbox {
  @include box(210px, 170px, true);
  position: relative;
  &__check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    @include box(30px, 30px, true)
  }
}

.preview-image-checkbox {
  margin: rem-calc(5px, 10px);
  &__check-icon {
    @include box(28px, 28px, true);
    margin-right: 5px;
    content: ' ';
    &--checked {
      background-color: $primary-color;
      display: flex;
      align-items: center;
      justify-content: center;
      &:before {
        font: normal normal normal 20px 'dripicons-v2';
        content: "\53";
        color: $white;
        margin-top: 4px;
      }
    }
    &--unchecked {
      border: 1px solid $light-gray;
    }
  }
  &__img-wrapper {
    margin-top: rem-calc(10px);
    padding: rem-calc(10px 15px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.19);
    height: 300px;
  }
  &__img {}
}

.palette-checkbox {
  display: inline-block;
  content: ' ';
  margin: 0 5px;
  &--checked {
    @include box(40px, 40px, true);
  }
  &--unchecked {
    @include box(30px, 30px, true);
  }
}