@import './colors';

@mixin hc-radio-container() {
    cursor: pointer;
    display: block;
    line-height: 1.5;
    margin: 4px 0;
    padding-left: 35px;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@mixin hc-radio-container-disabled() {
    color: $gray-300;
    cursor: not-allowed;
}

@mixin hc-radio-overlay() {
    background-color: $white;
    border: 2px solid $gray-300;
    border-radius: 50%;
    height: 22px;
    left: 0;
    position: absolute;
    top: 0;
    width: 22px;

    &:after {
        background: $white;
        border-radius: 50%;
        content: '';
        display: none;
        height: 8px;
        left: 5px;
        position: absolute;
        top: 5px;
        width: 8px;
    }
}

@mixin hc-radio-overlay-hover() {
    border-color: $primary-brand;
}

@mixin hc-radio-overlay-checked() {
    background-color: $primary-brand;
    border-color: $primary-brand;

    &:after {
        display: block;
    }
}

@mixin hc-radio-overlay-disabled {
    background-color: $gray-200;
    border-color: $gray-300;
    cursor: not-allowed;

    &:after {
        background: $gray-200;
    }
}

@mixin hc-radio-overlay-checked-disabled() {
    background-color: $gray-200;
    border-color: $gray-300;
}

@mixin hc-radio-input() {
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

@mixin hc-radio-input-disabled() {
    cursor: not-allowed;
}
