@value _white, _botticelli, _dodgerBlue, _athensGray, _athensGray2 from '../CommonCss/var-colors.css';
@value _px_0, _px_1, _px_10, _px_12, _px_15, _px_20, _per_50, _per_100 from '../CommonCss/var-units.css';

.common{
    user-select: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    outline: none;
    font-weight: normal;
    text-transform: none
}
.inputradio{display: none}
.button{
    vertical-align: middle;
    border-radius: _per_50;
    border: _px_1 solid _botticelli;
    background-color: _white;
    flex-shrink: 0
}
.small{
    width: _px_12;
    height: _px_12
}
.medium{
    width: _px_15;
    height: _px_15
}
.large{
    width: _px_20;
    height: _px_20
}
.button::before{
    content: "";
    display: block;
    height: _per_100;
    width: _per_100;
    border-radius: inherit;
    transition: all 0.3s ease;
    transform: scale(0)
}
.inputradio:checked + .primary{
    background-color: _dodgerBlue;
    border-color : _dodgerBlue;
}
.inputradio:checked + .button::before{
   transform: scale(0.5);
}
.inputradio:checked + .primary::before{
    background-color: _white
}
.inputradio:checked + .secondary::before{
    background-color: _dodgerBlue
}
/* Disable Styles  */
.disabled{
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none
}
.inputradio:disabled:checked + .primary,
.inputradio:disabled:checked + .secondary::before{
    background-color: _athensGray;
    border-color: _athensGray2;
}
.common > :not(:last-child) {
    margin: 0 _px_10 0 0
}
/* rtl */
html[dir="rtl"] .common > :not(:last-child){
  margin: 0 0 0 _px_10
}
