/*
 * Gravity Forms 3 submit buttons in Essential Addons' Gravity Forms widget (EOWBF-394).
 *
 * Gravity Forms 2.x rendered the submit as <input type="submit">; 3.x renders a <button>. Essential
 * Addons' styles for the widget (and its cached per-page CSS) only target input[type="submit"], so the
 * button fell back to the theme's button padding, wrapped ("SUB / MIT"), lost the full-width option
 * and picked up Gravity Forms' own 8px bottom margin. These rules give the button what Essential
 * Addons gave the input. Each widget's own button settings (width, padding, colours) use more specific
 * selectors and still win.
 */
.eael-gravity-form .gform_wrapper .gform_footer button.gform_button,
.eael-gravity-form .gform_wrapper .gform_page_footer button.gform_button {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 20px;
	white-space: nowrap;
	transition: all 0.25s linear;
}

.eael-gravity-form-button-full-width .gform_wrapper .gform_footer button.gform_button,
.eael-gravity-form-button-full-width .gform_wrapper .gform_page_footer button.gform_button {
	width: 100%;
}

/*
 * Keep the Elementor kit's button border colour on hover and focus. The kit styles input[type="submit"]
 * with a selector strong enough to beat Astra's .button:hover/.button:focus border colour (#e5e5e5);
 * its plain "button" selector isn't.
 */
.elementor-kit-11 .eael-gravity-form .gform_footer button.gform_button,
.elementor-kit-11 .eael-gravity-form .gform_page_footer button.gform_button {
	border-color: var(--e-global-color-accent);
}

/* Gravity Forms 2.x's phone rule for .gravity-theme inputs (line-height: 2) also reached the submit input. */
@media only screen and (max-width: 641px) {
	.eael-gravity-form .gform_wrapper.gravity-theme .gform_footer button.gform_button,
	.eael-gravity-form .gform_wrapper.gravity-theme .gform_page_footer button.gform_button {
		line-height: 2;
	}
}
