/* ── Trigger button ─────────────────────────────────────────────────────── */
.wiz-ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: var(--wiz-ep-btn-bg, #ffffff);
    color: var(--wiz-ep-btn-color, #111827);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
    text-transform: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.wiz-ep-btn svg {
    fill: currentColor;
    stroke: currentColor;
}

.elementor-widget-wiz_edit_profile .wiz-edit-profile .wiz-ep-btn:hover {
    background-color: var(--wiz-ep-btn-hover-bg, #f9fafb);
    color: var(--wiz-ep-btn-hover-color, var(--primary, #111827));
}
/* 
.elementor-widget-wiz_edit_profile .wiz-edit-profile .wiz-ep-btn:hover svg {
    fill: var(--wiz-ep-btn-hover-icon, var(--primary, #111827));
    stroke: var(--wiz-ep-btn-hover-icon, var(--primary, #111827));
} */

/* ── Drawer shell: header / scrollable body / footer (CDED pattern) ─────── */
.wiz-ep-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.wiz-ep-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e4e4e4;
    flex-shrink: 0;
}

.wiz-ep-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
}

.wiz-ep-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wiz-ep-drawer-close svg,
.wiz-ep-drawer-close i {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.wiz-ep-drawer-close:hover {
    opacity: 1;
}

.wiz-ep-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
}

/* ── Form — space FormBuilder fields evenly ──────────────────────────────── */
.wiz-ep-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Footer — flex sibling, not margin-top: auto ─────────────────────────── */
.wiz-ep-drawer-footer {
    flex-shrink: 0;
    padding: 16px 24px;
    border-top: 1px solid #e4e4e4;
}

.wiz-ep-save-btn {
    width: 100%;
    padding: 10px 18px;
    background: var(--primary, #111827);
    color: var(--primary-text, #fff);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.wiz-ep-save-btn:hover:not(:disabled) {
    filter: brightness(0.88);
}

.wiz-ep-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
