.conditionalFieldSetting-wrap.form-group {
    display: none;
}

.form-wrap.form-builder .conditionalFieldType-wrap .input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-wrap.form-builder .conditionalFieldType-wrap select.form-control {
    flex: 1;
    cursor: pointer;
}

/* Conditional Edit Button */
.conditional-edit-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0159a3;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.conditional-edit-btn.visible {
    display: flex;
}

.conditional-edit-btn:hover {
    background: #f0f9ff;
    border-color: #0159a3;
    color: #014a8c;
}

.conditional-edit-btn:active {
    transform: scale(0.95);
}

.conditional-edit-btn i {
    font-size: 14px;
}

/* ============================================
   CONDITIONAL FIELD FLYOUT PANEL STYLING
   Matches the Centrex design system
   ============================================ */

/* Flyout Panel Container */
.centrex-conditional-flyout {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.centrex-conditional-flyout.active {
    right: 0;
}

/* Full-width content (no sidebar) */
.centrex-conditional-flyout .centrex-flyout-content-full {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #fff;
}

/* Section header with icon */
.centrex-conditional-flyout .centrex-settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0159a3;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.centrex-conditional-flyout .centrex-settings-section-header i {
    font-size: 16px;
    color: #0159a3;
}

/* Section description */
.centrex-conditional-flyout .centrex-section-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* Settings rows */
.centrex-conditional-flyout .centrex-settings-row {
    margin-bottom: 24px;
}

.centrex-conditional-flyout .centrex-settings-row:last-child {
    margin-bottom: 0;
}

.centrex-conditional-flyout .centrex-settings-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.centrex-conditional-flyout .centrex-settings-row .field-description {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Select and Input styling */
.centrex-conditional-flyout .centrex-select,
.centrex-conditional-flyout .centrex-input,
.centrex-conditional-flyout select,
.centrex-conditional-flyout input[type="text"] {
    width: 100% !important;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.centrex-conditional-flyout .centrex-select,
.centrex-conditional-flyout select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.centrex-conditional-flyout .centrex-select:focus,
.centrex-conditional-flyout .centrex-input:focus,
.centrex-conditional-flyout select:focus,
.centrex-conditional-flyout input[type="text"]:focus {
    outline: none;
    border-color: #0159a3;
    box-shadow: 0 0 0 3px rgba(1, 89, 163, 0.08);
}

/* Condition Preview */
.centrex-condition-preview {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.centrex-condition-preview-text {
    font-size: 14px;
    color: #1e293b;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 14px 16px;
    line-height: 1.6;
    margin: 0;
}

.centrex-condition-preview-text strong {
    color: #0159a3;
}

/* Flyout body override for single-panel layout */
.centrex-conditional-flyout .centrex-flyout-body {
    display: block;
    flex: 1;
    overflow: hidden;
}

/* Dynamically created inputs in the value container */
#conditional_value_input_container input,
#conditional_value_input_container select {
    width: 100% !important;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

#conditional_value_input_container select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#conditional_value_input_container input:focus,
#conditional_value_input_container select:focus {
    outline: none;
    border-color: #0159a3;
    box-shadow: 0 0 0 3px rgba(1, 89, 163, 0.08);
}