/* Add/Edit integration: full-page 3-step wizard shell. */

.iafwzc-hidden {
    display: none;
}

.iafwzc-wizard-topbar {
    margin-bottom: 16px;
}

.iafwzc-wizard-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: var(--iafwzc-radius-sm, 8px);
    background: var(--iafwzc-card-bg, #fff);
    color: var(--iafwzc-body-text, #4a4f66);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.iafwzc-wizard-back-link:hover {
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-wizard-card {
    background: var(--iafwzc-card-bg, #fff);
    border: 1px solid var(--iafwzc-border-100, #eceef5);
    border-radius: var(--iafwzc-radius-md, 14px);
    box-shadow: var(--iafwzc-shadow-card, 0 4px 16px rgba(20, 22, 50, .04));
    overflow: hidden;
}

/* ── Step indicator ── */
.iafwzc-wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--iafwzc-border-100, #eceef5);
    flex-wrap: wrap;
}

.iafwzc-wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iafwzc-wizard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--iafwzc-border-300, #f1f2f7);
    color: var(--iafwzc-muted-text, #8a8fa6);
    font-size: 13px;
    font-weight: 800;
}

.iafwzc-wizard-step-active .iafwzc-wizard-step-num {
    background: var(--iafwzc-primary-grad-end, #6a4cf0);
    color: #fff;
}

.iafwzc-wizard-step-done .iafwzc-wizard-step-num {
    background: var(--iafwzc-success, #10b981);
    color: #fff;
}

.iafwzc-wizard-step-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.iafwzc-wizard-step-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--iafwzc-muted-text, #8a8fa6);
}

.iafwzc-wizard-step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--iafwzc-muted-text, #8a8fa6);
}

.iafwzc-wizard-step-active .iafwzc-wizard-step-title,
.iafwzc-wizard-step-done .iafwzc-wizard-step-title {
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-wizard-step-line {
    width: 48px;
    height: 1px;
    background: var(--iafwzc-border-200, #e4e6ef);
    flex-shrink: 0;
}

/* ── Panels ── */
.iafwzc-wizard-panel {
    padding: 28px 24px;
}

.iafwzc-wizard-step1-card {
    max-width: 600px;
    margin: 0 auto;
}

.iafwzc-wizard-step1-card .iafwzc-setup-table {
    margin-top: 0;
}

.iafwzc-wizard-popup-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--iafwzc-ink, #1b1d2a);
    text-align: center;
    margin: 24px 0 0;
}

.iafwzc-setup-fieldmapping-block {
    margin-top: 0 !important;
}

.iafwzc-setup-action-inner {
    padding-left: 22px;
    padding-top: 20px;
}

.iafwzc-setup-action-radios {
    padding: 9px;
}

.iafwzc-setup-th-spacer {
    border: none;
    background: none;
}

.iafwzc-option-pro {
    color: gray;
}

/* ── Footer (Back / Continue / Save) ── */
.iafwzc-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--iafwzc-border-100, #eceef5);
}

.iafwzc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: var(--iafwzc-radius-sm, 8px);
    background: var(--iafwzc-card-bg, #fff);
    color: var(--iafwzc-body-text, #4a4f66);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.iafwzc-btn-secondary:hover {
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 782px) {
    .iafwzc-wizard-panel {
        padding: 20px 16px;
    }
}

/* ============================================================
 * Reference-design redesign of the wizard's own form controls
 * (Steps 1-3). The shell above (stepper/card/footer) already matched;
 * everything below restyles the fields/table/cards inside it and skins
 * the <select> elements with the shared searchable-dropdown component
 * (see iafwzc-select-skin.js).
 * ============================================================ */

/* ── Help tooltip: align to the shared dark-bubble look ── */
.iafwzc-help-icon-wrapper {
    display: inline-flex;
    vertical-align: middle;
}

.iafwzc-help-icon {
    width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 10px;
    background: var(--iafwzc-border-300, #f1f2f7);
    color: var(--iafwzc-muted-text, #8a8fa6);
}

.iafwzc-help-icon-wrapper:hover .iafwzc-help-icon {
    background: var(--iafwzc-lavender-100, #ebe5ff);
    color: var(--iafwzc-primary-grad-end, #6a4cf0);
}

.iafwzc-help-tooltip {
    background: var(--iafwzc-ink, #1b1d2a) !important;
    border-radius: var(--iafwzc-radius-sm, 10px);
    font-family: var(--iafwzc-font);
    width: 270px !important;
}

.iafwzc-help-tooltip::after {
    border-color: var(--iafwzc-ink, #1b1d2a) transparent transparent transparent !important;
}

/* ── Step 1 fields ── */
.iafwzc-wizard-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.iafwzc-wizard-field:last-child {
    margin-bottom: 0;
}

.iafwzc-wizard-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-required {
    color: var(--iafwzc-error, #e0393e);
}

.iafwzc-wizard-field .iafwzc-input,
.iafwzc-wizard-field select.iafwzc-input {
    width: 100%;
}

/* ── Shared searchable-dropdown skin (button + floating panel) ──
   Used for Step 1's destination fields, Step 2/3's field pickers, and the
   Attachments multi-select (.iafwzc-multi-combo reuses the same classes). */
.iafwzc-skin-combo {
    position: relative;
    width: 100%;
}

.iafwzc-skin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: var(--iafwzc-radius-sm, 10px);
    background: var(--iafwzc-card-bg, #fff);
    font-family: var(--iafwzc-font);
    font-size: 13.5px;
    color: var(--iafwzc-ink, #1b1d2a);
    cursor: pointer;
    text-align: left;
}

.iafwzc-skin-btn:hover {
    border-color: var(--iafwzc-lavender-border-300, #c9bdfb);
}

.iafwzc-skin-combo.iafwzc-skin-open .iafwzc-skin-btn,
.iafwzc-multi-combo.iafwzc-skin-open .iafwzc-skin-btn {
    border-color: var(--iafwzc-primary-grad-start, #8b6cf8);
    box-shadow: 0 0 0 3px var(--iafwzc-lavender-100, #ebe5ff);
}

.iafwzc-skin-combo.iafwzc-skin-error .iafwzc-skin-btn {
    border-color: var(--iafwzc-error, #e0393e);
    box-shadow: 0 0 0 3px var(--iafwzc-error-bg, #fdecec);
}

.iafwzc-skin-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.iafwzc-skin-btn-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iafwzc-skin-btn-placeholder {
    color: var(--iafwzc-muted-text-2, #9aa0b4);
    font-weight: 400;
}

.iafwzc-skin-badge {
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--iafwzc-error, #e0393e);
    background: var(--iafwzc-error-bg, #fdecec);
    border-radius: 5px;
    padding: 2px 6px;
}

.iafwzc-skin-lock,
.iafwzc-skin-chevron {
    display: none;
    flex-shrink: 0;
    color: var(--iafwzc-muted-text, #8a8fa6);
}

.iafwzc-skin-combo:not(.iafwzc-skin-locked) .iafwzc-skin-chevron,
.iafwzc-multi-combo .iafwzc-skin-chevron {
    display: flex;
    transition: transform 0.15s ease;
}

.iafwzc-skin-combo.iafwzc-skin-open .iafwzc-skin-chevron,
.iafwzc-multi-combo.iafwzc-skin-open .iafwzc-skin-chevron {
    transform: rotate(180deg);
}

.iafwzc-skin-combo.iafwzc-skin-locked .iafwzc-skin-lock {
    display: flex;
}

.iafwzc-skin-combo.iafwzc-skin-locked .iafwzc-skin-btn {
    background: var(--iafwzc-border-300, #f1f2f7);
    border-style: dashed;
}

.iafwzc-skin-panel,
.iafwzc-multi-combo .iafwzc-skin-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: var(--iafwzc-card-bg, #fff);
    border: 1px solid var(--iafwzc-lavender-border-200, #e3dcfc);
    border-radius: var(--iafwzc-radius-sm, 12px);
    box-shadow: var(--iafwzc-shadow-menu, 0 18px 40px -12px rgba(30, 30, 70, .28));
    z-index: 120;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iafwzc-skin-panel[hidden] {
    display: none;
}

.iafwzc-skin-search-wrap {
    position: relative;
}

.iafwzc-skin-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iafwzc-muted-text-2, #9aa0b4);
    display: flex;
    pointer-events: none;
}

.iafwzc-skin-search {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 10px 0 34px;
    border: 1px solid var(--iafwzc-border-100, #e9ebf2);
    border-radius: 8px;
    background: var(--iafwzc-page-bg, #f8f9fc);
    font-family: var(--iafwzc-font);
    font-size: 13.5px;
    color: var(--iafwzc-ink, #1b1d2a);
    outline: none;
}

.iafwzc-skin-search:focus {
    border-color: var(--iafwzc-lavender-border-300, #c9bdfb);
    background: #fff;
}

.iafwzc-skin-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iafwzc-skin-group-label {
    padding: 10px 10px 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--iafwzc-muted-text, #7a7f96);
}

.iafwzc-skin-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    text-align: left;
}

.iafwzc-skin-option:hover {
    background: var(--iafwzc-lavender-300, #f6f4fe);
}

.iafwzc-skin-option.is-selected {
    background: var(--iafwzc-lavender-200, #f1edff);
}

.iafwzc-skin-option-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.iafwzc-skin-option-disabled:hover {
    background: none;
}

.iafwzc-skin-option-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.iafwzc-skin-option-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--iafwzc-ink, #1b1d2a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iafwzc-skin-option.is-selected .iafwzc-skin-option-label {
    font-weight: 700;
}

.iafwzc-skin-option-sub {
    font-size: 11.5px;
    color: var(--iafwzc-muted-text-2, #9aa0b4);
}

.iafwzc-pro-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f5a623;
    color: #ffffff;
    font-size: 8px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* The connection popup of the wizard: why the sign-in failed (same look as on the Connections page). */
#iafwzc-conn-modal .iafwzc-auth-message {
    margin: 0 0 4px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}
#iafwzc-conn-modal .iafwzc-auth-error { background: #fdecec; color: #c0282d; border: 1px solid #f6c9cb; }

/* One PRO badge for the whole "Add additional details" section, next to its help icon. */
.iafwzc-addl-details-header .iafwzc-pro-badge {
    display: none; /* shown only while the section's toggle is on */
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 10.5px;
    letter-spacing: .4px;
}

.iafwzc-addl-details-header:has(#iafwzc-setup-addl-toggle:checked) .iafwzc-pro-badge {
    display: inline-flex;
}

/* Notes / Tags / Attachments without a Pro license: shown but locked. */
.iafwzc-addl-col-locked textarea,
.iafwzc-addl-col-locked .iafwzc-insert-field-btn,
.iafwzc-addl-col-locked .iafwzc-attach-rows {
    opacity: .55;
    cursor: not-allowed;
}

.iafwzc-skin-option-pro {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f5a623;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.iafwzc-skin-option-check {
    flex-shrink: 0;
    color: var(--iafwzc-primary-grad-end, #6a4cf0);
    display: flex;
}

.iafwzc-skin-empty {
    padding: 18px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--iafwzc-muted-text-2, #9aa0b4);
}

/* ── Step 2: field-mapping table ── */
.iafwzc-fm-card {
    background: var(--iafwzc-card-bg, #fff);
    border: 1px solid var(--iafwzc-border-100, #eceef5);
    border-radius: var(--iafwzc-radius-md, 14px);
    overflow: hidden;
}

.iafwzc-fm-table {
    width: 100%;
    border-collapse: collapse;
}

.iafwzc-fm-table thead th.iafwzc-setup-th {
    background: var(--iafwzc-lavender-100, #ebe5ff);
    color: var(--iafwzc-primary-text-hover, #4b31c9);
    text-transform: uppercase;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 10px 14px;
}

.iafwzc-fm-table thead th.iafwzc-setup-th-spacer {
    background: var(--iafwzc-lavender-100, #ebe5ff);
    width: 84px;
}

.iafwzc-fm-table tbody td.iafwzc-setup-td {
    vertical-align: middle;
    padding: 7px 14px;
    position: relative;
}

.iafwzc-fm-table tbody td.iafwzc-setup-td:nth-child(3) {
    padding-left: 0;
}

/* Reserved via the first column's own right padding (not a table-wide
   border-spacing gap, which would also split the solid header bar above
   into two separate blocks) - no extra <td> needed, so
   iafwzc_addRow()/iafwzc_buildZohoSelect() don't have to change how many
   cells a row has. */
.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child {
    padding-right: 34px;
}

.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child::after {
    content: "\2192";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iafwzc-muted-text, #8a8fa6);
    font-size: 15px;
    pointer-events: none;
}

.iafwzc-fm-table tbody tr:not(:last-child) td.iafwzc-setup-td {
    border-bottom: 1px solid var(--iafwzc-border-300, #f4f5f9);
}

.iafwzc-fm-td-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.iafwzc-fm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: 8px;
    background: var(--iafwzc-card-bg, #fff);
    color: var(--iafwzc-body-text, #6b7085);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.iafwzc-fm-icon-btn:hover:not(:disabled) {
    border-color: var(--iafwzc-lavender-border-300, #c9bdfb);
    color: var(--iafwzc-primary-grad-end, #6a4cf0);
    background: #faf8ff;
}

.iafwzc-fm-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.iafwzc-fm-icon-btn-danger:hover:not(:disabled) {
    border-color: #f5c2c2;
    color: var(--iafwzc-error, #e0393e);
    background: #fff7f7;
}

.iafwzc-fm-icon-btn-locked {
    cursor: default;
    color: var(--iafwzc-muted-text-2, #9aa0b4);
}

/* Legacy classes the field-mapping JS still builds elements with
   (iafwzc-fm-setup-select, custom-value input/suggestions) - sized to sit
   inside the new skinned layout instead of the old fixed 200px boxes. */
.iafwzc-setup-fm-custom-wrap,
div:has(> .iafwzc-setup-fm-custom-input) {
    margin-top: 8px;
}

.iafwzc-setup-fm-custom-input {
    width: 100% !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef) !important;
    border-radius: var(--iafwzc-radius-sm, 10px) !important;
    color: var(--iafwzc-ink, #1b1d2a) !important;
    font-family: var(--iafwzc-font);
    padding: 0 12px !important;
}

/* ── Step 2: Add additional details ── */
.iafwzc-addl-details {
    margin-top: 16px;
    background: var(--iafwzc-card-bg, #fff);
    border: 1px solid var(--iafwzc-border-100, #eceef5);
    border-radius: var(--iafwzc-radius-md, 14px);
    overflow: hidden;
}

.iafwzc-addl-details-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
}

.iafwzc-addl-details-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-addl-details-spacer {
    flex: 1;
}

.iafwzc-addl-details-body {
    border-top: 1px solid var(--iafwzc-border-100, #f1f2f7);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iafwzc-addl-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.iafwzc-addl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--iafwzc-lavender-100, #ebe5ff);
    color: var(--iafwzc-primary-grad-end, #6a4cf0);
    flex-shrink: 0;
}

.iafwzc-addl-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iafwzc-addl-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-addl-textarea {
    width: 100%;
    resize: vertical;
    min-height: 90px;
    font-family: var(--iafwzc-font);
}

.iafwzc-insert-field-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--iafwzc-lavender-border-100, #d9cffb);
    border-radius: 8px;
    background: var(--iafwzc-lavender-300, #faf8ff);
    color: var(--iafwzc-primary-text, #5b3fe0);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.iafwzc-insert-field-btn:hover {
    background: var(--iafwzc-lavender-200, #f1edff);
}

.iafwzc-insert-field-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    max-height: 220px;
    overflow-y: auto;
    background: var(--iafwzc-card-bg, #fff);
    border: 1px solid var(--iafwzc-lavender-border-200, #e3dcfc);
    border-radius: 10px;
    box-shadow: var(--iafwzc-shadow-menu, 0 18px 40px -12px rgba(30, 30, 70, .28));
    z-index: 130;
    padding: 6px;
}

.iafwzc-insert-field-menu .iafwzc-skin-option {
    font-weight: 500;
    color: var(--iafwzc-ink, #1b1d2a);
}

/* ── Tags chip input ── */
.iafwzc-tag-input-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 8px;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: var(--iafwzc-radius-sm, 10px);
    background: var(--iafwzc-card-bg, #fff);
    cursor: text;
}

.iafwzc-tag-input-box:focus-within {
    border-color: var(--iafwzc-primary-grad-start, #8b6cf8);
    box-shadow: 0 0 0 3px var(--iafwzc-lavender-100, #ebe5ff);
}

.iafwzc-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 6px 0 10px;
    border-radius: 999px;
    background: var(--iafwzc-lavender-200, #f1edff);
    color: var(--iafwzc-primary-text-hover, #4b31c9);
    font-size: 12.5px;
    font-weight: 600;
}

.iafwzc-tag-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.iafwzc-tag-chip-remove:hover {
    background: rgba(90, 63, 224, 0.15);
}

#iafwzc-setup-tag-input {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    font-family: var(--iafwzc-font);
    font-size: 13.5px;
    color: var(--iafwzc-ink, #1b1d2a);
    background: none;
    padding: 4px;
}

/* ── Step 3: Record action card ── */
.iafwzc-action-card-outer {
    border: 1px solid var(--iafwzc-border-100, #eceef5);
    border-radius: var(--iafwzc-radius-md, 16px);
    margin-bottom: 18px;
}

.iafwzc-action-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--iafwzc-border-100, #f1f2f7);
}

.iafwzc-action-card-title,
.iafwzc-filters-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-action-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iafwzc-action-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iafwzc-action-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--iafwzc-border-100, #eceef5);
    background: var(--iafwzc-card-bg, #fff);
    cursor: pointer;
    min-width: 0;
}

.iafwzc-action-card:hover {
    border-color: var(--iafwzc-lavender-border-300, #c9bdfb);
}

.iafwzc-action-card:has(input:checked) {
    border-color: var(--iafwzc-primary-grad-start, #8b6cf8);
    background: var(--iafwzc-lavender-300, #f8f6ff);
}

.iafwzc-action-card-disabled {
    cursor: not-allowed;
}

/* A Pro-only action without a licence: the text and dot are dimmed, the PRO badge stays clear. */
.iafwzc-action-card-disabled .iafwzc-action-dot,
.iafwzc-action-card-disabled .iafwzc-action-text {
    opacity: 0.6;
}

.iafwzc-action-card .iafwzc-pro-badge {
    margin-left: auto;
}

.iafwzc-action-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.iafwzc-action-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--iafwzc-border-200, #e4e6ef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iafwzc-action-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.iafwzc-action-card input:checked + .iafwzc-action-dot {
    border-color: var(--iafwzc-primary-grad-end, #6a4cf0);
}

.iafwzc-action-card input:checked + .iafwzc-action-dot::after {
    background: var(--iafwzc-primary-grad-end, #6a4cf0);
}

.iafwzc-action-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.iafwzc-action-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--iafwzc-ink, #1b1d2a);
}

.iafwzc-action-desc {
    font-size: 12px;
    color: var(--iafwzc-muted-text-2, #9aa0b4);
}

#iafwzc-setup-updateActionName-area {
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* The label's distance to the dropdown is its own margin: jQuery's show() makes the area a block, where a flex gap would be lost. */
#iafwzc-setup-updateActionName-area .iafwzc-action-card-subtitle {
    margin-bottom: 7px;
}

.iafwzc-action-card-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--iafwzc-ink, #1b1d2a);
}

/* ── Step 3: Filters card ── */
.iafwzc-filters-card {
    border: 1px solid var(--iafwzc-border-100, #eceef5);
    border-radius: var(--iafwzc-radius-md, 16px);
}

.iafwzc-filters-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.iafwzc-setup-filter-content {
    border-top: 1px solid var(--iafwzc-border-100, #f1f2f7) !important;
    padding: 14px 18px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hidden until the filter toggle is switched on (setup-filter.js then sets display inline). */
.iafwzc-setup-filter-content.iafwzc-hidden {
    display: none;
}

.iafwzc-filter-columns-label {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--iafwzc-primary-text, #6b5bb8);
    text-transform: uppercase;
    padding: 0 2px;
}

.iafwzc-filter-columns-label span {
    flex: 1 1 300px;
}

.iafwzc-filter-columns-label span:last-child {
    flex: 0 0 74px;
}

.iafwzc-setup-filter-clear-all {
    align-self: flex-end;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--iafwzc-primary-text, #5b3fe0) !important;
}

.iafwzc-setup-filter-field,
.iafwzc-setup-filter-condition {
    display: none;
}

.iafwzc-setup-filter-row .iafwzc-skin-combo {
    flex: 1 1 300px;
}

.iafwzc-setup-filter-value,
.iafwzc-setup-filter-logic-select {
    font-family: var(--iafwzc-font);
    height: 42px !important;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef) !important;
    border-radius: var(--iafwzc-radius-sm, 10px) !important;
    font-size: 13.5px !important;
    color: var(--iafwzc-ink, #1b1d2a);
    padding: 0 12px !important;
}

.iafwzc-setup-filter-logic-select {
    width: auto !important;
    flex: 0 0 auto;
}

.iafwzc-setup-filter-actions {
    flex: 0 0 74px;
}

.iafwzc-setup-filter-add-icon,
.iafwzc-setup-filter-close-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: var(--iafwzc-card-bg, #fff) !important;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef) !important;
    color: var(--iafwzc-body-text, #6b7085) !important;
}

.iafwzc-setup-filter-add-icon:hover {
    border-color: var(--iafwzc-lavender-border-300, #c9bdfb) !important;
    color: var(--iafwzc-primary-grad-end, #6a4cf0) !important;
    background: #faf8ff !important;
}

.iafwzc-setup-filter-close-icon:hover {
    border-color: #f5c2c2 !important;
    color: var(--iafwzc-error, #e0393e) !important;
    background: #fff7f7 !important;
}

@media (max-width: 680px) {
    .iafwzc-setup-filter-row {
        flex-wrap: wrap !important;
    }

    .iafwzc-filter-columns-label {
        display: none;
    }
}

/* ============================================================
 * Reference-design polish for the wizard shell + Step 1
 * (design_handoff_zoho_admin_ui "Integration editor page").
 * Declared last so it wins over setup-fm.css / help.css defaults.
 * ============================================================ */
.iafwzc-wizard-topbar { margin-bottom: 22px; }

.iafwzc-wizard-back-link {
    height: 38px;
    padding: 0 14px 0 10px;
    border-radius: 10px;
    font-size: 14px;
    gap: 8px;
}
.iafwzc-wizard-back-link:hover {
    border-color: #c9bdfb;
    color: #6a4cf0;
}

.iafwzc-wizard-card {
    border-radius: 18px;
    border-color: #eceef5;
    box-shadow: 0 4px 16px rgba(20, 22, 50, .04);
    overflow: visible;
}

/* Stepper bar */
.iafwzc-wizard-stepper {
    flex-wrap: nowrap;
    gap: 0;
    padding: 20px 28px;
    background: #fcfbff;
    border-bottom: 1px solid #f1f2f7;
    border-radius: 18px 18px 0 0;
}
.iafwzc-wizard-step { gap: 10px; flex-shrink: 0; }
.iafwzc-wizard-step-num {
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #e6e3f3;
    color: #9aa0b4;
    font-weight: 800;
}
.iafwzc-wizard-step-active .iafwzc-wizard-step-num {
    background: #6a4cf0;
    border-color: #d8cffc;
    color: #fff;
    box-shadow: 0 0 0 4px #f1edff;
}
.iafwzc-wizard-step-done .iafwzc-wizard-step-num {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
/* Current step that is also complete: stays green, keeps the highlight ring and purple title. */
.iafwzc-wizard-step-active.iafwzc-wizard-step-done .iafwzc-wizard-step-num {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px #d9f5ea;
}
.iafwzc-wizard-step-active.iafwzc-wizard-step-done .iafwzc-wizard-step-title { color: #6a4cf0; }
.iafwzc-wizard-step-text { gap: 1px; }
.iafwzc-wizard-step-eyebrow { font-weight: 700; letter-spacing: .07em; color: #9aa0b4; }
.iafwzc-wizard-step-title { color: #9aa0b4; white-space: nowrap; }
.iafwzc-wizard-step-active .iafwzc-wizard-step-title { color: #6a4cf0; }
.iafwzc-wizard-step-done .iafwzc-wizard-step-title { color: #1b1d2a; }
.iafwzc-wizard-step-line {
    flex: 1;
    width: auto;
    min-width: 20px;
    max-width: 150px;
    height: 2px;
    border-radius: 2px;
    margin: 0 16px;
    background: #e6e3f3;
}
.iafwzc-wizard-stepper { max-width: none; }

/* Panel + Step 1 card */
.iafwzc-wizard-panel { padding: 26px 28px 0; }
.iafwzc-wizard-step1-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid #eceef5;
    border-radius: 16px;
}
.iafwzc-wizard-field { gap: 7px; margin-bottom: 0; }
.iafwzc-wizard-field-label {
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
}
.iafwzc-required { font-weight: 700; margin-left: -3px; }

.iafwzc-app .iafwzc-wizard-field .iafwzc-input,
.iafwzc-app .iafwzc-wizard-field select.iafwzc-input {
    height: 44px;
    max-width: none;
    border-radius: 10px;
    background: #fbfbfe;
    border-color: #e4e6ef;
    font-size: 13px;
}
.iafwzc-app .iafwzc-wizard-field .iafwzc-input:focus {
    background: #fff;
    border-color: #8b6cf8;
    box-shadow: 0 0 0 3px #ece7fe;
}
.iafwzc-wizard-field .iafwzc-skin-btn {
    height: 44px;
    padding: 0 14px;
    background: #fbfbfe;
    font-size: 13px;
}
.iafwzc-wizard-field .iafwzc-skin-combo.iafwzc-skin-open .iafwzc-skin-btn { background: #fff; }
.iafwzc-wizard-field .iafwzc-skin-combo.iafwzc-skin-locked .iafwzc-skin-btn {
    border-style: solid;
    opacity: .6;
}

/* Help icon: outlined "?" circle like the reference */
.iafwzc-wizard .iafwzc-help-icon {
    width: 14px;
    height: 14px;
    font-size: 0;
    line-height: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9adc0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.iafwzc-wizard .iafwzc-help-icon-wrapper:hover .iafwzc-help-icon {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a4cf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

/* Footer: full-width tinted bar */
.iafwzc-wizard-footer {
    margin: 26px -28px 0;
    padding: 14px 28px;
    background: #fcfbff;
    border-top: 1px solid #f1f2f7;
    border-radius: 0 0 18px 18px;
}
.iafwzc-wizard .iafwzc-btn-primary {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b6cf8, #6a4cf0);
    box-shadow: 0 8px 18px -8px rgba(106, 76, 240, .6);
}
.iafwzc-wizard .iafwzc-btn-secondary {
    height: 40px;
    border-radius: 10px;
    color: #1b1d2a;
}
.iafwzc-wizard .iafwzc-btn-secondary:hover { border-color: #c9bdfb; }
.iafwzc-wizard .iafwzc-btn-primary:disabled { opacity: .5; box-shadow: none; }

@media (max-width: 782px) {
    .iafwzc-wizard-stepper { overflow-x: auto; padding: 16px; }
    .iafwzc-wizard-panel { padding: 20px 16px 0; }
    .iafwzc-wizard-footer { margin: 20px -16px 0; padding: 14px 16px; }
}

/* ── Dropdown panel: match reference (search box, indented group options) ──
   `!important` on the search input: wp-admin's `input[type=text]` rules
   (square border, 5px radius, own padding) otherwise win. */
.iafwzc-skin-panel .iafwzc-skin-search {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px 0 34px !important;
    border: 1px solid #e9ebf2 !important;
    border-radius: 8px !important;
    background: #f8f9fc !important;
    box-shadow: none !important;
    font-size: 13.5px !important;
    color: #1b1d2a !important;
    outline: none !important;
    margin: 0 !important;
}
.iafwzc-skin-panel .iafwzc-skin-search:focus {
    border-color: #c9bdfb !important;
    background: #fff !important;
}
.iafwzc-skin-search-icon { left: 11px; }
.iafwzc-skin-search-icon svg { width: 15px; height: 15px; }

.iafwzc-skin-list { padding-right: 2px; scrollbar-width: thin; scrollbar-color: #d4d6e2 transparent; }
.iafwzc-skin-list::-webkit-scrollbar { width: 6px; }
.iafwzc-skin-list::-webkit-scrollbar-button { display: none; height: 0; }
.iafwzc-skin-list::-webkit-scrollbar-thumb { background: #d4d6e2; border-radius: 6px; }
.iafwzc-skin-list::-webkit-scrollbar-track { background: transparent; }

.iafwzc-skin-option { font-family: var(--iafwzc-font); }
.iafwzc-skin-option-label { font-weight: 400; }
.iafwzc-skin-option.is-selected .iafwzc-skin-option-label { font-weight: 600; }
.iafwzc-skin-option.iafwzc-skin-option-grouped { padding-left: 26px; }

/* ── Connection dropdown: logo tile + data-center subtitle + footer action ── */
.iafwzc-skin-option-logo {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid #eceef5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.iafwzc-skin-option-logo img { width: 16px; height: auto; }

.iafwzc-skin-panel .iafwzc-skin-add {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 -8px -8px;
    padding: 10px 18px;
    border-top: 1px solid #f1f2f7;
    border-radius: 0 0 12px 12px;
    background: transparent;
    color: #6a4cf0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
}
.iafwzc-skin-panel .iafwzc-skin-add:hover,
.iafwzc-skin-panel .iafwzc-skin-add:focus {
    background: #f6f4fe;
    color: #6a4cf0;
    outline: none;
    box-shadow: none;
}

/* ── Footer action is a <button> now (opens the Add connection modal) ── */
.iafwzc-skin-panel button.iafwzc-skin-add {
    width: calc(100% + 16px);
    border: none;
    border-top: 1px solid #f1f2f7;
    cursor: pointer;
    font-family: var(--iafwzc-font);
    text-align: left;
}
.iafwzc-skin-lead-icon { display: flex; flex-shrink: 0; color: #6a4cf0; }

/* ── Under the Zoho connection dropdown: Test connection · Reconnect ── */
.iafwzc-conn-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 2px;
}
.iafwzc-conn-actions.iafwzc-hidden { display: none; }
/* "?" beside Refresh from Zoho: the tooltip opens below the icon. */
.iafwzc-conn-refresh-help { margin-left: -6px; }
.iafwzc-conn-refresh-help .iafwzc-help-tooltip {
    top: calc(100% + 8px);
    left: -20px;
    z-index: 20;
    line-height: 1.5;
    white-space: normal;
}
.iafwzc-conn-refresh-help .iafwzc-help-tooltip::after { display: none; }
.iafwzc-conn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #6a4cf0;
    font-family: var(--iafwzc-font);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.iafwzc-conn-action:hover { color: #4b31c9; text-decoration: underline; }
.iafwzc-conn-action-sep { width: 1px; height: 12px; background: #e4e6ef; }
.iafwzc-conn-spinner {
    display: none;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #e3dcfc;
    border-top-color: #6a4cf0;
    animation: iafwzc-conn-spin .7s linear infinite;
}
.iafwzc-conn-action.iafwzc-busy { cursor: progress; text-decoration: none; }
.iafwzc-conn-action.iafwzc-busy .iafwzc-conn-action-icon { display: none; }
.iafwzc-conn-action.iafwzc-busy .iafwzc-conn-spinner { display: inline-block; }
@keyframes iafwzc-conn-spin { to { transform: rotate(360deg); } }

.iafwzc-conn-empty-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #9a5b00;
}
.iafwzc-conn-empty-hint a { font-weight: 700; color: #6a4cf0; text-decoration: none; }
.iafwzc-conn-empty-hint a:hover { color: #4b31c9; text-decoration: underline; }

/* ── Add connection modal ── */
.iafwzc-conn-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(27, 29, 42, .45);
    backdrop-filter: blur(2px);
}
.iafwzc-conn-modal-overlay.show { display: flex; }
.iafwzc-conn-modal {
    width: 100%;
    max-width: 625px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(20, 22, 50, .45);
    font-family: var(--iafwzc-font);
    color: #1b1d2a;
}
.iafwzc-conn-modal-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 30px 20px;
    border-bottom: 1px solid #f1f2f7;
}
.iafwzc-conn-modal-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #eceef5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.iafwzc-conn-modal-logo img { width: 28px; height: auto; }
.iafwzc-conn-modal-head h3 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1b1d2a;
}
.iafwzc-conn-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #f3f4f9;
    color: #4a4f66;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.iafwzc-conn-modal-close:hover { background: #ebe5ff; color: #6a4cf0; }
.iafwzc-conn-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 30px;
}
.iafwzc-conn-field { display: flex; flex-direction: column; gap: 8px; }
.iafwzc-conn-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4a4f66;
}
.iafwzc-conn-input-wrap { position: relative; }
.iafwzc-conn-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a4cf0;
    pointer-events: none;
}
.iafwzc-app .iafwzc-conn-input-wrap input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    height: 54px;
    padding: 0 14px 0 44px;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    background: #fbfbfe;
    box-shadow: none;
    font-size: 16px;
    color: #1b1d2a;
}
.iafwzc-app .iafwzc-conn-input-wrap input[type="text"]:focus {
    background: #fff;
    border-color: #8b6cf8;
    box-shadow: 0 0 0 3px #ece7fe;
    outline: none;
}
.iafwzc-conn-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iafwzc-conn-product {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.iafwzc-conn-product:hover { border-color: #c9bdfb; }
.iafwzc-conn-product input { position: absolute; opacity: 0; width: 0; height: 0; }
.iafwzc-conn-product-dot {
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #c9ccd8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.iafwzc-conn-product-dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}
.iafwzc-conn-product-name { font-size: 16px; font-weight: 700; color: #1b1d2a; }
.iafwzc-conn-product:has(input:checked) { border-color: #8b6cf8; background: #faf8ff; }
.iafwzc-conn-product:has(input:checked) .iafwzc-conn-product-dot { border-color: #6a4cf0; }
.iafwzc-conn-product:has(input:checked) .iafwzc-conn-product-dot::after { background: #6a4cf0; }
.iafwzc-conn-modal .iafwzc-skin-btn { height: 54px; background: #fbfbfe; font-size: 16px; border-radius: 12px; }
.iafwzc-conn-modal .iafwzc-skin-combo.iafwzc-skin-open .iafwzc-skin-btn { background: #fff; }
.iafwzc-conn-modal .iafwzc-skin-panel { z-index: 130; }
.iafwzc-conn-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 30px;
    background: #fcfbff;
    border-top: 1px solid #f1f2f7;
    border-radius: 0 0 20px 20px;
}
.iafwzc-conn-modal-foot .iafwzc-btn-primary,
.iafwzc-conn-modal-foot .iafwzc-btn-secondary { height: 50px; padding: 0 24px; font-size: 16px; font-weight: 700; border-radius: 12px; }
@media (max-width: 560px) {
    .iafwzc-conn-products { grid-template-columns: 1fr; }
    .iafwzc-conn-modal-head, .iafwzc-conn-modal-body, .iafwzc-conn-modal-foot { padding-left: 18px; padding-right: 18px; }
}

/* ── Dropdown opens upward when there isn't room below ── */
.iafwzc-skin-combo.iafwzc-skin-up .iafwzc-skin-panel {
    top: auto;
    bottom: calc(100% + 6px);
}

/* ── Loading state (module list being fetched): spinner in place of the chevron ── */
.iafwzc-skin-combo.iafwzc-skin-loading .iafwzc-skin-chevron { display: none; }
.iafwzc-skin-combo.iafwzc-skin-loading .iafwzc-skin-btn::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #e3dcfc;
    border-top-color: #6a4cf0;
    animation: iafwzc-conn-spin .7s linear infinite;
}
.iafwzc-wizard-field .iafwzc-skin-combo.iafwzc-skin-loading .iafwzc-skin-btn { opacity: 1; }

/* ── Continue button: spinner while Step 2's fields are loading ── */
.iafwzc-wizard .iafwzc-btn-primary.iafwzc-loading { opacity: .85; cursor: progress; }
.iafwzc-wizard .iafwzc-btn-primary.iafwzc-loading::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: iafwzc-conn-spin .7s linear infinite;
}

/* ============================================================
 * Step 2 / Step 3 - reference-design layout
 * ============================================================ */

/* `.iafwzc-hidden` (display:none) must beat the display:flex set on these. */
.iafwzc-addl-details-body.iafwzc-hidden,
.iafwzc-conn-actions.iafwzc-hidden { display: none; }

/* Content column: 880px, centred; footer bar still spans the whole card. */
.iafwzc-wizard-panel[data-wizard-panel="2"] > *:not(.iafwzc-wizard-footer),
.iafwzc-wizard-panel[data-wizard-panel="3"] > *:not(.iafwzc-wizard-footer) {
    width: 100%;
    max-width: 880px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}
.iafwzc-wizard-panel[data-wizard-panel="2"],
.iafwzc-wizard-panel[data-wizard-panel="3"] { padding-top: 26px; }

/* Mapping card + table: header bar and row rhythm from the design */
.iafwzc-fm-card {
    border: 1px solid #eceef5;
    border-radius: 14px;
    overflow: visible;
}
.iafwzc-fm-table { table-layout: fixed; border-collapse: collapse; }
.iafwzc-fm-table thead th.iafwzc-setup-th {
    background: #f1edff;
    color: #6b5bb8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 10px 16px;
}
.iafwzc-fm-table thead th.iafwzc-setup-th:first-child { border-radius: 14px 0 0 0; }
.iafwzc-fm-table thead th.iafwzc-setup-th:last-child { border-radius: 0 14px 0 0; }
.iafwzc-fm-table thead th.iafwzc-setup-th-spacer { width: 106px; background: #f1edff; }
.iafwzc-fm-table tbody td.iafwzc-setup-td {
    padding: 10px 16px;
    vertical-align: middle;
}
.iafwzc-fm-table tbody td.iafwzc-setup-td:nth-child(3) { padding-left: 16px; }
.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child { padding-right: 40px; }
.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child::after { color: #b3b7c8; right: 12px; }
.iafwzc-fm-table tbody tr:not(:first-child) td.iafwzc-setup-td { border-top: 1px solid #f1f2f7; }
.iafwzc-fm-table tbody tr:not(:last-child) td.iafwzc-setup-td { border-bottom: none; }
.iafwzc-fm-table .iafwzc-skin-btn { height: 42px; padding: 0 12px; background: #fbfbfe; border-radius: 10px; }
.iafwzc-fm-table .iafwzc-skin-combo.iafwzc-skin-open .iafwzc-skin-btn { background: #fff; }
.iafwzc-fm-td-actions { justify-content: flex-end; }

/* Required (system-mandatory) Zoho field: tinted box + REQUIRED badge */
.iafwzc-fm-table .iafwzc-skin-combo.iafwzc-skin-locked .iafwzc-skin-btn {
    background: #f8f9fc;
    border: 1px solid #eceef5;
    opacity: 1;
    color: #1b1d2a;
}
.iafwzc-fm-table .iafwzc-skin-combo.iafwzc-skin-locked .iafwzc-skin-btn-label { font-weight: 600; }
.iafwzc-fm-table .iafwzc-skin-combo.iafwzc-skin-locked .iafwzc-skin-lock { display: none; }
.iafwzc-skin-badge {
    font-size: 10px;
    letter-spacing: .03em;
    color: #d23339;
    background: #fdecec;
    border-radius: 5px;
    padding: 3px 7px;
}

/* Add additional details card */
.iafwzc-addl-details {
    margin-top: 16px;
    border: 1px solid #eceef5;
    border-radius: 16px;
    overflow: visible;
}
.iafwzc-addl-details-header { padding: 16px 18px; gap: 6px; }
.iafwzc-addl-details-title { font-size: 15px; font-weight: 700; }
.iafwzc-addl-details-body { border-top: 1px solid #f1f2f7; padding: 18px; gap: 20px; }

/* Footer inside Step 2/3 sits flush at the card's bottom like Step 1 */
.iafwzc-wizard-panel[data-wizard-panel="2"] .iafwzc-wizard-footer,
.iafwzc-wizard-panel[data-wizard-panel="3"] .iafwzc-wizard-footer { max-width: none; }

/* Toggle switch: 46x26 pill with a 20px knob (reference design) */
.iafwzc-addl-details-header .iafwzc-setup-toggle-switch { width: 46px; height: 26px; flex-shrink: 0; }
.iafwzc-addl-details-header .iafwzc-setup-toggle-slider { background-color: #d4d6e2; border-radius: 999px; }
.iafwzc-addl-details-header .iafwzc-setup-toggle-slider:before {
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .18s;
}
.iafwzc-addl-details-header .iafwzc-setup-toggle-input:checked + .iafwzc-setup-toggle-slider:before { transform: translateX(20px); }

/* ── Field mapping: "Custom value" editor (textarea + Insert form field) ── */
.iafwzc-fm-table .iafwzc-setup-fm-custom-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.iafwzc-fm-table textarea.iafwzc-setup-fm-custom-input {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 84px !important;
    box-sizing: border-box;
    padding: 10px 12px !important;
    border: 1px solid #e4e6ef !important;
    border-radius: 10px !important;
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    color: #1b1d2a !important;
    resize: vertical;
    box-shadow: none;
}
.iafwzc-fm-table textarea.iafwzc-setup-fm-custom-input:focus {
    outline: none;
    border-color: #8b6cf8 !important;
    box-shadow: 0 0 0 3px #ece7fe;
}
.iafwzc-custom-insert { position: relative; align-self: flex-start; }
.iafwzc-custom-insert .iafwzc-insert-field-btn { height: 30px; }

/* ============================================================
 * Field-mapping rows as a CSS grid (reference design): form field | -> | zoho
 * field | actions, with the "Custom value" editor on its own full-width line
 * under the row. The cells stay real <td>s (the JS reads/writes them as
 * before); the first cell uses display:contents so its dropdown, the arrow
 * and the custom editor can sit in different grid tracks.
 * ============================================================ */
.iafwzc-fm-table,
.iafwzc-fm-table thead,
.iafwzc-fm-table tbody { display: block; width: 100%; }

.iafwzc-fm-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 106px;
    column-gap: 10px;
    row-gap: 10px;
    align-items: center;
    padding: 10px 16px;
}
.iafwzc-fm-table tbody tr + tr { border-top: 1px solid #f1f2f7; }

/* header bar */
.iafwzc-fm-table thead tr { background: #f1edff; border-radius: 14px 14px 0 0; }
.iafwzc-fm-table thead th.iafwzc-setup-th,
.iafwzc-fm-table thead th.iafwzc-setup-th-spacer {
    background: transparent;
    padding: 0;
    width: auto;
    border-radius: 0;
}
.iafwzc-fm-table thead th:nth-child(1) { grid-column: 1; }
.iafwzc-fm-table thead th:nth-child(2) { grid-column: 3; }
.iafwzc-fm-table thead th:nth-child(3) { grid-column: 4; }

/* cells */
.iafwzc-fm-table tbody td.iafwzc-setup-td,
.iafwzc-fm-table tbody tr:not(:last-child) td.iafwzc-setup-td,
.iafwzc-fm-table tbody tr:not(:first-child) td.iafwzc-setup-td {
    padding: 0;
    border: none;
    min-width: 0;
}
.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child { display: contents; padding: 0; }
.iafwzc-fm-table tbody td.iafwzc-setup-td:nth-child(2) { grid-column: 3; grid-row: 1; }
.iafwzc-fm-table tbody td.iafwzc-setup-td:nth-child(3) { grid-column: 4; grid-row: 1; padding: 0; }

.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child > .iafwzc-skin-combo { grid-column: 1; grid-row: 1; min-width: 0; }
/* The two boxes share the row's top line; the arrow is a box of the same height (the select height) on that line, so it sits
   in the middle between them whatever else makes the row taller (icons, hints, a custom-value box on the line below). */
.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child > .iafwzc-skin-combo,
.iafwzc-fm-table tbody td.iafwzc-setup-td:nth-child(2) { align-self: start; }

.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child::after {
    position: static;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    line-height: 1;
    color: #b3b7c8;
    font-size: 15px;
}
.iafwzc-fm-table tbody td.iafwzc-setup-td:first-child > .iafwzc-setup-fm-custom-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
}
.iafwzc-fm-table .iafwzc-fm-td-actions { justify-content: flex-end; align-items: center; }

/* "+ Add field": a small button centred under the arrow, i.e. on the centre line of the two fields. It spans the same columns as
   the rows' two fields and the arrow: the row's side padding (16px) on the left, and on the right the row's side padding, the
   icons column (106px) and the column gap (10px). */
.iafwzc-fm-addrow {
    display: flex;
    justify-content: center;
    padding: 14px 132px 16px 16px;
    border-top: 1px solid #f1f2f7;
}

.iafwzc-fm-add-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
}

/* The Notes box must show: setup-fm.css still hides the old `#iafwzc-setup-note` (display:none). */
#iafwzc-setup-note.iafwzc-addl-textarea {
    display: block;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: 12px;
    background: #fbfbfe;
    font-size: 14px;
    line-height: 1.5;
}

#iafwzc-setup-note.iafwzc-addl-textarea:focus {
    border-color: var(--iafwzc-primary-grad-start, #8b6cf8);
    box-shadow: 0 0 0 3px #ece7fe;
    background: #fff;
    outline: none;
}

/* ── Additional details: no prefix icons; Attachments as one-field-per-row with + / - ── */
.iafwzc-addl-row .iafwzc-addl-icon {
    display: none;
}

.iafwzc-attach-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iafwzc-attach-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iafwzc-attach-row .iafwzc-attach-combo {
    position: relative;
    flex: 1;
    min-width: 0;
}

.iafwzc-attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--iafwzc-border-200, #e4e6ef);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.iafwzc-attach-btn-plus {
    color: var(--iafwzc-primary-grad-end, #6a4cf0);
    border-color: var(--iafwzc-lavender-border-100, #d9cffb);
    background: var(--iafwzc-lavender-300, #faf8ff);
}

.iafwzc-attach-btn-minus {
    color: var(--iafwzc-error, #e0393e);
}

.iafwzc-attach-btn-plus:hover:not(:disabled) {
    background: #ebe5ff;
    border-color: #c9bdfb;
}

.iafwzc-attach-btn-minus:hover {
    background: var(--iafwzc-error-bg, #fdecec);
    border-color: #f6c9cb;
}

.iafwzc-attach-btn:focus {
    outline: none;
    box-shadow: none;
}

.iafwzc-attach-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(106, 76, 240, .3);
}

.iafwzc-attach-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* A file field already picked in another row. */
.iafwzc-skin-option.is-disabled,
.iafwzc-skin-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* A Pro-locked option: only the name is dimmed, the PRO badge stays fully visible. */
.iafwzc-skin-option.has-pro.is-disabled,
.iafwzc-skin-option.has-pro:disabled {
    opacity: 1;
}
.iafwzc-skin-option.has-pro:disabled .iafwzc-skin-option-text,
.iafwzc-skin-option.has-pro.is-disabled .iafwzc-skin-option-text {
    opacity: .45;
}

/* Attachments: compact rows instead of full width. */
.iafwzc-attach-rows {
    max-width: 380px;
}

/* Tags: the inner text box gets WordPress's blue focus ring/outline; the outer box already shows
   the purple focus ring (:focus-within), so switch the inner one off. */
#wpcontent .iafwzc-tag-input-box input[type="text"],
#wpcontent .iafwzc-tag-input-box input[type="text"]:focus,
#wpcontent .iafwzc-tag-input-box input[type="text"]:active {
    outline: none;
    box-shadow: none;
    border: 0;
    background: transparent;
}

/* "{} Insert form field": one floating searchable list (same style as the field dropdowns). */
.iafwzc-skin-panel.iafwzc-insert-panel {
    position: fixed;
    right: auto;
    z-index: 100002;
    box-sizing: border-box;
    max-height: none;
}

.iafwzc-insert-panel .iafwzc-skin-list {
    max-height: 240px;
}

/* Step 1: small "fill in all fields" note beside Continue while it is disabled. */
.iafwzc-wizard-continue-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.iafwzc-wizard-continue-hint {
    font-size: 12px;
    color: var(--iafwzc-muted-text, #8a8fa6);
}
.iafwzc-wizard-continue-hint[hidden] { display: none; }

/* "Add connection" modal while it sends the user to Zoho: buttons blocked, spinner on Continue. */
.iafwzc-conn-modal-foot button:disabled,
.iafwzc-conn-modal-close:disabled {
    cursor: not-allowed;
}
.iafwzc-conn-modal-foot .iafwzc-btn-secondary:disabled,
.iafwzc-conn-modal-close:disabled {
    opacity: .55;
}
.iafwzc-conn-modal-foot .iafwzc-btn-primary.iafwzc-loading,
.iafwzc-conn-modal-foot .iafwzc-btn-primary.iafwzc-loading:disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: .85;
    cursor: not-allowed;
}
.iafwzc-conn-modal-foot .iafwzc-btn-primary.iafwzc-loading::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: iafwzc-confirm-spin .7s linear infinite;
}

/* Edit screen "Add connection": the other Zoho product is locked (same as the Connections page). */
#iafwzc-conn-modal .iafwzc-conn-product:has(input:disabled) {
    opacity: .5;
    background: #f4f5f9;
    cursor: not-allowed;
}
#iafwzc-conn-modal .iafwzc-conn-product:has(input:disabled):hover {
    border-color: var(--iafwzc-border-200, #e4e6ef);
}
#iafwzc-conn-modal .iafwzc-conn-lock-note {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #7a7f99;
}
#iafwzc-conn-modal .iafwzc-conn-lock-note[hidden] { display: none; }

/* Step 1 Continue while the mapping fields are still loading: spinner, blocked cursor. */
.iafwzc-wizard #iafwzc-wizard-continue-1.iafwzc-loading,
.iafwzc-wizard #iafwzc-wizard-continue-1.iafwzc-loading:disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    opacity: .85;
}

/* Tags: one text field per row with "+" / "-" at the end (same layout as Attachments). */
.iafwzc-tag-row .iafwzc-tag-row-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
}

/* Tags: the "{}" insert-field button sits between the text field and "+" / "-". */
.iafwzc-tag-rows { max-width: 460px; }
.iafwzc-tag-row .iafwzc-tag-insert-btn {
    align-self: center;
    flex-shrink: 0;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 13px;
}

/* The hint can be a full sentence now (which area is not filled): let it wrap beside the button. */
.iafwzc-wizard-continue-hint { max-width: 480px; text-align: right; line-height: 1.4; }

/* Step 3: Test run button next to Save; blocked cursor while Save is running. */
.iafwzc-wizard-continue-wrap .iafwzc-btn-secondary:disabled,
.iafwzc-wizard-footer .iafwzc-btn-secondary:disabled { opacity: .55; cursor: not-allowed; }
.iafwzc-wizard #iafwzc-setup-save-btn.iafwzc-loading,
.iafwzc-wizard #iafwzc-setup-save-btn.iafwzc-loading:disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    opacity: .85;
}

/* Test run popup (built in iafwzc-wizard-extra.js, reuses the Add connection popup frame).
   Header and footer stay put; only the field list scrolls (thin scrollbar). */
#iafwzc-testrun-modal .iafwzc-testrun-box { max-width: 640px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
#iafwzc-testrun-modal .iafwzc-conn-modal-head { flex: 0 0 auto; padding: 16px 22px 14px; }
#iafwzc-testrun-modal .iafwzc-conn-modal-head h3 { margin: 0; font-size: 17px; }
#iafwzc-testrun-modal .iafwzc-conn-modal-foot { flex: 0 0 auto; padding: 12px 22px; }
#iafwzc-testrun-modal .iafwzc-testrun-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    gap: 12px;
    padding: 16px 22px;
    scrollbar-width: thin;
    scrollbar-color: #d4d6e2 transparent;
}
#iafwzc-testrun-modal .iafwzc-testrun-body::-webkit-scrollbar { width: 6px; }
#iafwzc-testrun-modal .iafwzc-testrun-body::-webkit-scrollbar-track { background: transparent; }
#iafwzc-testrun-modal .iafwzc-testrun-body::-webkit-scrollbar-thumb { background: #d4d6e2; border-radius: 999px; }
#iafwzc-testrun-modal .iafwzc-testrun-intro { margin: 0; font-size: 12.5px; line-height: 1.5; color: #6b7085; }
#iafwzc-testrun-modal .iafwzc-testrun-grid { display: flex; flex-direction: column; gap: 12px; }
#iafwzc-testrun-modal .iafwzc-conn-field { gap: 5px; min-width: 0; }
#iafwzc-testrun-modal .iafwzc-conn-label { font-size: 13px; flex-wrap: wrap; }
#iafwzc-testrun-modal .iafwzc-testrun-input {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    background: #fbfbfe;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    color: #1b1d2a;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#iafwzc-testrun-modal .iafwzc-testrun-input::placeholder { color: #a3a7bd; }
#iafwzc-testrun-modal .iafwzc-testrun-input:focus { background: #fff; border-color: #8b6cf8; box-shadow: 0 0 0 3px #ece7fe; }
#iafwzc-testrun-modal .iafwzc-testrun-input.is-invalid { border-color: #e5484d; background: #fff8f8; box-shadow: 0 0 0 3px #fdecec; }
#iafwzc-testrun-modal .iafwzc-testrun-input:disabled { background: #f3f4f8; color: #8a8fa6; cursor: not-allowed; }
#iafwzc-testrun-modal .iafwzc-testrun-req { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: #fdecec; color: #c0282d; font-size: 10.5px; font-weight: 600; }
#iafwzc-testrun-modal .iafwzc-testrun-hint { font-size: 11.5px; line-height: 1.35; color: #8a8fa6; word-break: break-word; }
#iafwzc-testrun-modal .iafwzc-testrun-result { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; word-break: break-word; }
#iafwzc-testrun-modal .iafwzc-testrun-result[hidden] { display: none; }
#iafwzc-testrun-modal .iafwzc-testrun-result.is-ok { background: #e7f7ee; color: #138a4b; }
#iafwzc-testrun-modal .iafwzc-testrun-result.is-error { background: #fdecec; color: #c0282d; }
#iafwzc-testrun-modal .iafwzc-testrun-result-text { font-weight: 600; }
#iafwzc-testrun-modal .iafwzc-testrun-toggle { margin-top: 4px; padding: 0; border: 0; background: none; color: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
#iafwzc-testrun-modal .iafwzc-testrun-toggle[hidden],
#iafwzc-testrun-modal .iafwzc-testrun-detail[hidden] { display: none; }
#iafwzc-testrun-modal .iafwzc-testrun-detail { margin: 8px 0 0; padding: 10px; max-height: 200px; overflow: auto; border-radius: 8px; background: rgba(255, 255, 255, .7); color: #2b2f42; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; }
#iafwzc-testrun-modal .iafwzc-btn-primary,
#iafwzc-testrun-modal .iafwzc-btn-secondary { padding-top: 9px; padding-bottom: 9px; }
#iafwzc-testrun-modal button:disabled { cursor: not-allowed; }
#iafwzc-testrun-modal .iafwzc-btn-secondary:disabled,
#iafwzc-testrun-modal .iafwzc-conn-modal-close:disabled { opacity: .55; }
#iafwzc-testrun-modal .iafwzc-btn-primary.iafwzc-loading,
#iafwzc-testrun-modal .iafwzc-btn-primary.iafwzc-loading:disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: .85;
    cursor: not-allowed;
}
#iafwzc-testrun-modal .iafwzc-btn-primary.iafwzc-loading::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: iafwzc-confirm-spin .7s linear infinite;
}

/* Edit screen, Step 1: why Zoho could not be read (e.g. the connection needs reconnecting), next to the connection. */
.iafwzc-conn-issue {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #f7cfd0;
    border-radius: 10px;
    background: #fff5f5;
    color: #b3262b;
    font-size: 13px;
    line-height: 1.5;
}
.iafwzc-conn-issue svg {
    flex-shrink: 0;
    margin-top: 2px;
}
/* Picklist field: the "allowed values" info icon sits next to the Zoho dropdown, in the gap between it and
   the + / - buttons (about 8px each side), so the dropdown keeps the same size and position as in the
   other rows (it used to push the dropdown down). */
.iafwzc-fm-table tbody td.iafwzc-setup-td .info-icon {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px); /* just past the dropdown's right edge (its box is the positioning parent) */
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    color: #6a4cf0;
    cursor: pointer;
}
.iafwzc-fm-table tbody td.iafwzc-setup-td .info-icon:focus-visible { outline: 2px solid #6a4cf0; outline-offset: 2px; border-radius: 50%; }