/*
----------------------------------------------------------------

theme-foundation.css
Gravity Forms Theme Foundation Styles & CSS API
For the PayPal Checkout Add-On
A Gravity Forms theme framework foundation responsible for layout,
out-of-the-box enhanced ui, and other basic required styles for
the PayPal Checkout Add-On.
https://www.gravityforms.com

Gravity Forms is a Rocketgenius project
copyright 2008-2024 Rocketgenius Inc.
https://www.rocketgenius.com
this may not be re-distributed without the
express written permission of the author.

NOTE: DO NOT EDIT THIS FILE!
THIS FILE IS REPLACED DURING AUTO UPGRADE
AND ANY CHANGES MADE HERE WILL BE OVERWRITTEN.

----------------------------------------------------------------
*/

/* Layout Handling */

.gform-theme--foundation .gfield--type-paypal, .gform-theme--foundation .gfield--type-paypal .ginput_container_custom_card_fields {
		display: none;
	}

.gform-theme--foundation .gfield--type-paypal .ginput_container_custom_card_fields--is-active {
		display: flex;
	}

.gform-theme--foundation .gform_ppcp_payment_method + .ginput_container_custom_card_fields--is-active {
		margin-block-start: 12px;
	}

/* TODO: this can be removed when we update the core credit card field to not use CSS to position sub-label */

.gform-theme--foundation .gfield--type-paypal.field_sublabel_below .ginput_cardinfo_left {
		flex-direction: column;
		justify-content: flex-start;
	}

/* Smart Payment Buttons */

.gform-theme--foundation .gform_previous_button {
		block-size: 0 !important;
	}

.gform-theme--foundation .gform_page_footer .gform_ppcp_smart_payment_buttons {
		display: inline-block;
		margin-block: 8px 16px;
		margin-inline: 0;
		vertical-align: top;
	}

.gform-theme--foundation .gform_footer .gform_ppcp_smart_payment_buttons {
		margin-block-end: 16px;
		margin-inline-end: 0;
	}

.gform-theme--foundation .gform_ppcp_smart_payment_buttons {
		inline-size: 100%;
	}

.gform-theme--foundation .gform_ppcp_smart_payment_buttons .validation_message {
			margin-block-start: 8px;
		}

@media (min-width: 640px) {

		.gform-theme--foundation .gform_page_footer .gform_ppcp_smart_payment_buttons {
			margin-block: auto 0;
			margin-inline: 16px;
		}

		.gform-theme--foundation .gform_footer .gform_ppcp_smart_payment_buttons {
			margin-inline-end: 16px;
		}

			.gform-theme--foundation .gform_ppcp_smart_payment_buttons.small {
				inline-size: 33%;
			}

			.gform-theme--foundation .gform_ppcp_smart_payment_buttons.medium {
				inline-size: 66%;
			}

			.gform-theme--foundation .gform_ppcp_smart_payment_buttons.large, .gform-theme--foundation .gform_ppcp_smart_payment_buttons.responsive {
				inline-size: 100%;
			}
	}

/* Smart Payment Buttons: Conversational Form Overrides */

.gform-theme--foundation .gform-conversational__field-form-footer .gform_ppcp_smart_payment_buttons {
		inline-size: auto;
		margin-block: 0;
		margin-inline: 0;
	}

/*# sourceMappingURL=theme-foundation.css.map */
