.wct-terms-wrapper {
    margin-top: 20px;
}

/* Style for the checkbox input */
.wct-terms-wrapper input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
    border: 2px solid red; /* Red border for unchecked state */
    -webkit-appearance: none; /* Remove default styling */
    appearance: none; /* Remove default styling */
    width: 20px;
    height: 20px;
    border-radius: 3px; /* Optional: rounded corners */
    cursor: pointer;
    position: relative;
}

/* Style for the checkbox when checked */
.wct-terms-wrapper input[type="checkbox"]:checked {
    border: 2px solid blue; /* Blue border for checked state */
    background-color: blue; /* Blue background when checked */
}

/* Add a red asterisk */
.wct-terms-wrapper label::before {
    content: '*';
    color: red;
    margin-right: 5px;
}

/* Hide default checkbox appearance */
.wct-terms-wrapper input[type="checkbox"]::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Checkbox styling for when checked */
.wct-terms-wrapper input[type="checkbox"]:checked::before {
    content: '✓';
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
}

.wct-terms-wrapper label {
    display: inline !important;
}

.ui-dialog-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.ui-dialog {
    z-index: 300 !important;
    width: 600px !important;
    max-width: 600px !important;
}
.ui-dialog .ui-dialog-titlebar-close{
    margin: -22px 0 0 0 !important;
    border: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ui-dialog {
        width: 90% !important;
        max-width: 90% !important;
    }

    .ui-dialog-content {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .ui-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }

    .ui-dialog-content {
        font-size: 12px !important;
    }
}