body.carewex-modern .carewex-registration-grid,
body.carewex-modern .carewex-appointment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

body.carewex-modern .carewex-registration-grid > div,
body.carewex-modern .carewex-appointment-grid > div,
body.carewex-modern .carewex-appointment-grid fieldset {
    min-width: 0;
}

body.carewex-modern .carewex-registration .carewex-registration-age {
    width: 100%;
}

body.carewex-modern .carewex-age-controls,
body.carewex-modern .carewex-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.carewex-modern .carewex-age-controls input {
    max-width: 7rem;
}

body.carewex-modern .carewex-registration-age .ui-datepicker-inline,
body.carewex-modern .carewex-appointment-grid .ui-tree {
    box-sizing: border-box;
    max-width: 100%;
}

body.carewex-modern .carewex-appointment-grid .ui-tree .ui-treenode-label {
    white-space: normal;
    overflow-wrap: anywhere;
}

body.carewex-modern .carewex-appointment-details {
    width: 100%;
}

body.carewex-modern .carewex-appointment-details .ui-selectonemenu {
    box-sizing: border-box;
    max-width: 100%;
}

body.carewex-modern .carewex-form-actions {
    justify-content: flex-end;
    border-top: 1px solid #cee2df;
    margin-top: 12px;
    padding-top: 12px;
}

body.carewex-modern .carewex-form-footer .carewex-form-actions {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 960px) {
    body.carewex-modern .carewex-appointment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    body.carewex-modern .carewex-registration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
