.rfcf-form {
    color: var(--rf-text, #000);
    background: var(--rf-bg, #fff);
    accent-color: var(--rf-green, #32774f);
}
.rfcf-form .rfcf-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: var(--rf-columns, repeat(2, minmax(0, 1fr)));
    margin-block: .75rem;
}
.rfcf-form .rfcf-row > * { min-width: 0; }
.rfcf-form .rfcf-30-70 { --rf-columns: minmax(0, 3fr) minmax(0, 7fr); }
.rfcf-form .rfcf-40-60 { --rf-columns: minmax(0, 2fr) minmax(0, 3fr); }
.rfcf-form .rfcf-60-40 { --rf-columns: minmax(0, 3fr) minmax(0, 2fr); }
.rfcf-form .rfcf-70-30 { --rf-columns: minmax(0, 7fr) minmax(0, 3fr); }
.rfcf-form .rfcf-thirds { --rf-columns: repeat(3, minmax(0, 1fr)); }
.rfcf-form :is(input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=hidden]), select, textarea) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    color: inherit;
    border: 1px solid #7f8996;
    border-radius: .375rem;
    padding: .55rem .65rem;
    font-size: max(1rem, 16px);
}
.rfcf-form img { max-width: 100%; height: auto; }
.rfcf-form :is(.wpcf7-not-valid-tip, .rfcf-phone-warning) { color: #801c35; font-size: .9em; }
.rfcf-form .rfcf-phone-warning:not([hidden]) { display: block; margin-top: .25rem; }
.rfcf-form :is(button, [type=submit]) {
    color: #fff;
    background: var(--rf-navy, #183253);
    border: 1px solid transparent;
    border-radius: .375rem;
    padding: .55rem 1rem;
}
.rfcf-form .rfcf-optin, .rfcf-form .rfcf-switch label { display: inline-flex; align-items: center; gap: .55rem; }
.rfcf-form .rfcf-switch input[type=checkbox] {
    appearance: none;
    width: 2.65rem;
    height: 1.5rem;
    flex: 0 0 auto;
    background: #68717d;
    border-radius: 1rem;
    border: 2px solid transparent;
    margin: 0;
    cursor: pointer;
}
.rfcf-form .rfcf-switch input[type=checkbox]::before {
    content: '';
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    margin: .075rem;
    border-radius: 50%;
    background: #fff;
}
.rfcf-form .rfcf-switch input[type=checkbox]:checked { background: var(--rf-green, #32774f); }
.rfcf-form .rfcf-switch input[type=checkbox]:checked::before { transform: translateX(1.08rem); }
.rfcf-form :focus-visible, .rfcf-panel :focus-visible { outline: 2px solid #406eac; outline-offset: 2px; }
.rfcf-form .rfcf-help {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}
.rfcf-form .rfcf-help summary {
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    width: 1.65rem;
    height: 1.65rem;
    color: var(--rf-navy, #183253);
    list-style: none;
}
.rfcf-form .rfcf-help summary::-webkit-details-marker { display: none; }
.rfcf-form .rfcf-help p { background: #eff3f8; color: #182c42; padding: .45rem .65rem; margin: .35rem 0; }
@media (max-width: 640px) {
    .rfcf-form .rfcf-row { grid-template-columns: var(--rf-mobile-columns, minmax(0, 1fr)); }
    .rfcf-form .rfcf-mobile-two { --rf-mobile-columns: repeat(2, minmax(0, 1fr)); }
    .rfcf-form .rfcf-mobile-40-60 { --rf-mobile-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.rfcf-panel { max-width: none; }
.rfcf-table-scroll { overflow-x: auto; }
.rfcf-panel table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.rfcf-panel th, .rfcf-panel td { padding: .48rem .52rem; border-bottom: 1px solid #d6dde5; text-align: left; vertical-align: middle; }
.rfcf-panel tbody tr:has(input[type=checkbox]:checked) { background: #eceff2; color: #182c42; }
.rfcf-panel .rfcf-actions, .rfcf-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: .65rem; }
.rfcf-panel .rfcf-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: .5rem;
    margin-block: .65rem;
}
.rfcf-panel .rfcf-filters > label { display: grid; gap: .25rem; min-width: 0; margin: 0; }
.rfcf-panel .rfcf-filters :is(select, button) { box-sizing: border-box; height: 2.85rem; min-height: 0; margin: 0; }
.rfcf-panel .rfcf-filters select { width: 100%; }
.rfcf-panel .rfcf-filters button { justify-self: start; width: auto; padding-inline: 1rem; }
@media (max-width: 560px) {
    .rfcf-panel .rfcf-filters { grid-template-columns: minmax(0, 1fr); }
}
.rfcf-panel :is(button, .rfcf-actions a) {
    display: inline-block;
    background: #f4f6f9;
    color: #183253;
    border: 1px solid #cbd6e0;
    border-radius: .3rem;
    padding: .32rem .48rem;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}
.rfcf-panel .rfcf-actions [aria-current=page] { color: #fff; background: #183253; }
.rfcf-panel td .rfcf-icon-actions { flex-wrap: nowrap; gap: .3rem; margin: 0; }
.rfcf-panel .rfcf-icon-actions .rfcf-icon {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 2.1rem;
    height: 2.1rem;
    min-width: 0;
    min-height: 0;
    flex: none;
    margin: 0;
    padding: 0;
}
.rfcf-panel .rfcf-icon-actions .dashicons { width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.rfcf-panel .rfcf-icon-actions .rfcf-icon:hover { background: #e5edf5; }
.rfcf-stats > div { border: 1px solid #d6dde5; border-radius: .35rem; padding: .4rem .65rem; }
.rfcf-badge { display: inline-block; border-radius: .3rem; white-space: nowrap; padding: .18rem .42rem; }
.rfcf-portal { color: #fff; }
.rfcf-guest { background: #e9eaed; color: #333b46; }
.rfcf-client { background: #dcf1e4; color: #225b39; }
.rfcf-blocked { background: #f5dfe4; color: #771830; }
.rfcf-priority-urgent { background: #801c35; color: #fff; }
.rfcf-priority-important { background: #ffe487; color: #553b00; }
.rfcf-warning { color: #801c35; margin-inline-start: .32rem; }
.rfcf-detail { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(12rem, 1fr); gap: .45rem .75rem; }
.rfcf-detail dt { font-weight: bold; }
.rfcf-detail dd { margin: 0; overflow-wrap: anywhere; }
