.checkbox {
    position: relative;
    cursor: pointer;
    display: inline-flex !important;
    align-items: flex-start;
    margin-top:-3px;
}
.checkbox input[type=radio] ~ label, .checkbox input[type=checkbox] ~ label {
    position: relative;
    display: inline-flex;
    align-items:center;
    gap:8px;
    font-size:16px;
}
.checkbox input[type=radio] ~ label:before, 
.checkbox input[type=radio] ~ label:after, 
.checkbox input[type=checkbox] ~ label:before, 
.checkbox input[type=checkbox] ~ label:after {
    display: flex;
    content: "";
    transition: 0.4s cubic-bezier(0.4, 0, 0.23, 1);
}
.checkbox input[type=radio] ~ label:after, 
.checkbox input[type=checkbox] ~ label:after {
    position: absolute;
    z-index: 4;
}
.checkbox input[type=radio] ~ label:before, .checkbox input[type=checkbox] ~ label:before {
    flex-shrink: 0;
    width:20px;
    height:20px;
    margin-top:0;
    z-index: 3;
    background-color:var(--color-textbox);
    border: 1px solid var(--border-light-color);
}
.checkbox input[type=checkbox] ~ label:before {
    border-radius:4px; 
}
.checkbox input[type=checkbox] ~ label:after {
    top: 50%;
    left: calc((20px - 12px) / 2);
    display: inline-flex;
    width: 12px;
    height:12px;
    background-color: var(--text-basic-color);
    forced-color-adjust: none;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
    -webkit-mask-image: url(../images/icon/icon_checkbox_checked.svg);
    mask-image: url(../images/icon/icon_checkbox_checked.svg);
    background-color: var(--krds-form-check--checkbox-check-color-element);
    transform: translateY(-50%);
}
.checkbox input[type=checkbox]:checked ~ label:after {
    background-color:var(--text-basic-color);
    transition-delay: 0.1s;
}

.checkbox input[type=checkbox]:checked ~ label:before {
    background-color:var(--color-textbox);
    border-color:var(--text-basic-color);
}
.checkbox input[type=checkbox] ~ label:before {
    border-radius:4px;
}
.checkbox__input {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    z-index: -1;
}
.checkbox input[type=radio]:disabled ~ label:before, .checkbox input[type=checkbox]:disabled ~ label:before {
    background-color:#cdd1d5 !important;
    border-color:#8a949e !important;
}


.checkbox input[type=radio] ~ label:before, .checkbox input[type=checkbox] ~ label:before {
    flex-shrink: 0;
    width:20px;
    height: 20px;
    z-index: 3;
    background-color:var(--color-textbox);
    border: 0.1rem solid var(--border-light-color);
}
.checkbox input[type=radio]:checked ~ label:before {
    border-color: var(--text-basic-color);
}
.checkbox input[type=radio] ~ label:before {
    border-radius: 4px;
}
.checkbox input[type=radio] ~ label:after {
    top: calc(20px - 12px / 2);
    left: calc((20px - 12px) / 2);
    width: 12px;
    height: 12px;
    background-color:var(--color-textbox);
    border-radius:100%;
}
.checkbox input[type=radio]:checked ~ label:after {
    background-color: var(--text-basic-color);
}