/* Add/Edit integration: full-page 3-step wizard shell. */

.integrazo_fwcrm_form-hidden {
    display: none;
}

.integrazo_fwcrm_form-wizard-topbar {
    margin-bottom: 16px;
}

.integrazo_fwcrm_form-wizard-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.integrazo_fwcrm_form-wizard-back-link:hover {
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-wizard-card {
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-card, 0 4px 16px rgba(20, 22, 50, .04));
    overflow: hidden;
}

/* ── Step indicator ── */

.integrazo_fwcrm_form-wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    flex-wrap: wrap;
}

.integrazo_fwcrm_form-wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.integrazo_fwcrm_form-wizard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--integrazo_fwcrm_form-border-300, #f1f2f7);
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    font-size: 13px;
    font-weight: 800;
}

.integrazo_fwcrm_form-wizard-step-active .integrazo_fwcrm_form-wizard-step-num {
    background: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    color: #fff;
}

.integrazo_fwcrm_form-wizard-step-done .integrazo_fwcrm_form-wizard-step-num {
    background: var(--integrazo_fwcrm_form-success, #10b981);
    color: #fff;
}

.integrazo_fwcrm_form-wizard-step-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.integrazo_fwcrm_form-wizard-step-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-wizard-step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-wizard-step-active .integrazo_fwcrm_form-wizard-step-title,
.integrazo_fwcrm_form-wizard-step-done .integrazo_fwcrm_form-wizard-step-title {
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-wizard-step-line {
    width: 48px;
    height: 1px;
    background: var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    flex-shrink: 0;
}

/* ── Panels ── */

.integrazo_fwcrm_form-wizard-panel {
    padding: 28px 24px;
}

.integrazo_fwcrm_form-wizard-step1-card {
    max-width: 600px;
    margin: 0 auto;
}

.integrazo_fwcrm_form-wizard-step1-card .integrazo_fwcrm_form-setup-table {
    margin-top: 0;
}

.integrazo_fwcrm_form-wizard-popup-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    text-align: center;
    margin: 24px 0 0;
}

.integrazo_fwcrm_form-setup-fieldmapping-block {
    margin-top: 0 !important;
}

.integrazo_fwcrm_form-setup-action-inner {
    padding-left: 22px;
    padding-top: 20px;
}

.integrazo_fwcrm_form-setup-th-spacer {
    border: none;
    background: none;
}

.integrazo_fwcrm_form-option-pro {
    color: gray;
}

/* ── Footer (Back / Continue / Save) ── */

.integrazo_fwcrm_form-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
}

.integrazo_fwcrm_form-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.integrazo_fwcrm_form-btn-secondary:hover {
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 782px) {
  .integrazo_fwcrm_form-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 integrazo_fwcrm_form-select-skin.js).
 * ============================================================ */

/* ── Help tooltip: align to the shared dark-bubble look ── */

.integrazo_fwcrm_form-help-icon-wrapper {
    display: inline-flex;
    vertical-align: middle;
}

.integrazo_fwcrm_form-help-icon {
    width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 10px;
    background: var(--integrazo_fwcrm_form-border-300, #f1f2f7);
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-help-icon-wrapper:hover .integrazo_fwcrm_form-help-icon {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
}

.integrazo_fwcrm_form-help-tooltip {
    background: var(--integrazo_fwcrm_form-ink, #1b1d2a) !important;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 10px);
    font-family: var(--integrazo_fwcrm_form-font);
    width: 270px !important;
}

.integrazo_fwcrm_form-help-tooltip::after {
    border-color: var(--integrazo_fwcrm_form-ink, #1b1d2a) transparent transparent transparent !important;
}

/* ── Step 1 fields ── */

.integrazo_fwcrm_form-wizard-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.integrazo_fwcrm_form-wizard-field:last-child {
    margin-bottom: 0;
}

.integrazo_fwcrm_form-wizard-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-required {
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-input,
.integrazo_fwcrm_form-wizard-field select.integrazo_fwcrm_form-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 (.integrazo_fwcrm_form-multi-combo reuses the same classes). */

.integrazo_fwcrm_form-skin-combo {
    position: relative;
    width: 100%;
}

.integrazo_fwcrm_form-skin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 10px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    font-family: var(--integrazo_fwcrm_form-font);
    font-size: 13.5px;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    cursor: pointer;
    text-align: left;
}

.integrazo_fwcrm_form-skin-btn:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
}

.integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-error .integrazo_fwcrm_form-skin-btn {
    border-color: var(--integrazo_fwcrm_form-error, #e0393e);
    box-shadow: 0 0 0 3px var(--integrazo_fwcrm_form-error-bg, #fdecec);
}

.integrazo_fwcrm_form-skin-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.integrazo_fwcrm_form-skin-btn-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integrazo_fwcrm_form-skin-btn-placeholder {
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
    font-weight: 400;
}

.integrazo_fwcrm_form-skin-badge {
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--integrazo_fwcrm_form-error, #e0393e);
    background: var(--integrazo_fwcrm_form-error-bg, #fdecec);
    border-radius: 5px;
    padding: 2px 6px;
}

.integrazo_fwcrm_form-skin-lock,
.integrazo_fwcrm_form-skin-chevron {
    display: none;
    flex-shrink: 0;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-locked .integrazo_fwcrm_form-skin-lock {
    display: flex;
}

.integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-locked .integrazo_fwcrm_form-skin-btn {
    background: var(--integrazo_fwcrm_form-border-300, #f1f2f7);
    border-style: dashed;
}

.integrazo_fwcrm_form-skin-panel,
.integrazo_fwcrm_form-multi-combo .integrazo_fwcrm_form-skin-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-lavender-border-200, #e3dcfc);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 12px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-menu, 0 18px 40px -12px rgba(30, 30, 70, .28));
    z-index: 120;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.integrazo_fwcrm_form-skin-panel[hidden] {
    display: none;
}

.integrazo_fwcrm_form-skin-search-wrap {
    position: relative;
}

.integrazo_fwcrm_form-skin-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
    display: flex;
    pointer-events: none;
}

.integrazo_fwcrm_form-skin-search {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 10px 0 34px;
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #e9ebf2);
    border-radius: 8px;
    background: var(--integrazo_fwcrm_form-page-bg, #f8f9fc);
    font-family: var(--integrazo_fwcrm_form-font);
    font-size: 13.5px;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    outline: none;
}

.integrazo_fwcrm_form-skin-search:focus {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
    background: #fff;
}

.integrazo_fwcrm_form-skin-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.integrazo_fwcrm_form-skin-group-label {
    padding: 10px 10px 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--integrazo_fwcrm_form-muted-text, #7a7f96);
}

.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-skin-option:hover {
    background: var(--integrazo_fwcrm_form-lavender-300, #f6f4fe);
}

.integrazo_fwcrm_form-skin-option.is-selected {
    background: var(--integrazo_fwcrm_form-lavender-200, #f1edff);
}

.integrazo_fwcrm_form-skin-option-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.integrazo_fwcrm_form-skin-option-disabled:hover {
    background: none;
}

.integrazo_fwcrm_form-skin-option-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.integrazo_fwcrm_form-skin-option-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integrazo_fwcrm_form-skin-option.is-selected .integrazo_fwcrm_form-skin-option-label {
    font-weight: 700;
}

.integrazo_fwcrm_form-skin-option-sub {
    font-size: 11.5px;
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
}

.integrazo_fwcrm_form-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). */

/* One PRO badge for the whole "Add additional details" section, next to its help icon. */

/* Notes / Tags / Attachments without a Pro license: shown but locked. */

.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-skin-option-check {
    flex-shrink: 0;
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    display: flex;
}

.integrazo_fwcrm_form-skin-empty {
    padding: 18px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
}

/* ── Step 2: field-mapping table ── */

.integrazo_fwcrm_form-fm-card {
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px);
    overflow: hidden;
}

.integrazo_fwcrm_form-fm-table {
    width: 100%;
    border-collapse: collapse;
}

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
    color: var(--integrazo_fwcrm_form-primary-text-hover, #4b31c9);
    text-transform: uppercase;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 10px 14px;
}

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th-spacer {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
    width: 84px;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td {
    vertical-align: middle;
    padding: 7px 14px;
    position: relative;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-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
   integrazo_fwcrm_form_addRow()/integrazo_fwcrm_form_buildZohoSelect() don't have to change how many
   cells a row has. */

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child {
    padding-right: 34px;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child::after {
    content: "\2192";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    font-size: 15px;
    pointer-events: none;
}

.integrazo_fwcrm_form-fm-table tbody tr:not(:last-child) td.integrazo_fwcrm_form-setup-td {
    border-bottom: 1px solid var(--integrazo_fwcrm_form-border-300, #f4f5f9);
}

.integrazo_fwcrm_form-fm-td-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.integrazo_fwcrm_form-fm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: 8px;
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-body-text, #6b7085);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.integrazo_fwcrm_form-fm-icon-btn:hover:not(:disabled) {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    background: #faf8ff;
}

.integrazo_fwcrm_form-fm-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.integrazo_fwcrm_form-fm-icon-btn-danger:hover:not(:disabled) {
    border-color: #f5c2c2;
    color: var(--integrazo_fwcrm_form-error, #e0393e);
    background: #fff7f7;
}

.integrazo_fwcrm_form-fm-icon-btn-locked {
    cursor: default;
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
}

/* Legacy classes the field-mapping JS still builds elements with
   (integrazo_fwcrm_form-fm-setup-select, custom-value input) - sized to sit
   inside the new skinned layout instead of the old fixed 200px boxes. */

.integrazo_fwcrm_form-setup-fm-custom-wrap,
div:has(> .integrazo_fwcrm_form-setup-fm-custom-input) {
    margin-top: 8px;
}

.integrazo_fwcrm_form-setup-fm-custom-input {
    width: 100% !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef) !important;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 10px) !important;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a) !important;
    font-family: var(--integrazo_fwcrm_form-font);
    padding: 0 12px !important;
}

/* ── Step 2: Add additional details ── */

/* ── Tags chip input ── */

/* ── Step 3: Record action card ── */

/* A Pro-only action without a licence: the text and dot are dimmed, the PRO badge stays clear. */

.integrazo_fwcrm_form-action-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-action-desc {
    font-size: 12px;
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
}

/* 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. */

/* ── Step 3: Filters card ── */

.integrazo_fwcrm_form-filters-card {
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 16px);
}

.integrazo_fwcrm_form-filters-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.integrazo_fwcrm_form-setup-filter-content {
    border-top: 1px solid var(--integrazo_fwcrm_form-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). */

.integrazo_fwcrm_form-setup-filter-content.integrazo_fwcrm_form-hidden {
    display: none;
}

.integrazo_fwcrm_form-filter-columns-label {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--integrazo_fwcrm_form-primary-text, #6b5bb8);
    text-transform: uppercase;
    padding: 0 2px;
}

.integrazo_fwcrm_form-filter-columns-label span {
    flex: 1 1 300px;
}

.integrazo_fwcrm_form-filter-columns-label span:last-child {
    flex: 0 0 74px;
}

.integrazo_fwcrm_form-setup-filter-clear-all {
    align-self: flex-end;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0) !important;
}

.integrazo_fwcrm_form-setup-filter-field,
.integrazo_fwcrm_form-setup-filter-condition {
    display: none;
}

.integrazo_fwcrm_form-setup-filter-row .integrazo_fwcrm_form-skin-combo {
    flex: 1 1 300px;
}

.integrazo_fwcrm_form-setup-filter-value,
.integrazo_fwcrm_form-setup-filter-logic-select {
    font-family: var(--integrazo_fwcrm_form-font);
    height: 42px !important;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef) !important;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 10px) !important;
    font-size: 13.5px !important;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    padding: 0 12px !important;
}

.integrazo_fwcrm_form-setup-filter-logic-select {
    width: auto !important;
    flex: 0 0 auto;
}

.integrazo_fwcrm_form-setup-filter-actions {
    flex: 0 0 74px;
}

.integrazo_fwcrm_form-setup-filter-add-icon,
.integrazo_fwcrm_form-setup-filter-close-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: var(--integrazo_fwcrm_form-card-bg, #fff) !important;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef) !important;
    color: var(--integrazo_fwcrm_form-body-text, #6b7085) !important;
}

.integrazo_fwcrm_form-setup-filter-add-icon:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb) !important;
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0) !important;
    background: #faf8ff !important;
}

.integrazo_fwcrm_form-setup-filter-close-icon:hover {
    border-color: #f5c2c2 !important;
    color: var(--integrazo_fwcrm_form-error, #e0393e) !important;
    background: #fff7f7 !important;
}

@media (max-width: 680px) {
  .integrazo_fwcrm_form-setup-filter-row {
        flex-wrap: wrap !important;
    }
  .integrazo_fwcrm_form-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.
 * ============================================================ */

.integrazo_fwcrm_form-wizard-topbar { margin-bottom: 22px; }

.integrazo_fwcrm_form-wizard-back-link {
    height: 38px;
    padding: 0 14px 0 10px;
    border-radius: 10px;
    font-size: 14px;
    gap: 8px;
}

.integrazo_fwcrm_form-wizard-back-link:hover {
    border-color: #c9bdfb;
    color: #6a4cf0;
}

.integrazo_fwcrm_form-wizard-card {
    border-radius: 18px;
    border-color: #eceef5;
    box-shadow: 0 4px 16px rgba(20, 22, 50, .04);
    overflow: visible;
}

/* Stepper bar */

.integrazo_fwcrm_form-wizard-stepper {
    flex-wrap: nowrap;
    gap: 0;
    padding: 20px 28px;
    background: #fcfbff;
    border-bottom: 1px solid #f1f2f7;
    border-radius: 18px 18px 0 0;
}

.integrazo_fwcrm_form-wizard-step { gap: 10px; flex-shrink: 0; }

.integrazo_fwcrm_form-wizard-step-num {
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #e6e3f3;
    color: #9aa0b4;
    font-weight: 800;
}

.integrazo_fwcrm_form-wizard-step-active .integrazo_fwcrm_form-wizard-step-num {
    background: #6a4cf0;
    border-color: #d8cffc;
    color: #fff;
    box-shadow: 0 0 0 4px #f1edff;
}

.integrazo_fwcrm_form-wizard-step-done .integrazo_fwcrm_form-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. */

.integrazo_fwcrm_form-wizard-step-active.integrazo_fwcrm_form-wizard-step-done .integrazo_fwcrm_form-wizard-step-num {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px #d9f5ea;
}

.integrazo_fwcrm_form-wizard-step-active.integrazo_fwcrm_form-wizard-step-done .integrazo_fwcrm_form-wizard-step-title { color: #6a4cf0; }

.integrazo_fwcrm_form-wizard-step-text { gap: 1px; }

.integrazo_fwcrm_form-wizard-step-eyebrow { font-weight: 700; letter-spacing: .07em; color: #9aa0b4; }

.integrazo_fwcrm_form-wizard-step-title { color: #9aa0b4; white-space: nowrap; }

.integrazo_fwcrm_form-wizard-step-active .integrazo_fwcrm_form-wizard-step-title { color: #6a4cf0; }

.integrazo_fwcrm_form-wizard-step-done .integrazo_fwcrm_form-wizard-step-title { color: #1b1d2a; }

.integrazo_fwcrm_form-wizard-step-line {
    flex: 1;
    width: auto;
    min-width: 20px;
    max-width: 150px;
    height: 2px;
    border-radius: 2px;
    margin: 0 16px;
    background: #e6e3f3;
}

.integrazo_fwcrm_form-wizard-stepper { max-width: none; }

/* Panel + Step 1 card */

.integrazo_fwcrm_form-wizard-panel { padding: 26px 28px 0; }

.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-wizard-field { gap: 7px; margin-bottom: 0; }

.integrazo_fwcrm_form-wizard-field-label {
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
}

.integrazo_fwcrm_form-required { font-weight: 700; margin-left: -3px; }

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-input,
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-wizard-field select.integrazo_fwcrm_form-input {
    height: 44px;
    max-width: none;
    border-radius: 10px;
    background: #fbfbfe;
    border-color: #e4e6ef;
    font-size: 13px;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-input:focus {
    background: #fff;
    border-color: #8b6cf8;
    box-shadow: 0 0 0 3px #ece7fe;
}

.integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-skin-btn {
    height: 44px;
    padding: 0 14px;
    background: #fbfbfe;
    font-size: 13px;
}

.integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-open .integrazo_fwcrm_form-skin-btn { background: #fff; }

.integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-locked .integrazo_fwcrm_form-skin-btn {
    border-style: solid;
    opacity: .6;
}

/* Help icon: outlined "?" circle like the reference */

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-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");
}

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-help-icon-wrapper:hover .integrazo_fwcrm_form-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 */

.integrazo_fwcrm_form-wizard-footer {
    margin: 26px -28px 0;
    padding: 14px 28px;
    background: #fcfbff;
    border-top: 1px solid #f1f2f7;
    border-radius: 0 0 18px 18px;
}

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-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);
}

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-btn-secondary {
    height: 40px;
    border-radius: 10px;
    color: #1b1d2a;
}

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-btn-secondary:hover { border-color: #c9bdfb; }

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-btn-primary:disabled { opacity: .5; box-shadow: none; }

@media (max-width: 782px) {
  .integrazo_fwcrm_form-wizard-stepper { overflow-x: auto; padding: 16px; }
  .integrazo_fwcrm_form-wizard-panel { padding: 20px 16px 0; }
  .integrazo_fwcrm_form-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. */

.integrazo_fwcrm_form-skin-panel .integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-skin-panel .integrazo_fwcrm_form-skin-search:focus {
    border-color: #c9bdfb !important;
    background: #fff !important;
}

.integrazo_fwcrm_form-skin-search-icon { left: 11px; }

.integrazo_fwcrm_form-skin-search-icon svg { width: 15px; height: 15px; }

.integrazo_fwcrm_form-skin-list { padding-right: 2px; scrollbar-width: thin; scrollbar-color: #d4d6e2 transparent; }

.integrazo_fwcrm_form-skin-list::-webkit-scrollbar { width: 6px; }

.integrazo_fwcrm_form-skin-list::-webkit-scrollbar-button { display: none; height: 0; }

.integrazo_fwcrm_form-skin-list::-webkit-scrollbar-thumb { background: #d4d6e2; border-radius: 6px; }

.integrazo_fwcrm_form-skin-list::-webkit-scrollbar-track { background: transparent; }

.integrazo_fwcrm_form-skin-option { font-family: var(--integrazo_fwcrm_form-font); }

.integrazo_fwcrm_form-skin-option-label { font-weight: 400; }

.integrazo_fwcrm_form-skin-option.is-selected .integrazo_fwcrm_form-skin-option-label { font-weight: 600; }

.integrazo_fwcrm_form-skin-option.integrazo_fwcrm_form-skin-option-grouped { padding-left: 26px; }

/* ── Connection dropdown: logo tile + data-center subtitle + footer action ── */

.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-skin-option-logo img { width: 16px; height: auto; }

.integrazo_fwcrm_form-skin-panel .integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-skin-panel .integrazo_fwcrm_form-skin-add:hover,
.integrazo_fwcrm_form-skin-panel .integrazo_fwcrm_form-skin-add:focus {
    background: #f6f4fe;
    color: #6a4cf0;
    outline: none;
    box-shadow: none;
}

/* ── Footer action is a <button> now (opens the Add connection modal) ── */

.integrazo_fwcrm_form-skin-panel button.integrazo_fwcrm_form-skin-add {
    width: calc(100% + 16px);
    border: none;
    border-top: 1px solid #f1f2f7;
    cursor: pointer;
    font-family: var(--integrazo_fwcrm_form-font);
    text-align: left;
}

.integrazo_fwcrm_form-skin-lead-icon { display: flex; flex-shrink: 0; color: #6a4cf0; }

/* ── Under the Zoho connection dropdown: Test connection · Reconnect ── */

.integrazo_fwcrm_form-conn-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 2px;
}

.integrazo_fwcrm_form-conn-actions.integrazo_fwcrm_form-hidden { display: none; }

/* "?" beside Refresh from Zoho: the tooltip opens below the icon. */

.integrazo_fwcrm_form-conn-refresh-help { margin-left: -6px; }

.integrazo_fwcrm_form-conn-refresh-help .integrazo_fwcrm_form-help-tooltip {
    top: calc(100% + 8px);
    left: -20px;
    z-index: 20;
    line-height: 1.5;
    white-space: normal;
}

.integrazo_fwcrm_form-conn-refresh-help .integrazo_fwcrm_form-help-tooltip::after { display: none; }

.integrazo_fwcrm_form-conn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #6a4cf0;
    font-family: var(--integrazo_fwcrm_form-font);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.integrazo_fwcrm_form-conn-action:hover { color: #4b31c9; text-decoration: underline; }

.integrazo_fwcrm_form-conn-action-sep { width: 1px; height: 12px; background: #e4e6ef; }

.integrazo_fwcrm_form-conn-spinner {
    display: none;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #e3dcfc;
    border-top-color: #6a4cf0;
    animation: integrazo_fwcrm_form-conn-spin .7s linear infinite;
}

.integrazo_fwcrm_form-conn-action.integrazo_fwcrm_form-busy { cursor: progress; text-decoration: none; }

.integrazo_fwcrm_form-conn-action.integrazo_fwcrm_form-busy .integrazo_fwcrm_form-conn-action-icon { display: none; }

.integrazo_fwcrm_form-conn-action.integrazo_fwcrm_form-busy .integrazo_fwcrm_form-conn-spinner { display: inline-block; }

@keyframes integrazo_fwcrm_form-conn-spin { to { transform: rotate(360deg); } }

.integrazo_fwcrm_form-conn-empty-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #9a5b00;
}

.integrazo_fwcrm_form-conn-empty-hint a { font-weight: 700; color: #6a4cf0; text-decoration: none; }

.integrazo_fwcrm_form-conn-empty-hint a:hover { color: #4b31c9; text-decoration: underline; }

/* ── Add connection modal ── */

.integrazo_fwcrm_form-conn-field { display: flex; flex-direction: column; gap: 8px; }

.integrazo_fwcrm_form-conn-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4a4f66;
}

.integrazo_fwcrm_form-conn-input-wrap { position: relative; }

.integrazo_fwcrm_form-conn-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a4cf0;
    pointer-events: none;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-input-wrap input[type="text"],
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-input-wrap input[type="url"],
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-input-wrap input[type="password"] {
    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;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-input-wrap input[type="text"]:focus,
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-input-wrap input[type="url"]:focus,
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-input-wrap input[type="password"]:focus {
    background: #fff;
    border-color: #8b6cf8;
    box-shadow: 0 0 0 3px #ece7fe;
    outline: none;
}

/* ── Dropdown opens upward when there isn't room below ── */

.integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-up .integrazo_fwcrm_form-skin-panel {
    top: auto;
    bottom: calc(100% + 6px);
}

/* ── Loading state (module list being fetched): spinner in place of the chevron ── */

.integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-loading .integrazo_fwcrm_form-skin-chevron { display: none; }

.integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-loading .integrazo_fwcrm_form-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: integrazo_fwcrm_form-conn-spin .7s linear infinite;
}

.integrazo_fwcrm_form-wizard-field .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-loading .integrazo_fwcrm_form-skin-btn { opacity: 1; }

/* ── Continue button: spinner while Step 2's fields are loading ── */

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-btn-primary.integrazo_fwcrm_form-loading { opacity: .85; cursor: progress; }

.integrazo_fwcrm_form-wizard .integrazo_fwcrm_form-btn-primary.integrazo_fwcrm_form-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: integrazo_fwcrm_form-conn-spin .7s linear infinite;
}

/* ============================================================
 * Step 2 / Step 3 - reference-design layout
 * ============================================================ */

/* `.integrazo_fwcrm_form-hidden` (display:none) must beat the display:flex set on these. */

/* Content column: 880px, centred; footer bar still spans the whole card. */

.integrazo_fwcrm_form-wizard-panel[data-wizard-panel="2"] > *:not(.integrazo_fwcrm_form-wizard-footer),
.integrazo_fwcrm_form-wizard-panel[data-wizard-panel="3"] > *:not(.integrazo_fwcrm_form-wizard-footer) {
    width: 100%;
    max-width: 880px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.integrazo_fwcrm_form-wizard-panel[data-wizard-panel="2"],
.integrazo_fwcrm_form-wizard-panel[data-wizard-panel="3"] { padding-top: 26px; }

/* Mapping card + table: header bar and row rhythm from the design */

.integrazo_fwcrm_form-fm-card {
    border: 1px solid #eceef5;
    border-radius: 14px;
    overflow: visible;
}

.integrazo_fwcrm_form-fm-table { table-layout: fixed; border-collapse: collapse; }

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th {
    background: #f1edff;
    color: #6b5bb8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 10px 16px;
}

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th:first-child { border-radius: 14px 0 0 0; }

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th:last-child { border-radius: 0 14px 0 0; }

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th-spacer { width: 106px; background: #f1edff; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td {
    padding: 10px 16px;
    vertical-align: middle;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:nth-child(3) { padding-left: 16px; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child { padding-right: 40px; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child::after { color: #b3b7c8; right: 12px; }

.integrazo_fwcrm_form-fm-table tbody tr:not(:first-child) td.integrazo_fwcrm_form-setup-td { border-top: 1px solid #f1f2f7; }

.integrazo_fwcrm_form-fm-table tbody tr:not(:last-child) td.integrazo_fwcrm_form-setup-td { border-bottom: none; }

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-skin-btn { height: 42px; padding: 0 12px; background: #fbfbfe; border-radius: 10px; }

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-open .integrazo_fwcrm_form-skin-btn { background: #fff; }

.integrazo_fwcrm_form-fm-td-actions { justify-content: flex-end; }

/* Required (system-mandatory) Zoho field: tinted box + REQUIRED badge */

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-locked .integrazo_fwcrm_form-skin-btn {
    background: #f8f9fc;
    border: 1px solid #eceef5;
    opacity: 1;
    color: #1b1d2a;
}

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-locked .integrazo_fwcrm_form-skin-btn-label { font-weight: 600; }

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-skin-combo.integrazo_fwcrm_form-skin-locked .integrazo_fwcrm_form-skin-lock { display: none; }

.integrazo_fwcrm_form-skin-badge {
    font-size: 10px;
    letter-spacing: .03em;
    color: #d23339;
    background: #fdecec;
    border-radius: 5px;
    padding: 3px 7px;
}

/* Add additional details card */

/* Footer inside Step 2/3 sits flush at the card's bottom like Step 1 */

.integrazo_fwcrm_form-wizard-panel[data-wizard-panel="2"] .integrazo_fwcrm_form-wizard-footer,
.integrazo_fwcrm_form-wizard-panel[data-wizard-panel="3"] .integrazo_fwcrm_form-wizard-footer { max-width: none; }

/* Toggle switch: 46x26 pill with a 20px knob (reference design) */

/* ── Field mapping: "Custom value" editor (textarea + Insert form field) ── */

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-setup-fm-custom-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.integrazo_fwcrm_form-fm-table textarea.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-fm-table textarea.integrazo_fwcrm_form-setup-fm-custom-input:focus {
    outline: none;
    border-color: #8b6cf8 !important;
    box-shadow: 0 0 0 3px #ece7fe;
}

/* ============================================================
 * 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.
 * ============================================================ */

.integrazo_fwcrm_form-fm-table,
.integrazo_fwcrm_form-fm-table thead,
.integrazo_fwcrm_form-fm-table tbody { display: block; width: 100%; }

.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-fm-table tbody tr + tr { border-top: 1px solid #f1f2f7; }

/* header bar */

.integrazo_fwcrm_form-fm-table thead tr { background: #f1edff; border-radius: 14px 14px 0 0; }

.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th,
.integrazo_fwcrm_form-fm-table thead th.integrazo_fwcrm_form-setup-th-spacer {
    background: transparent;
    padding: 0;
    width: auto;
    border-radius: 0;
}

.integrazo_fwcrm_form-fm-table thead th:nth-child(1) { grid-column: 1; }

.integrazo_fwcrm_form-fm-table thead th:nth-child(2) { grid-column: 3; }

.integrazo_fwcrm_form-fm-table thead th:nth-child(3) { grid-column: 4; }

/* cells */

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td,
.integrazo_fwcrm_form-fm-table tbody tr:not(:last-child) td.integrazo_fwcrm_form-setup-td,
.integrazo_fwcrm_form-fm-table tbody tr:not(:first-child) td.integrazo_fwcrm_form-setup-td {
    padding: 0;
    border: none;
    min-width: 0;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child { display: contents; padding: 0; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:nth-child(2) { grid-column: 3; grid-row: 1; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:nth-child(3) { grid-column: 4; grid-row: 1; padding: 0; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child > .integrazo_fwcrm_form-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). */
.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child > .integrazo_fwcrm_form-skin-combo,
.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:nth-child(2) { align-self: start; }

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td:first-child > .integrazo_fwcrm_form-setup-fm-custom-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
}

.integrazo_fwcrm_form-fm-table .integrazo_fwcrm_form-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 (same as the reference
   mapping). 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). */
.integrazo_fwcrm_form-fm-addrow {
    display: flex;
    justify-content: center;
    padding: 14px 132px 16px 16px;
    border-top: 1px solid #f1f2f7;
}

.integrazo_fwcrm_form-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 `#integrazo_fwcrm_form-setup-note` (display:none). */

/* ── Additional details: no prefix icons; Attachments as one-field-per-row with + / - ── */

/* A file field already picked in another row. */

.integrazo_fwcrm_form-skin-option.is-disabled,
.integrazo_fwcrm_form-skin-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* A Pro-locked option: only the name is dimmed, the PRO badge stays fully visible. */

.integrazo_fwcrm_form-skin-option.has-pro.is-disabled,
.integrazo_fwcrm_form-skin-option.has-pro:disabled {
    opacity: 1;
}

.integrazo_fwcrm_form-skin-option.has-pro:disabled .integrazo_fwcrm_form-skin-option-text,
.integrazo_fwcrm_form-skin-option.has-pro.is-disabled .integrazo_fwcrm_form-skin-option-text {
    opacity: .45;
}

/* Attachments: compact rows instead of full width. */

/* 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. */

/* "{} Insert form field": one floating searchable list (same style as the field dropdowns). */

.integrazo_fwcrm_form-skin-panel.integrazo_fwcrm_form-insert-panel {
    position: fixed;
    right: auto;
    z-index: 100002;
    box-sizing: border-box;
    max-height: none;
}

.integrazo_fwcrm_form-insert-panel .integrazo_fwcrm_form-skin-list {
    max-height: 240px;
}

/* Step 1: small "fill in all fields" note beside Continue while it is disabled. */

.integrazo_fwcrm_form-wizard-continue-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.integrazo_fwcrm_form-wizard-continue-hint {
    font-size: 12px;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-wizard-continue-hint[hidden] { display: none; }

/* "Add connection" modal while it sends the user to Zoho: buttons blocked, spinner on Continue. */

/* Edit screen "Add connection": the other Zoho product is locked (same as the Connections page). */

/* Step 1 Continue while the mapping fields are still loading: spinner, blocked cursor. */

.integrazo_fwcrm_form-wizard #integrazo_fwcrm_form-wizard-continue-1.integrazo_fwcrm_form-loading,
.integrazo_fwcrm_form-wizard #integrazo_fwcrm_form-wizard-continue-1.integrazo_fwcrm_form-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). */

/* Tags: the "{}" insert-field button sits between the text field and "+" / "-". */

/* The hint can be a full sentence now (which area is not filled): let it wrap beside the button. */

.integrazo_fwcrm_form-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. */

.integrazo_fwcrm_form-wizard-continue-wrap .integrazo_fwcrm_form-btn-secondary:disabled,
.integrazo_fwcrm_form-wizard-footer .integrazo_fwcrm_form-btn-secondary:disabled { opacity: .55; cursor: not-allowed; }

.integrazo_fwcrm_form-wizard #integrazo_fwcrm_form-setup-save-btn.integrazo_fwcrm_form-loading,
.integrazo_fwcrm_form-wizard #integrazo_fwcrm_form-setup-save-btn.integrazo_fwcrm_form-loading:disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    opacity: .85;
}

/* Test run popup (built in integrazo_fwcrm_form-testrun.js, reuses the Add connection popup frame).
   Header and footer stay put; only the field list scrolls (thin scrollbar). */

/* Edit screen, Step 1: why Zoho could not be read (e.g. the connection needs reconnecting), next to the connection. */

.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-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). */

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-fm-table tbody td.integrazo_fwcrm_form-setup-td .info-icon:focus-visible { outline: 2px solid #6a4cf0; outline-offset: 2px; border-radius: 50%; }

/* ── Additions for the Freshsales wizard ── */
.integrazo_fwcrm_form-wizard-panel-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    text-align: center;
}

.integrazo_fwcrm_form-wizard-panel-title:focus {
    outline: none;
}

.integrazo_fwcrm_form-addl-details-spacer {
    flex: 1;
}

.integrazo_fwcrm_form-filters-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-wizard-step[tabindex="0"] {
    cursor: pointer;
}

.integrazo_fwcrm_form-wizard-step:focus-visible {
    outline: 2px solid var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    outline-offset: 3px;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
}

/* A field that is missing (name or a custom value). */
.integrazo_fwcrm_form-input-error,
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-input.integrazo_fwcrm_form-input-error,
.integrazo_fwcrm_form-app textarea.integrazo_fwcrm_form-input-error {
    border-color: #e0393e !important;
    box-shadow: 0 0 0 3px rgba(224, 57, 62, .12) !important;
}

/* A mapping row that still uses a premium field on a Free site: amber, with a PRO tag; Save stays off until it is gone. */
.integrazo_fwcrm_form-fm-row-locked > td {
    background: #fff8ec;
}

.integrazo_fwcrm_form-fm-row-locked .integrazo_fwcrm_form-skin-btn {
    border-color: #f1c27d;
}

.integrazo_fwcrm_form-fm-td-actions .integrazo_fwcrm_form-pro-badge {
    margin-right: 6px;
}

.integrazo_fwcrm_form-save-hint a {
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
}

/* "Allowed values" info icon next to a Desk field dropdown. */
.integrazo_fwcrm_form-allowed-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.integrazo_fwcrm_form-allowed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    cursor: pointer;
}

.integrazo_fwcrm_form-allowed-icon:hover,
.integrazo_fwcrm_form-allowed-icon:focus-visible {
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
}

.integrazo_fwcrm_form-allowed-popup {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
    max-width: 280px;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-menu, 0 18px 40px -12px rgba(30, 30, 70, .28));
}

.integrazo_fwcrm_form-allowed-popup[hidden] {
    display: none;
}

.integrazo_fwcrm_form-allowed-title {
    margin: 0 0 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-allowed-item {
    padding: 5px 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    font-size: 13px;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    cursor: pointer;
}

.integrazo_fwcrm_form-allowed-item:hover,
.integrazo_fwcrm_form-allowed-item:focus-visible {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
}

/* The filter switch: the builder is hidden while it is off. */
.integrazo_fwcrm_form-setup-filter-clear-all:focus-visible {
    outline: 2px solid var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    outline-offset: 2px;
}

/* The wizard fills the width of the page, like the other tabs. */
.integrazo_fwcrm_form-wizard {
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 782px) {
    .integrazo_fwcrm_form-wizard-stepper {
        justify-content: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .integrazo_fwcrm_form-wizard-step-line {
        display: none;
    }

    .integrazo_fwcrm_form-wizard-panel {
        padding: 20px 14px;
    }
}

@media (max-width: 480px) {
    .integrazo_fwcrm_form-wizard-step-text {
        display: none;
    }

    .integrazo_fwcrm_form-wizard-step-active .integrazo_fwcrm_form-wizard-step-text {
        display: flex;
    }
}

/* "{} Insert form field" button under a custom value (opens the floating list above). */
.integrazo_fwcrm_form-insert-field-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--integrazo_fwcrm_form-lavender-border-100, #d9cffb);
    border-radius: 8px;
    background: var(--integrazo_fwcrm_form-lavender-300, #faf8ff);
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.integrazo_fwcrm_form-insert-field-btn:hover,
.integrazo_fwcrm_form-insert-field-btn-open {
    background: var(--integrazo_fwcrm_form-lavender-200, #f1edff);
}

.integrazo_fwcrm_form-custom-insert {
    position: relative;
    align-self: flex-start;
    margin-top: 6px;
}

.integrazo_fwcrm_form-custom-insert .integrazo_fwcrm_form-insert-field-btn {
    height: 30px;
}

/* Step 3: Test run button next to Save; blocked cursor while Save is running. */
.integrazo_fwcrm_form-wizard-continue-wrap .integrazo_fwcrm_form-btn-secondary:disabled,
.integrazo_fwcrm_form-wizard-footer .integrazo_fwcrm_form-btn-secondary:disabled { opacity: .55; cursor: not-allowed; }
.integrazo_fwcrm_form-wizard #integrazo_fwcrm_form-setup-save-btn.integrazo_fwcrm_form-loading,
.integrazo_fwcrm_form-wizard #integrazo_fwcrm_form-setup-save-btn.integrazo_fwcrm_form-loading:disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    opacity: .85;
}

/* Test run popup (built in integrazo_fwcrm_form-testrun.js, reuses the Add connection popup frame).
   Header and footer stay put; only the field list scrolls (thin scrollbar). */
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-box { max-width: 640px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-conn-modal-head { flex: 0 0 auto; padding: 16px 22px 14px; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-conn-modal-head h3 { margin: 0; font-size: 17px; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-conn-modal-foot { flex: 0 0 auto; padding: 12px 22px; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    gap: 12px;
    padding: 16px 22px;
    scrollbar-width: thin;
    scrollbar-color: #d4d6e2 transparent;
}
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-body::-webkit-scrollbar { width: 6px; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-body::-webkit-scrollbar-track { background: transparent; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-body::-webkit-scrollbar-thumb { background: #d4d6e2; border-radius: 999px; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-intro { margin: 0; font-size: 12.5px; line-height: 1.5; color: #6b7085; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-warning { margin: 0; padding: 10px 12px; border: 1px solid #f3d38a; border-radius: 8px; background: #fff8e6; color: #7a5a00; font-size: 12.5px; line-height: 1.5; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-grid { display: flex; flex-direction: column; gap: 12px; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-conn-field { gap: 5px; min-width: 0; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-conn-label { font-size: 13px; flex-wrap: wrap; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-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;
}
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-input::placeholder { color: #a3a7bd; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-input:focus { background: #fff; border-color: #8b6cf8; box-shadow: 0 0 0 3px #ece7fe; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-input.is-invalid { border-color: #e5484d; background: #fff8f8; box-shadow: 0 0 0 3px #fdecec; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-input:disabled { background: #f3f4f8; color: #8a8fa6; cursor: not-allowed; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-req { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: #fdecec; color: #c0282d; font-size: 10.5px; font-weight: 600; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-hint { font-size: 11.5px; line-height: 1.35; color: #8a8fa6; word-break: break-word; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-result { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; word-break: break-word; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-result[hidden] { display: none; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-result.is-ok { background: #e7f7ee; color: #138a4b; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-result.is-error { background: #fdecec; color: #c0282d; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-result-text { font-weight: 600; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-toggle { margin-top: 4px; padding: 0; border: 0; background: none; color: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-toggle[hidden],
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-testrun-detail[hidden] { display: none; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-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; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-btn-primary,
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-btn-secondary { padding-top: 9px; padding-bottom: 9px; }
#integrazo_fwcrm_form-testrun-modal button:disabled { cursor: not-allowed; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-btn-secondary:disabled,
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-conn-modal-close:disabled { opacity: .55; }
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-btn-primary.integrazo_fwcrm_form-loading,
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-btn-primary.integrazo_fwcrm_form-loading:disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: .85;
    cursor: not-allowed;
}
#integrazo_fwcrm_form-testrun-modal .integrazo_fwcrm_form-btn-primary.integrazo_fwcrm_form-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: integrazo_fwcrm_form-confirm-spin .7s linear infinite;
}

/* ── Step 2: Additional details (Attachment, Status, Channel) ── */
.integrazo_fwcrm_form-addl-details {
    margin-top: 16px;
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: 16px;
    overflow: visible;
}

.integrazo_fwcrm_form-addl-details-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
}

.integrazo_fwcrm_form-addl-details-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-addl-details-header .integrazo_fwcrm_form-pro-badge {
    display: none; /* shown only while the section's switch is on */
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 10.5px;
    letter-spacing: .4px;
}

.integrazo_fwcrm_form-addl-details-header:has(#integrazo_fwcrm_form-setup-addl-toggle:checked) .integrazo_fwcrm_form-pro-badge {
    display: inline-flex;
}

.integrazo_fwcrm_form-addl-details-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px;
    border-top: 1px solid #f1f2f7;
}

.integrazo_fwcrm_form-addl-details-body.integrazo_fwcrm_form-hidden {
    display: none;
}

.integrazo_fwcrm_form-addl-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.integrazo_fwcrm_form-addl-row[hidden] {
    display: none;
}

.integrazo_fwcrm_form-addl-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integrazo_fwcrm_form-addl-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

/* Toggle switch: 46x26 pill with a 20px knob (same as the Filters card) */
.integrazo_fwcrm_form-addl-details-header .integrazo_fwcrm_form-setup-toggle-switch { width: 46px; height: 26px; flex-shrink: 0; }
.integrazo_fwcrm_form-addl-details-header .integrazo_fwcrm_form-setup-toggle-slider { background-color: #d4d6e2; border-radius: 999px; }
.integrazo_fwcrm_form-addl-details-header .integrazo_fwcrm_form-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;
}
.integrazo_fwcrm_form-addl-details-header .integrazo_fwcrm_form-setup-toggle-input:checked + .integrazo_fwcrm_form-setup-toggle-slider:before { transform: translateX(20px); }

/* Attachment: one file field per row with + / - */
.integrazo_fwcrm_form-attach-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.integrazo_fwcrm_form-attach-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.integrazo_fwcrm_form-attach-row .integrazo_fwcrm_form-attach-combo {
    position: relative;
    flex: 1;
    min-width: 0;
}

.integrazo_fwcrm_form-multi-combo .integrazo_fwcrm_form-skin-chevron {
    display: flex;
}

.integrazo_fwcrm_form-multi-combo.integrazo_fwcrm_form-skin-open .integrazo_fwcrm_form-skin-btn {
    background: #fff;
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
}

.integrazo_fwcrm_form-skin-option.is-disabled,
.integrazo_fwcrm_form-skin-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.integrazo_fwcrm_form-attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.integrazo_fwcrm_form-attach-btn-plus {
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    border-color: var(--integrazo_fwcrm_form-lavender-border-100, #d9cffb);
    background: var(--integrazo_fwcrm_form-lavender-300, #faf8ff);
}

.integrazo_fwcrm_form-attach-btn-minus {
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-attach-btn-plus:hover:not(:disabled) {
    background: #ebe5ff;
    border-color: #c9bdfb;
}

.integrazo_fwcrm_form-attach-btn-minus:hover:not(:disabled) {
    background: var(--integrazo_fwcrm_form-error-bg, #fdecec);
    border-color: #f6c9cb;
}

.integrazo_fwcrm_form-attach-btn:focus {
    outline: none;
    box-shadow: none;
}

.integrazo_fwcrm_form-attach-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(106, 76, 240, .3);
}

.integrazo_fwcrm_form-attach-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Status / Channel: a form field dropdown (or a custom value) with "-" to clear it */
.integrazo_fwcrm_form-addl-fm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 460px;
}

.integrazo_fwcrm_form-addl-fm-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integrazo_fwcrm_form-addl-fm .integrazo_fwcrm_form-setup-fm-custom-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integrazo_fwcrm_form-addl-fm textarea.integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-addl-fm textarea.integrazo_fwcrm_form-setup-fm-custom-input:focus {
    outline: none;
    border-color: #8b6cf8 !important;
    box-shadow: 0 0 0 3px #ece7fe;
}

/* Without a premium licence the items are shown but locked; only "-" works, so a saved value can be removed. */
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-skin-combo,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-attach-combo,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-attach-btn-plus,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-setup-fm-custom-wrap {
    opacity: .55;
    cursor: not-allowed;
}

.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-skin-combo *,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-attach-combo *,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-setup-fm-custom-wrap * {
    pointer-events: none;
}


/* ---- Step 3: record action (Freshsales) ---------------------------------------------------------------------------- */
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-action-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 18px;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-setup-action-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--integrazo_fwcrm_form-ink, #1f2430);
    cursor: pointer;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-setup-action-label input[type="radio"] {
    margin: 0;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-action-locked {
    color: var(--integrazo_fwcrm_form-muted-text, #6b7280);
    cursor: not-allowed;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-action-locked input[type="radio"] {
    cursor: not-allowed;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-fm-note {
    margin: 12px 2px 0;
    font-size: 12.5px;
    color: var(--integrazo_fwcrm_form-muted-text, #6b7280);
}

/* Edit screen, Step 1: why Freshsales could not be read (for example a rejected API key), next to the connection. */
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-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;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-conn-issue svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Additional details: Note textarea, Tags rows and the "{}" insert-field button (same look as the Zoho plugin) ── */
.integrazo_fwcrm_form-addl-col-locked textarea,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-insert-field-btn,
.integrazo_fwcrm_form-addl-col-locked .integrazo_fwcrm_form-attach-rows { opacity: .55; cursor: not-allowed; }
.integrazo_fwcrm_form-addl-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: 12px;
    background: #fbfbfe;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    margin-bottom: 8px;
}
.integrazo_fwcrm_form-addl-textarea:focus {
    border-color: var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    box-shadow: 0 0 0 3px #ece7fe;
    background: #fff;
    outline: none;
}
.integrazo_fwcrm_form-tag-rows { max-width: 460px; }
.integrazo_fwcrm_form-tag-row .integrazo_fwcrm_form-tag-row-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
}
.integrazo_fwcrm_form-tag-row .integrazo_fwcrm_form-tag-insert-btn {
    align-self: center;
    flex-shrink: 0;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 13px;
}

/* ── Step 3: Record action card ── */
.integrazo_fwcrm_form-action-card-outer {
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 16px);
    margin-bottom: 18px;
}

.integrazo_fwcrm_form-action-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--integrazo_fwcrm_form-border-100, #f1f2f7);
}

.integrazo_fwcrm_form-action-card-title,
.integrazo_fwcrm_form-filters-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-action-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.integrazo_fwcrm_form-action-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integrazo_fwcrm_form-action-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    cursor: pointer;
    min-width: 0;
}

.integrazo_fwcrm_form-action-card:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
}

.integrazo_fwcrm_form-action-card:has(input:checked) {
    border-color: var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    background: var(--integrazo_fwcrm_form-lavender-300, #f8f6ff);
}

.integrazo_fwcrm_form-action-card-disabled {
    cursor: not-allowed;
}

/* A Pro-only action without a licence: the text and dot are dimmed, the PRO badge stays clear. */
.integrazo_fwcrm_form-action-card-disabled .integrazo_fwcrm_form-action-dot,
.integrazo_fwcrm_form-action-card-disabled .integrazo_fwcrm_form-action-text {
    opacity: 0.6;
}

.integrazo_fwcrm_form-action-card .integrazo_fwcrm_form-pro-badge {
    margin-left: auto;
}

.integrazo_fwcrm_form-action-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.integrazo_fwcrm_form-action-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integrazo_fwcrm_form-action-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.integrazo_fwcrm_form-action-card input:checked + .integrazo_fwcrm_form-action-dot {
    border-color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
}

.integrazo_fwcrm_form-action-card input:checked + .integrazo_fwcrm_form-action-dot::after {
    background: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
}

.integrazo_fwcrm_form-action-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.integrazo_fwcrm_form-action-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-action-desc {
    font-size: 12px;
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
}

#integrazo_fwcrm_form-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. */
#integrazo_fwcrm_form-setup-updateActionName-area .integrazo_fwcrm_form-action-card-subtitle {
    margin-bottom: 7px;
}

.integrazo_fwcrm_form-action-card-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

