/* ==========================================================================
   Trigger Settings Section — scoped to .ipb-trigger-settings
   ========================================================================== */

.ipb-trigger-settings .display_wrapper,
.ipb-trigger-settings .display_inner {
    padding: 0;
    margin: 0;
}

/* Top trigger row: label + dropdown + options inline */
.ipb-trigger-settings .rules {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.ipb-trigger-settings .rules h2 {
    font-size: 14px;
    font-weight: 600;
    color: #1e1f21;
    margin: 0;
    white-space: nowrap;
    min-width: 180px;
}

/* Trigger dropdown */
.ipb-trigger-settings .rules .selection {
    position: relative;
    width: auto;
    flex: 0 0 auto;
}

.ipb-trigger-settings .rules .selection select {
    width: 300px;
    max-width: 300px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3338;
    background: #fff;
    cursor: pointer;
}

.ipb-trigger-settings .rules .selection select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Trigger options (delay input, class input, trash) */
.ipb-trigger-settings .trigger_options {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    flex: 0 1 auto;
}

.ipb-trigger-settings .trigger_options .fields {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    margin: 0;
    flex: 0 0 auto;
}

.ipb-trigger-settings .trigger_options .fields input[type="number"] {
    width: 200px;
    max-width: 200px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3338;
    background: #fff;
    box-sizing: border-box;
}

.ipb-trigger-settings .trigger_options .fields input[type="text"] {
    width: 220px;
    max-width: 220px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
    color: #2c3338;
    background: #f6f7f7;
    box-sizing: border-box;
}

.ipb-trigger-settings .trigger_options .fields input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Trash icon — subtle */
.ipb-trigger-settings .trigger_options > i.fa-solid.fa-trash {
    position: static;
    top: auto;
    font-size: 14px;
    color: #a7aaad;
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 6px;
}

.ipb-trigger-settings .trigger_options > i.fa-solid.fa-trash:hover {
    color: #d63638;
}

/* Hide info icons */
.ipb-trigger-settings .trigger_options .info {
    display: none;
}

/* Helper text below the row */
.ipb-trigger-settings .ipb-trigger-helper {
    margin: 8px 0 0 0;
    padding-left: 192px;
    font-size: 12px;
    color: #646970;
    line-height: 1.4;
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    .ipb-trigger-settings .rules {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ipb-trigger-settings .rules h2 {
        min-width: auto;
        width: 100%;
    }

    .ipb-trigger-settings .rules .selection {
        flex: 1 1 auto;
    }

    .ipb-trigger-settings .rules .selection select {
        width: 100%;
        max-width: 100%;
    }

    .ipb-trigger-settings .trigger_options {
        width: 100%;
        flex-wrap: wrap;
    }

    .ipb-trigger-settings .trigger_options .fields input[type="number"],
    .ipb-trigger-settings .trigger_options .fields input[type="text"] {
        width: 100%;
        max-width: 100%;
    }

    .ipb-trigger-settings .ipb-trigger-helper {
        padding-left: 0;
    }
}
