// card select
.card-select {
  min-height: 98px;
  padding: 16px;
  background-color: $white-100;
  border: 1px solid $color-border;
  box-sizing: border-box;
  border-radius: 4px;
  transition: 0.3s ease-in-out;
  position: relative;
  z-index: 1;
  min-width: 200px;
  max-width: 250px;
  margin-bottom: 0 !important;
  &.ac-radio [type="radio"] + label {
    color: $color-heading;
    font-weight: 500;
    font-size: 14px;
  }

  &.is-active-require-field {
    &:after {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: $gray-5;
      top: 0;
      left: 0;
      z-index: 1;
      opacity: 0.6;
      border-radius: 4px;
    }

    .r-dropdown-item {
      opacity: 1;
      visibility: visible;
    }
  }

  &.is-singleline {
    height: auto;
    padding: 0;
    border: none;
    background-color: transparent;
    width: auto;
    margin-bottom: 0;

    label {
      font-weight: 400 !important;
    }

    &:hover {
      box-shadow: none;
      border: none;

      label {
        color: $ac-primary !important;
      }
    }

    .ac-single-radio,
    .ac-single-checkbox {
      label {
        font-size: 1rem;
        line-height: 20px;
        color: $color-heading;
        padding-left: 25px !important;
      }
    }

    &.is-disabled {
      background-color: transparent;

      label {
        color: $color-heading;
        cursor: not-allowed;
      }
    }

    .ac-single-radio .is-checkradio[type="radio"]:checked + label {
      color: $ac-primary;
    }

    .ac-single-radio {
      margin-bottom: 0;
    }
  }

  &.is-disabled {
    background-color: $primary-light-gray;
    cursor: not-allowed;
    opacity: 0.8;

    &:hover {
      border-color: transparent;
      box-shadow: none;
    }
  }

  &:hover {
    box-shadow: 0px 8px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
  }

  &.is-selected {
    &::after {
      position: absolute;
      content: "";
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      border: 2px solid $ac-primary;
      border-radius: 4px;
    }
  }

  &:last-child {
    margin-right: 0;
  }

  // inline more button Start
  .more-option {
    position: relative;
    z-index: 1;

    .btn-more-option {
      background-color: #e4e4e4;
      height: 16px;
      width: 30px;
      border: none;
      border-radius: 3px;
      padding: 0;
      cursor: pointer;
      margin-left: 5px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transform: translate(0px, -2px);

      span {
        display: inline-flex;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: #b1b1b1;
        margin-right: 2px;

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }

  .r-dropdown-item {
    position: absolute;
    z-index: 2;
    right: 10px;
    top: 10px;
    background-color: $white-100;
    box-shadow: $ac-shadow-2;
    display: inline-block;
    border-radius: 4px;
    padding: 5px 15px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;

    button.close-icon {
      position: absolute;
      right: -5px;
      top: -5px;
      border: 1px solid $gray-80;
      font-size: 10px;
      height: 25px;
      width: 25px;
      text-align: center;
      background-color: $white-100;
      border-radius: 50%;
      cursor: pointer;
      color: $danger;
      transition: 0.3s ease-in-out;
      display: block;

      &:hover {
        color: $white-100;
        background-color: $danger;
        border: 1px solid $danger;
      }
    }

    li {
      display: inline-block;

      a {
        display: block;
        padding: 5px 10px 5px 0;
        color: $color-text;
        font-size: 11px;
        text-decoration: underline;
        font-weight: 400;

        &:hover {
          color: $ac-primary;
        }
      }
    }
  }

  // inline more button end
  .ac-single-radio,
  .ac-single-checkbox {
    margin-bottom: 10px;

    label {
      font-family: $font-heading;
      font-style: normal;
      font-weight: 500;
      font-size: 1rem;
      line-height: 24px;
      color: $color-heading;
    }
  }

  p {
    font-family: $font-paragraph;
    font-style: normal;
    font-weight: normal;
    font-size: 1rem;
    line-height: 140%;
    color: $color-text;

    &.is-warning {
      color: $danger;
    }

    a {
      text-decoration: underline;
    }
  }
}
