/**
 * SAA Store single-product purchase forms and reviews.
 * Add this file to the Astra child theme stylesheet bundle.
 */

.saa-product-preview-notice {
	padding: 12px 14px;
	border-left: 3px solid #00733f;
	background: #eef8f3;
	color: #344346;
	font-size: 14px;
}

/* Shared custom-form elements. */
.saa-options-form {
	width: 100%;
	max-width: 380px;
	margin: 0;
	color: #344346;
}

.saa-options-title,
.saa-donation-label {
	display: block;
	margin: 0 0 14px;
	color: #344346;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.saa-options-submit {
	box-sizing: border-box;
	min-height: 46px;
	margin: 0;
	padding: 12px 24px;
	border: 1px solid #00733f;
	border-radius: 0;
	background: #00733f;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
}

.saa-options-submit:hover,
.saa-options-submit:focus {
	border-color: #005f34;
	background: #005f34;
	color: #fff;
}

.saa-options-submit:disabled {
	cursor: wait;
	opacity: .65;
}

.saa-form-status {
	min-height: 20px;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

.saa-form-status.is-error {
	color: #b42318;
}

.saa-form-status.is-success {
	color: #00733f;
}

/* Bronze medallion label quantities. */
.saa-options-form--bronze {
	max-width: 660px;
}

.saa-bronze-grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(10, auto);
	grid-auto-columns: minmax(104px, 1fr);
	gap: 8px 12px;
	margin-bottom: 22px;
}

.saa-bronze-option {
	display: grid;
	grid-template-columns: max-content 48px;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
}

.saa-bronze-option label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.saa-bronze-option input {
	box-sizing: border-box;
	width: 48px;
	height: 34px;
	margin: 0;
	padding: 5px 3px;
	border: 1px solid #e1e6e3;
	border-radius: 0;
	background: #fff;
	color: #344346;
	text-align: center;
}

/* Plastic chips and key-chain fobs. */
.saa-option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 26px;
	margin-bottom: 18px;
}

.saa-option-row {
	display: grid;
	grid-template-columns: minmax(58px, 1fr) 52px 25px;
	gap: 8px;
	align-items: center;
}

.saa-option-row label {
	margin: 0;
	font-size: 13px;
	line-height: 1.25;
}

.saa-option-row input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 8px 5px;
	border: 1px solid #e1e6e3;
	border-radius: 0;
	background: #fff;
	color: #344346;
	text-align: center;
}

.saa-color-dot {
	display: block;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	border: 1px solid #d8dfdc;
	border-radius: 50%;
	background: var(--saa-option-color);
}

.saa-required-note {
	margin: 2px 0 18px;
	color: #e13535;
	font-size: 13px;
	font-weight: 600;
}

/* Virtual medallion image choices. */
.saa-image-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	max-width: 360px;
	margin-bottom: 22px;
}

.saa-image-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.saa-image-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.saa-image-option__label {
	display: block;
	min-height: 34px;
	color: #344346;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.saa-image-option__image {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 72px;
	height: 84px;
	padding: 4px;
	border: 1px solid #e1e6e3;
	background: #fff;
}

.saa-image-option__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.saa-image-option input:checked + .saa-image-option__label + .saa-image-option__image,
.saa-image-option input:focus-visible + .saa-image-option__label + .saa-image-option__image {
	border-color: #00733f;
	box-shadow: 0 0 0 1px #00733f;
}

.saa-donation-label {
	margin-bottom: 8px;
}

.saa-money-input {
	display: grid;
	grid-template-columns: 24px 58px;
	box-sizing: border-box;
	width: 84px;
	height: 46px;
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid #e1e6e3;
	border-radius: 0;
	background: #fff;
	color: #344346;
}

.saa-money-input span {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 14px;
}

.saa-money-input input {
	min-width: 0;
	width: 100%;
	height: 44px;
	padding: 8px 6px 8px 3px;
	border: 0;
	background: transparent;
	color: #344346;
}

/* Native WooCommerce form fallback for other products. */
.saa-product-purchase form.cart {
	margin: 0;
}

.saa-product-purchase form.cart:not(.variations_form):not(.grouped_form),
.saa-product-purchase .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.saa-product-purchase .quantity {
	float: none !important;
	margin: 0 !important;
}

.saa-product-purchase .quantity .qty {
	box-sizing: border-box;
	width: 54px;
	height: 46px;
	margin: 0;
	padding: 8px 6px;
	border: 1px solid #e1e6e3;
	border-radius: 0;
	background: #fff;
	color: #344346;
	text-align: center;
}

.saa-product-purchase .single_add_to_cart_button.button,
.saa-product-purchase a.button {
	min-height: 46px;
	margin: 0 !important ;
	padding: 12px 24px;
	border: 1px solid #00733f;
	border-radius: 0;
	background: #00733f;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;

}

.saa-product-purchase .single_add_to_cart_button.button:hover,
.saa-product-purchase .single_add_to_cart_button.button:focus,
.saa-product-purchase a.button:hover,
.saa-product-purchase a.button:focus {
	border-color: #005f34;
	background: #005f34;
	color: #fff;
}

.saa-product-purchase table.variations {
	width: 100%;
	margin: 0 0 18px;
	border: 0;
}

.saa-product-purchase table.variations th,
.saa-product-purchase table.variations td {
	padding: 8px 8px 8px 0;
	border: 0;
	background: transparent;
	text-align: left;
	vertical-align: middle;
}

.saa-product-purchase table.variations select {
	min-width: 190px;
	height: 46px;
	padding: 8px 36px 8px 12px;
	border: 1px solid #e1e6e3;
	border-radius: 0;
	background-color: #fff;
}

/* WooCommerce product reviews. */
.saa-product-reviews-shortcode .woocommerce-Reviews-title {
	display: none;
}

.saa-product-reviews-shortcode #reviews,
.saa-product-reviews-shortcode #comments {
	margin: 0;
}

.saa-product-reviews-shortcode ol.commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.saa-product-reviews-shortcode ol.commentlist > li {
	margin: 0 0 34px;
	padding: 0;
	border: 0;
	background: transparent;
}

.saa-product-reviews-shortcode .comment_container {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.saa-product-reviews-shortcode #reviews #comments ol.commentlist li img.avatar {
	position: static;
	float: none;
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
}

.saa-product-reviews-shortcode #reviews #comments ol.commentlist li .comment-text {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.saa-product-reviews-shortcode .star-rating {
	float: right;
	margin: 2px 0 8px 18px;
	color: #edaa25;
	font-size: 18px;
}

.saa-product-reviews-shortcode .meta {
	margin: 0 0 16px;
	color: #687174;
	font-size: 13px;
	line-height: 1.5;
}

.saa-product-reviews-shortcode .woocommerce-review__author {
	display: block;
	margin-bottom: 2px;
	color: #344346;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 700;
}

.saa-product-reviews-shortcode .description {
	clear: both;
	color: #566063;
	font-size: 14px;
	line-height: 1.75;
}

.saa-product-reviews-shortcode #review_form_wrapper {
	margin-top: 28px;
}

.saa-product-reviews-shortcode .comment-reply-title {
	display: block;
	margin-bottom: 18px;
	color: #344346;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 700;
}

.saa-product-reviews-shortcode .comment-form label {
	display: block;
	margin-bottom: 7px;
	color: #344346;
	font-size: 14px;
	font-weight: 600;
}

.saa-product-reviews-shortcode .comment-form input[type="text"],
.saa-product-reviews-shortcode .comment-form input[type="email"],
.saa-product-reviews-shortcode .comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #e1e6e3;
	border-radius: 0;
	background: #fff;
}

.saa-product-reviews-shortcode .comment-form textarea {
	min-height: 130px;
}

.saa-product-reviews-shortcode .comment-form .submit {
	min-height: 44px;
	padding: 11px 22px;
	border: 1px solid #00733f;
	border-radius: 0;
	background: #fff;
	color: #344346;
	font-size: 14px;
	font-weight: 700;
}

.saa-product-reviews-shortcode .comment-form .submit:hover,
.saa-product-reviews-shortcode .comment-form .submit:focus {
	background: #00733f;
	color: #fff;
}

@media (max-width: 1024px) {
	.saa-bronze-grid {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-columns: auto;
	}
}

@media (max-width: 767px) {
	.saa-options-form {
		max-width: none;
	}

	.saa-bronze-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
	}

	.saa-option-grid {
		gap: 12px 18px;
	}

	.saa-product-purchase form.cart:not(.variations_form):not(.grouped_form),
	.saa-product-purchase .woocommerce-variation-add-to-cart {
		display: grid;
		grid-template-columns: 54px minmax(0, 1fr);
	}

	.saa-product-purchase .single_add_to_cart_button.button,
	.saa-product-purchase a.button,
	.saa-product-purchase table.variations select {
		width: 100%;
	}

	.saa-product-reviews-shortcode .comment_container {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 12px;
	}

	.saa-product-reviews-shortcode #reviews #comments ol.commentlist li img.avatar {
		width: 44px;
		height: 44px;
	}

	.saa-product-reviews-shortcode .star-rating {
		float: none;
		margin: 0 0 10px;
	}
}

@media (max-width: 380px) {
	.saa-option-grid,
	.saa-bronze-grid {
		grid-template-columns: 1fr;
	}

	.saa-image-options {
		gap: 8px;
	}

	.saa-image-option__image {
		width: 64px;
		height: 76px;
	}
}
