@import '../dynamic.scss';

// Old radio button, included for compatibility
// TODO: Remove when phased out
.radio-button {
    display: block;
    position: relative;
    padding-left: 2.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.radio-button input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    height: 16px;
    width: 16px;
    background-color: white;
    border-radius: 50%;
    -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.75);
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.75);
}

/* On mouse-over, add a grey background color */
.radio-button:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a white background */
.radio-button input:checked ~ .checkmark {
    background-color: white;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-button input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio-button .checkmark:after {
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: black;
}
