/**** Radio Buttons  ****/

/* The container */
.radio-btn {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    color: #787F8B;
    font-size: 0.875rem;
    line-height: 1.1875rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-right: 32px;
}

.term-buttons .radio-btn { 
    padding-left: 0;
}

.term-buttons .radio-btn:first-of-type { 
    margin-right: 0;
}

.rate-chart-card .term-buttons .radio-btn:first-of-type {
   margin-right: 32px;
}

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

/* Create a custom radio button */
.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 12px;
    width: 12px;
    border: 2px solid #0596D5;
    border-radius: 50%;
}

.term-buttons .radio-btn .checkmark {
    top: auto;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    background: #C8C8C8;
    border: 2px solid #C8C8C8;
    outline: 3px solid #FAFCFB;
}

/* When the radio button is checked, add a blue background */
.radio-btn input:checked ~ .checkmark {
    border: 2px solid #0596D5;
    background-color: #05487E;
}

/* 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-btn input:checked ~ .checkmark:after {
    display: block;
}


/**** Checkboxes  ****/

/* The container */
.checkbox {
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.box-tick {
    cursor: pointer;
    border: 2px solid #0596D5;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 16px;
    width: 16px;
}

.non-standard .box-tick,
.checkbox .box-tick { 
    background: #F5F7F6; 
    border: 1px solid #C8C8C8; 
    border-radius: 2px; 
    height: 24px; 
    width: 24px; 
}

.check-line .box-tick {
    background: #F5F7F6; 
    border: 1px solid #C8C8C8; 
    border-radius: 2px; 
    height: 19px; 
    width: 19px; 
}


/* When the checkbox is checked, add a blue background */
.checkbox input:checked ~ .box-tick {
    background-color: #05487E;
}

.non-standard input:checked ~ .box-tick,
.checkbox input:checked ~ .box-tick,
.check-line .checkbox input:checked ~ .box-tick {
    border: 2px solid #03497E;
}

.non-standard input:checked ~ .box-tick::after,
.checkbox input:checked ~ .box-tick::after,
.check-line .checkbox input:checked ~ .box-tick::after {
    background: url(../img/checkbox-check.svg);
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    display: block;
    content: '';
}

.check-line .checkbox input:checked ~ .box-tick::after {
    background-size: 80%;
}

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

/* Show the checkmark when checked */
.checkbox input:checked ~ .box-tick:after {
    display: block;
}

/* Style the checkmark/indicator */
/*.checkbox .box-tick:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}*/

