/* Additions to the original theme stylesheet for things jQuery/Bootstrap JS and WordPress plugins used to provide. */

/* Carousel without Bootstrap's jQuery plugin: fade between slides. */
#carousel-example-generic .item {
	display: block;
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
}
#carousel-example-generic .item.active {
	position: relative;
	opacity: 1;
	z-index: 1;
}
#carousel-example-generic .carousel-control {
	z-index: 2;
}
#carousel-example-generic .item img {
	width: 100%;
	height: auto;
}

/* EmDash <Image> output inside the theme's columns behaves like the old <img> tags. */
.featured-image-wrapper img,
.product-wrapper img {
	max-width: 100%;
	height: auto;
}
.product-wrapper img {
	display: inline-block;
}

/* WP Ecommerce PayPal button (plugin stylesheet) */
.wpecpp-container.wpecpp-align-left {
	text-align: left;
}

/* Contact form: EmDash forms markup styled like the CF7 Bootstrap 3 form on WordPress
   (.form-group / .form-control at 16px, .btn-success.btn-lg right-aligned; values measured on live). */
.ec-form fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}
.ec-form-field {
	margin-bottom: 15px;
}
.ec-form-label {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 5px;
	font-weight: bold;
}
.ec-form-required {
	display: none;
}
/* Labels read "Name:" like the old form; the colon stays out of the notification email. */
.ec-form-label::after {
	content: ":";
}
.ec-form-input {
	display: block;
	width: 100%;
	height: 36px;
	padding: 6px 12px;
	font-size: 16px;
	line-height: 1.42857;
	color: #555;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
.ec-form-input:focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
textarea.ec-form-input {
	height: 243px;
}
.ec-form-error:not(:empty) {
	display: inline-block;
	background: #c92020;
	color: #fff;
	padding: 4px 14px;
	margin-top: 4px;
	border-radius: 4px;
}
.ec-form-nav {
	text-align: right;
	margin-bottom: 11px;
}
/* CF7 kept a hidden 24px spinner (with 24px margins) to the right of the button. */
.ec-form-nav::after {
	content: "";
	display: inline-block;
	width: 72px;
}
.ec-form .ec-form-submit {
	display: inline-block;
	padding: 10px 16px;
	font-size: 20px;
	line-height: 1.33333;
	border: 1px solid #2d982d;
	border-radius: 6px;
	color: #fff;
	background-color: #33ac33;
	cursor: pointer;
}
.ec-form .ec-form-submit:hover {
	background-color: #288728;
	border-color: #217121;
}
.ec-form-status:not(:empty) {
	border: 2px solid #46b450;
	padding: 0.2em 1em;
	margin: 1em 0;
}

/* WordPress printed whitespace between the inline-block menu items (Astro compresses it away). */
@media (min-width: 768px) {
	.navbar-nav > li + li {
		margin-left: 0.25em;
	}
}
