/**
 * Fee Recovery for Gravity Forms - Frontend Styles
 */

/* Main container for fee recovery field */
.ginput_container_product_fees {
    clear: both;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}

/* Hide the hidden input fields */
.gfield_fixedfees,
.gfield_percentfees,
.gfield_recoverfeescustomer {
    display: none !important;
}

/* Checkbox styling */
.gfield_recoverfees {
    margin-right: 8px;
    vertical-align: middle;
}

/* Label styling */
.gform-label_product_fees {
    display: inline !important;
    font-weight: 400 !important;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

/* Fee Breakdown Table */
.gf-fee-breakdown {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 16px 0;
}

/* Modern Gravity Forms theme compatibility */
.gravity-theme .ginput_container_product_fees {
    margin-bottom: var(--gf-field-spacing, 16px);
    padding: var(--gf-field-padding, 12px);
    background: var(--gf-color-secondary-background, #f9f9f9);
    border-color: var(--gf-color-border, #e5e5e5);
}

/* Legacy theme compatibility */
.gform_wrapper .ginput_container_product_fees {
    margin-bottom: 16px;
}

/* Ensure field appears properly in form */
.gfield.gfield--type-feerecovery {
    clear: both;
}
