.check-wrapper .type--check {
    position: relative;
    padding: 11px 14px;
    line-height: 1;
    border: 1px solid black; /* Change border to black */
    border-radius: 8px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    cursor: pointer;
    gap: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 40px;
    color: black; /* Ensure text is black */
    background-color: transparent; /* Default background */
}

@media (max-width: 424px) {
    .check-wrapper .type--check {
        padding: 10px;
    }
}

.check-wrapper .type--check .type--input {
    position: relative;
    border-radius: 4px;
    width: 16px;
    height: 16px;
    border: 1px solid black;
    cursor: pointer;
}

.check-wrapper .type--check .type--input::before {
    position: absolute;
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #000;
    font-size: 0.75rem;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.check-wrapper .type--check .type-text {
    font-size: 14px;
    color: black; /* Ensure text is black */
}

.type--check:has(input:checked) {
    background-color: #fda862; /* Change background to #fda862 */
    border-color: #fda862; /* Change border to #fda862 */
}

.type--check:has(input:checked) .type-text {
    color: white !important; /* Override text color to white */
}

.type--check:has(input:checked) .type--input::before {
    opacity: 1;
    color: white; /* Ensure checkmark is white */
}

.type--check:has(input:checked) .type--input {
    border-color: #fda862; /* Change border to #fda862 */
}
