/* TinyMCE positions its controls inline. Use normal flow inside this dialog. */
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] {
    box-sizing: border-box;
    width: min(24rem, calc(100vw - 2 * var(--space-page-x))) !important;
    height: auto !important;
    max-height: calc(100vh - 2 * var(--space-page-x));
    max-height: calc(100dvh - 2 * var(--space-page-x));
    overflow: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-modal);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-window-head {
    display: flex;
    height: auto;
    align-items: center;
    padding: var(--profile-space-md);
    border: 0;
    background: var(--color-bg-tint-blue);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-title {
    display: flex;
    align-items: center;
    gap: var(--profile-space-sm);
    padding: 0;
    margin-inline-end: var(--h-touch);
    color: var(--color-heading);
    font: var(--weight-bold) var(--text-xl)/var(--leading-heading) var(--font-family);
    white-space: normal;
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-title .mce-i-table {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--h-small);
    height: var(--h-small);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-link-brand);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-window-head .mce-close {
    position: absolute;
    inset: 50% var(--profile-space-xs) auto auto;
    transform: translateY(-50%);
    width: var(--h-touch);
    height: var(--h-touch);
    margin: 0;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] :is(.mce-window-body, .mce-form, .mce-formitem, .mce-form .mce-container-body, .mce-foot, .mce-foot > .mce-container-body) {
    position: static;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    min-width: 0;
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-form > .mce-container-body,
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot > .mce-container-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--profile-space-sm);
    padding: var(--profile-space-md);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-abs-end { display: none; }
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-formitem label {
    position: static;
    display: block;
    width: auto !important;
    height: auto !important;
    margin-bottom: var(--profile-space-xs);
    color: var(--color-body);
    font: var(--weight-bold) var(--text-base)/var(--leading-normal) var(--font-family);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-formitem input[type="number"] {
    position: static;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    height: var(--h-touch) !important;
    padding: 0 var(--profile-space-sm);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-heading);
    font: var(--weight-bold) var(--text-lg)/normal var(--font-family);
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .hr-editor-table-size-hint {
    display: block;
    margin: 0 var(--profile-space-md) var(--profile-space-sm);
    color: var(--color-muted);
    font: var(--text-base)/var(--leading-normal) var(--font-family);
    white-space: normal;
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot {
    border: 0 !important;
    background: var(--color-white);
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot > .mce-container-body { padding-top: var(--profile-chip-pad-y); }
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-btn {
    position: static;
    box-sizing: border-box;
    width: auto !important;
    height: var(--h-touch) !important;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    box-shadow: none;
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-btn button { border-radius: inherit; }
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-txt {
    color: var(--color-body);
    font: var(--weight-bold) var(--text-base)/var(--leading-normal) var(--font-family);
    text-shadow: none;
}
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-primary { background: var(--color-link-brand); border-color: var(--color-link-brand); }
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-primary .mce-txt { color: var(--color-white); }
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-formitem input:focus,
body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] :is(.mce-btn, button):focus-visible {
    outline: var(--hc-focus-width) solid var(--color-link-brand);
    outline-offset: var(--hc-focus-offset);
}
@media (hover: hover) {
    body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-window-head .mce-close:hover,
    body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-btn:hover { background: var(--color-bg-tint-blue); }
    body.page-template-user_dashboard_favorites .mce-window[data-editor-table-dialog] .mce-foot .mce-primary:hover { background: var(--color-primary-hover); }
}
