
/*CUSTOM RADIO / checkbox*/

.custom-checkbox-plain input[type=checkbox],.custom-radio-plain  input[type=radio]{
    display: none;
}
.custom-checkbox  ,.custom-radio-plain ,.custom-checkbox-plain,
.custom-radio   {

    /*margin-top: 1rem;*/
    display: flex;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.custom-checkbox__container.form-control ,
.custom-radio__container.form-control {
    height: auto;
    border: 0;
    max-width: 135px;
    padding: 0;
}
.custom-checkbox__container input[type=checkbox],.custom-radio__container input[type=radio]{
    display: none;
}
label.custom-radio__label ,label.custom-checkbox__label {
    display: flex;
    pointer-events: auto;
    flex-direction: column;
    cursor: pointer;
    gap: 0.5rem;
    overflow: visible;
}.custom-checkbox__img ,.custom-radio__img {
     overflow: hidden;
     aspect-ratio: 1;
     transition: all var(--animation-timing)  var(--animation-transition);
     position:relative;
     border-radius: var(--image-border-radius-mobile);
     border: 1px solid var(--color-gray-3);
     background: linear-gradient(0deg,var(--color-gray-2) 0%, var(--color-gray-2) 100%);
 }
.custom-checkbox__img img,
.custom-radio__img img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    width: auto;
    height: auto;
}
input:checked ~ label .custom-checkbox__img,
input:checked ~ label .custom-radio__img {
    border: 2px solid var(--color-green-2);
}input:checked ~ label .custom-radio__img::after ,
 input:checked ~ label .custom-checkbox__img::after {
     content: "";
     width: 2rem;
     height: 2rem;
     display: inline-block;
     vertical-align: middle;
     transition: inherit;
     position: absolute;
     background-color: var(--color-green-2);
     background-image: url(/Frontend/Client/Assets/Icons/check.svg);
     border-bottom-left-radius: var(--image-border-radius-mobile);
     right: 0;
     top: 0;
     background-size: 1rem;
     background-repeat: no-repeat;
     background-position: center;
 }
input:checked ~ label.custom-radio__label  ,
input:checked ~ label.custom-checkbox__label  {
    font-weight: var(--font-weight-bold);
}
label.custom-checkbox__label:hover .custom-radio__img,
label.custom-radio__label:hover .custom-radio__img {
    border: 1px solid var(--color-black);
    box-shadow: var(--shadow-1);
}
.custom-radio-plain__label ,
.custom-checkbox-plain__label {
    padding: 0.5rem 1rem;
    pointer-events: auto;
    transition: all var(--animation-timing)  var(--animation-transition);
    cursor: pointer;
    border-radius: var(--image-border-radius-mobile);
    border: 1px solid var(--color-gray-3);
    display: inline-flex;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    font-size: 1rem;
}
input:checked ~  .custom-radio-plain__label ,
input:checked ~  .custom-checkbox-plain__label
{
    font-weight: var(--font-weight-bold);
    background: var(--color-green-1);
    border-color: var(--color-green-1);
}
input:checked ~  .custom-radio-plain__label::before ,
input:checked ~  .custom-checkbox-plain__label::before {
    min-width: 1.5rem;
    content: "";
    height: 1.5rem;
    margin: -0.2rem 0;
    display: inline-block;
    vertical-align: middle;
    transition: inherit;
    background-image: url(/Frontend/Client/Assets/Icons/check.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
label.custom-radio-plain__label:hover ,
label.custom-checkbox-plain__label:hover  {
    border: 1px solid var(--color-black);
    box-shadow: var(--shadow-1);
}
.custom-radio-plain__container.form-control ,
.custom-checkbox-plain__container.form-control  {
    height: auto;
    border: 0;
    min-height: auto;
    max-width: 100%;
    padding: 0;
    width: auto;
}


.custom-radio__img .radio_image_select,
.custom-checkbox__img .radio_image_select{
    display: none;
}

input:checked ~ label .custom-radio__img .radio_image_select,
input:checked ~ label .custom-checkbox__img .radio_image_select{
    display: unset !important;
}
input:checked ~ label .custom-radio__img .radio_image_base,
input:checked ~ label .custom-checkbox__img .radio_image_base{
    display: none;
}