/*
Custom modifications by Needmore to be incorporated into theme
This file is included after the theme's css files
*/

/* Manually set background color to cream for search and account pages */
body.search,
body.woocommerce-account {
	/* background-color: #F9F9EE; */
}

/* Optional toggle to appear below the menu */
.bottom-switcher,
.bottom-mobile-switcher {
	position: absolute;
	height: 2em;
}
.bottom-switcher {
	display: none;
	@media screen and (min-width: 991.5px) {
		display: block;
		bottom: 28px;
	}
}
.bottom-mobile-switcher {
	display: none;
	@media screen and (max-width: 991.5px) {
		display: block;
		bottom:120px;
	}
}

/* Tech Bulletins feature from old site */
section.tech_bulletins div.links {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	margin-bottom: 2em;
}
section.tech_bulletins div.links .link {
	margin-bottom: 0.5em;
}
section.tech_bulletins div.links .link i {
	display: block;
	float: left;
}
section.tech_bulletins div.links .link a {
	display: block;
	margin: 0 0 0 1.25em;
}
section.tech_bulletins div.links .link a:hover {
	color: red;
}

.accordion.twocol {
	display: flex;
	flex-wrap: wrap;
}
.accordion.twocol .accordion-item {
	@media screen and (min-width: 991.5px) {
		width: calc(50% - 8px);
		margin-right: 8px;
	}
}
.accordion.twocol .accordion-item a {
	text-decoration: none;
}
.accordion.twocol .accordion-item a:hover {
	text-decoration: underline;
}


/* Fix Gravity Forms styling to better match theme design */
.gform_wrapper form .form-control,
.gform_wrapper form .form-select {
	border-bottom: none !important;
	padding: 0;
	background-image: none !important;
}
.gform_wrapper form select {
	border: 0 solid #222;
	border-bottom: 1px solid #222;
	color: rgba(var(--bs-dark-rgb),var(--bs-text-opacity));
	padding: 1rem 0rem !important;
	margin: 0;
	font-weight: 400;
	font-size: 18px !important;
	line-height: 1.5;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 0;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	/* Add the little down-arrow on the right */
	background-color: rgba(0, 0, 0, 0);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-position: right 0rem center;
	background-size: 16px 12px;
	background-repeat: no-repeat;
}
.gform_wrapper form input[type=text],
.gform_wrapper form input[type=tel],
.gform_wrapper form input[type=text],
.gform_wrapper form input[type=email],
.gform_wrapper form input[type=url],
.gform_wrapper form textarea {
	color: rgba(var(--bs-dark-rgb),var(--bs-text-opacity));
	padding: 1rem 0rem !important;
	margin: 0;
	font-weight: 400;
	font-size: 18px !important;
	line-height: 1.5;
	color: #222;
	border: 0 solid #222;
	border-bottom: 1px solid #222;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.gform_wrapper form input:focus,
.gform_wrapper form select:focus {
	border-color: #eed0aa !important;
	color: #222;
	outline: 0;
	box-shadow: 0 0 0 .35rem rgba(221,161,84,.45)!important;
}
.gform_footer input[type=submit] {
	--bs-btn-focus-box-shadow: 0 0 0 0.5rem rgba(var(--bs-btn-focus-shadow-rgb), .45);
	text-decoration: none!important;
	text-transform: uppercase;
	transition: all 600ms cubic-bezier(.65,0,.35,1);
	color: #fff;
	background-color: #222222;
	font-size: 18px !important;
	font-weight: 700;
	line-height: 27px;
	min-width: 150px;
	padding: 15px 40px;
	border: none !important;
	border-radius: 40px;
}
.gform_footer {
	justify-content: flex-end;
}
.gform_footer input[type=submit]:hover {
	color: white;
	background-color: #434343;
	border-color: #434343;
}
