.calnform-status { font-size: .9rem; line-height: 1.5; margin: .75rem 0; white-space: pre-line; }
.calnform-unavailable { font-size: .9rem; line-height: 1.5; margin: .75rem 0; white-space: pre-line; border-left: 4px solid #d63638; padding: .5rem .75rem; background: rgba(214, 54, 56, .06); }
.calnform-manage { max-width: 42rem; }
.calnform-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.calnform-controls[hidden], .calnform-controls [hidden], .calnform-manage [hidden] { display: none; }
.calnform-controls label { display: grid; gap: .4rem; flex: 1 1 12rem; }
.calnform-controls input, .calnform-controls select { width: 100%; padding: .65rem; }
.calnform-controls button { padding: .65rem 1rem; cursor: pointer; }
.calnform-controls button:disabled { cursor: default; opacity: .6; }
/* Override the native disabled-cell opacity, which made dates nearly white. */
#ui-datepicker-div.calnform-date-style-overrides td.calnform-date-open a.ui-state-default {
    color: #2457a7 !important;
    background: #ffffff !important;
    border-color: #d9dde3 !important;
}
#ui-datepicker-div.calnform-date-style-overrides td.calnform-date-closed,
#ui-datepicker-div.calnform-date-style-overrides td.calnform-date-closed.ui-state-disabled { opacity: 1 !important; }
#ui-datepicker-div.calnform-date-style-overrides td.calnform-date-closed span {
    color: #686e7b !important;
    background: #eef0f3 !important;
    border-color: #d9dde3 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

/* Keep the shared jQuery UI popup hidden until jQuery UI shows it (inline display:block). */
#ui-datepicker-div { display: none; }

.calnform-cancel-section { flex: 1 1 100%; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.calnform-manage .is-style-outline { background: transparent; color: inherit; border: 1px solid currentColor; }
.calnform-date-readable { margin: .4rem 0; font-size: .95em; }

/* CAL-94: "Booking by CalNForm" credit, opt-in. Small and muted, theme font; themes restyle .calnform-credit. */
.calnform-credit { margin: 0.5em 0 0; font-family: inherit; font-size: 12px; line-height: 1.5; opacity: 0.7; text-align: inherit; }
.calnform-credit a { color: inherit; text-decoration: underline; }
