/*
Theme Name: Stainless Metal Works Child
Theme URI: https://stainless-metalworks.com/
Description: Child theme customizations for Stainless Metal Works.
Author: Stainless Metal Works
Template: neve
Version: 1.0.0
Text Domain: stainless-metalworks-child
*/

/*
 * Header actions
 *
 * The secondary menu is placed before the primary navigation in the desktop
 * header and its action links use the site's green, square-cornered buttons.
 */
#secondary-menu-desktop-main .button-primary {
	padding: 0 !important;
	background: none;
}

#secondary-menu-desktop-main .button-primary a {
	padding: 3px 12px;
}

header .builder-item.desktop-left {
	margin-bottom: 0;
}

@media (min-width: 960px) {
	.header--row[data-show-on='desktop'] .hfg-slot.right {
		flex-direction: column;
		align-items: flex-end;
	}

	.header--row[data-show-on='desktop'] .hfg-slot.right > .builder-item.desktop-left {
		order: -1;
	}

	.header--row[data-show-on='desktop'] .builder-item.desktop-left .nav-menu-secondary .nav-ul > li.button.button-primary > .wrap > a {
		background-color: #39b061;
		border: 1px solid #39b061;
		border-radius: 0;
		color: #fff;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.header--row[data-show-on='desktop'] .builder-item.desktop-left .nav-menu-secondary .nav-ul > li.button.button-primary:hover > .wrap > a,
	.header--row[data-show-on='desktop'] .builder-item.desktop-left .nav-menu-secondary .nav-ul > li.button.button-primary > .wrap > a:focus-visible {
		background-color: #fff;
		border-color: #39b061;
		color: #39b061;
	}
}

/* Contact form layout. */
#wpforms-form-1079 .wpforms-field-container {
	display: flex !important;
	flex-wrap: wrap !important;
	column-gap: 20px !important;
}

#wpforms-form-1079 .wpforms-field-container .wpforms-field-name,
#wpforms-form-1079 .wpforms-field-container .wpforms-field-text,
#wpforms-form-1079 .wpforms-field-container .wpforms-field-email {
	width: calc(50% - 10px) !important;
}

#wpforms-form-1079 .wpforms-field-container .wpforms-field-textarea {
	width: 100% !important;
}

#wpforms-form-1079 .wpforms-field-label {
	margin-bottom: 0 !important;
}

/* Use the same green square-cornered treatment for the contact form action. */
#wpforms-form-1079 button[type='submit'],
#wpforms-form-1079 input[type='submit'] {
	background-color: #39b061 !important;
	border: 1px solid #39b061 !important;
	border-radius: 0 !important;
	color: #fff !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#wpforms-form-1079 button[type='submit']:hover,
#wpforms-form-1079 button[type='submit']:focus-visible,
#wpforms-form-1079 input[type='submit']:hover,
#wpforms-form-1079 input[type='submit']:focus-visible {
	background-color: #fff !important;
	border-color: #39b061 !important;
	color: #39b061 !important;
}

@media (max-width: 600px) {
	#wpforms-form-1079 .wpforms-field-container .wpforms-field-name,
	#wpforms-form-1079 .wpforms-field-container .wpforms-field-text,
	#wpforms-form-1079 .wpforms-field-container .wpforms-field-email {
		width: 100% !important;
	}
}
