/*
 * Aomeda Performance Core component styles
 * Shared defaults for classic templates and blocks are grouped by component.
 * Keep native-only layout deltas under "Block layout overrides" at the end;
 * feature-owned styles stay in their own plugins. See docs/block-styles.md.
 */

/* BEGIN Free shipping and rewards progress */
.apc-progress,
.acd-progress {
	padding: 0 0 12px 0;
	margin: 0;
	background-color: #ffffff;
	border-bottom: 1px solid #eee;
}

.apc-progress-text,
.acd-progress-text {
	background-color: #FFCC00;
	padding: 8px 22px;
	margin: 0 0 8px 0;
	font-weight: bold;
	font-size: 0.8rem;
	border-radius: 12px;
}

.apc-progress-track,
.acd-progress-track {
	height: 8px;
	background: #eee;
	border-radius: 99px;
	overflow: hidden;
	margin: 0 22px 8px 22px
}

.apc-progress-fill,
.acd-progress-fill {
	height: 100%;
	/* background: linear-gradient(90deg,#e0b93e 0%,#dbad3a 70%,#8e661a 100%); */
	background-color: #5cb458;
}

.apc-reward-tiers,
.acd-reward-tiers {
	display: flex;
	gap: 8px;
	margin: 0 22px 8px 22px;
	font-size: 11px;
}

.apc-reward-tier,
.acd-reward-tier {
	flex: 1;
	padding: 6px;
	border: 1px solid #eee;
	border-radius: 6px;
	text-align: center;
	opacity: .65;
}

.apc-reward-tier.is-complete,
.acd-reward-tier.is-complete {
	opacity: 1;
	background-color: #c7f1c5;
	border: 1px solid #5cb458;
}

/* END Free shipping and rewards progress */

/* BEGIN Shared merchandising (Drawer, Popup, product, archive and Checkout) */
.apc-campaign {
	margin: 12px 16px;
	padding: 12px;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fafafa;
}

.apc-campaign-title {
	margin: 0 0 4px;
	font-size: 14px;
}

.apc-campaign-text {
	margin: 0 0 8px;
	font-size: 13px;
}

.apc-product-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	height: 100%;
	font-size: 13px;
}

.apc-campaign-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 6px;
	background: #111;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
}

.apc-recommendations {
	margin-top: 18px;
	/* display: inherit; */
}

.apc-recommendations h4 {
	font-size: 1rem!important;
	font-weight: 600;
	margin: 0;
	padding: 0 0 12px 0;
}

.apc-cross-sells .apc-recommendations-list,
.apc-gift-suggestions .apc-recommendations-list,
.apc-complementary-products .apc-recommendations-list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	-webkit-overflow-scrolling: touch;
	padding: 12px;
	scrollbar-width: none;
}

.apc-cross-sells .apc-recommendations-list::-webkit-scrollbar,
.apc-gift-suggestions .apc-recommendations-list::-webkit-scrollbar,
.apc-complementary-products .apc-recommendations-list::-webkit-scrollbar {
	display: none;
}

.apc-cross-sells .apc-product-card,
.apc-gift-suggestions .apc-product-card,
.apc-complementary-products .apc-product-card {
	flex: 0 0 calc((100% - 12px) / 1.33);
	scroll-snap-align: start;
}

/* Neutral safeguards for every supported classic single-product placement. */
body.single-product .apc-complementary-products {
	box-sizing: border-box;
	clear: both;
	width: 100%;
	max-width: 100%;
}

body.single-product .apc-complementary-products .apc-recommendations-list,
body.single-product .apc-complementary-products .apc-product-card,
body.single-product .apc-complementary-products .apc-product-thumb,
body.single-product .apc-complementary-products .apc-product-info {
	box-sizing: border-box;
	min-width: 0;
}

body.single-product .apc-complementary-products .apc-recommendations-list {
	width: 100%;
	max-width: 100%;
}

body.single-product .apc-complementary-products .apc-product-thumb img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

body.single-product .apc-complementary-products .apc-product-title {
	overflow-wrap: anywhere;
}

.sswc-shell .apc-recommendations .apc-product-card, .sswc-shell .apc-cross-sells .apc-product-card {
	flex: 0 0 calc((100% - 12px) / 2.43);
	display: flex;
	flex-direction: column;
}

/* Checkout savings */
.apc-native-checkout-savings {
	padding: 0 16px;
	margin: 0;
	display: flex;
	justify-content: space-between;
}
.apc-native-checkout-savings .savings-label {
	
}
.apc-native-checkout-savings .savings-amount {

}

/* BEGIN Recommendations and gifts Aomeda Shop Page tweaks */

.asp-shop-page-main .asp-merchandising-block {
	padding: 32px 0;
}
.asp-shop-page-main .asp-merchandising-block .apc-recommendations .apc-product-card {
	flex: 0 0 calc((100% - 12px) / 3.43)!important;
}

/* END Recommendations and gifts Aomeda Shop Page tweaks */

/* BEGIN Recommendations and gifts Aomeda Product Page tweaks */

.aomeda-product-page .apc-recommendations .apc-product-card {
	flex: 0 0 calc((100% - 12px) / 1.43)!important;
	display: flex;
	flex-direction: column;
}

.aomeda-product-page .apc-recommendations .apc-product-card .apc-product-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	height: 100%;
	font-size: 13px;
}

/* END Recommendations and gifts Aomeda Product Page tweaks */

/* BEGIN Product badges tweaks */

.sswc-cross-sells .apc-product-badges,
.aomeda-shop-page .apc-recommendations .apc-product-badges {
	position: static;
	margin: 6px 0 0 0;
}
.sswc-cross-sells .apc-product-badge,
.aomeda-product-page .apc-recommendations .apc-product-card .apc-product-info .apc-product-badge,
.aomeda-shop-page .apc-recommendations .apc-product-card .apc-product-info .apc-product-badge {
	padding: 3px;
	border-radius: 3px;
	font-size: 10px;
}

/* END Product badges tweaks */

/* BEGIN Related products Aomeda product page */

.aomeda-product-page .aomeda-related-products ul {
	display: flex;
	gap: 32px;
	padding: 0;
	margin: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	align-items: stretch;
}
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card {
	flex: 0 0 calc((100% - 12px) / 4.53);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
}
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card .asp-card-image-link .woocommerce-LoopProduct-link {
	aspect-ratio: 4/3;
}
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card .woocommerce-loop-product__title {
	font-size: 15px;
	line-height: 1.25;
	margin: 6px 0;
	padding: 0;
}
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card,
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card .price ins.h3  {
	font-size: 16px!important;
	font-weight: normal;
	text-decoration: none;
}
@media (max-width: 768px) {
.aomeda-product-page .aomeda-related-products ul {
	gap: 12px;
}
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card {
	flex: 0 0 calc((100% - 12px) / 2.33);
}
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card .add_to_cart_button,
.aomeda-product-page .aomeda-related-products ul .aomeda-related-product-card .asp-out-of-stock-button {
	padding: 12px 0!important;
}
}

/* END Related products Aomeda product page */

.apc-product-card {
	display: grid;
	grid-template-columns: 64px 1fr;
	position: relative;
	gap: 10px;
	align-items: center;
	padding: 10px;
	background-color: #f9f8f6;
	border: 1px solid #eee;
	border-radius: 12px;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.apc-product-card img {
	width: auto;
	height: 100px;
	display: block;
}

.apc-product-title {
	display: block;
	font-weight: 600;
	text-decoration: none;
}

.acd-item-price ins,
.acd-item-price bdi,
.apc-product-price ins,
.apc-product-price bdi {
	font-size: 14px!important;
	text-decoration: none;
}

.add_to_cart_button {
	display: inline-flex;
	margin-top: 6px;
	padding: 5px 10px;
	border: 1px solid #111;
	background: #111;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	font-size: 13px;
	border-radius: 999px;
}

.apc-product-card .apc-product-info .apc-product-badges .apc-product-badge.apc-badge-low-stock,
.apc-product-card .apc-product-info .apc-product-badges .apc-product-badge.apc-badge-free-delivery,
.apc-product-card .apc-product-info .apc-product-badges .apc-product-badge.apc-badge-sale {
	display: none;
}

/* END Shared merchandising */

/* BEGIN Trust Strip */

.apc-trust-strip {
	
}
.acd-trust-badge,
.apc-trust-strip-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border: 1px solid #eee;
	border-radius: 999px;
	background: #fff;
	line-height: 1.2;
	font-size: 0.8rem;
}

.apc-trust-strip-item::before {
	display: inline-block;
	line-height: 1;
}

.apc-trust-fast-delivery::before {
	content: "🚚";
}

.apc-trust-secure-payment::before {
	content: "🔒";
}

.apc-trust-easy-returns::before {
	content: "↩";
}

.apc-trust-cash-on-delivery::before {
	content: "💵";
}

.apc-trust-verified-products::before {
	content: "✓";
}
.apc-trust-strip-item--image {
	border: none;
	width: 100%;
	text-align: center;
	display: block;
}
.apc-trust-strip-item--image img {
	height: 32px!important;
	width: auto;
	margin: auto;
}
.apc-trust-payments img {
	width: 100%;
	height: auto!important;
}


/* END Trust Strip */


/* BEGIN Cart Addons */
.apc-cart-addons {
	display: flex;
	gap: 8px;
	padding: 12px;
}

.apc-cart-addon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fff;
	text-align: left;
	cursor: pointer;
}

.apc-cart-addon.is-active {
	background-color: #c7f1c5;
	border: 1px solid #5cb458;
}

.apc-cart-addon-main strong {
	display: block;
	font-size: 12px;
}

.apc-cart-addon-main small {
	margin-top: 2px;
	opacity: .7;
	display: none!important;
}

.apc-cart-addon-price ins.h3 {
	white-space: nowrap;
	font-weight: 600;
	font-size: 12px!important;
}
/* END Cart Addons */


/* BEGIN Loading Add to cart */

.add_to_cart_button.loading,
.single_add_to_cart_button.loading {
	position: relative!important;
	pointer-events: none;
	opacity: .7;
}

.add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: aomeda-spin .6s linear infinite;
	vertical-align: middle;
}

@keyframes aomeda-spin {
	to {
		transform: rotate(360deg);
	}
}

/* END Loading Add to cart */

/* # BEGIN Product Badges (shared automatic and editor placements) */

.apc-product-badges {
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	top: 8px;
	left: 8px;
	gap: 5px;
	margin: 0;
	z-index: 5;
}
.apc-product-badges.apc-product-badges--placed {
	position: static;
}
.apc-product-badges-image {
	position: relative;
}
.apc-product-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 5px;
	font-size: 12px;
	line-height: 1;
	font-weight: 600;
	background: #111;
	color: #fff;
}
.apc-badge-sale {
	background: #FF0000;
	color: #ffffff;
}
.apc-badge-new {
	background: #F306D7;
	color: #fff;
}
.apc-badge-bestseller {
	background: #FDBAD8;
	color: #9E3761;
}
.apc-badge-low-stock {
	background: #D23030;
	color: #fff;
}
.apc-badge-free-delivery {
	background: #C4EBB0;
	color: #357416;
}
.apc-badge-limited-offer {
	background: #B64FF2;
	color: #fff;
}
.apc-product-badge::before {
	display: inline-block;
	margin-right: 4px;
}
.apc-badge-sale::before {
	content: "🏷";
}
.apc-badge-new::before {
	content: "✨";
}
.apc-badge-bestseller::before {
	content: "🔥";
}
.apc-badge-low-stock::before {
	content: "⚠";
}
.apc-badge-free-delivery::before {
	content: "🚚";
}
.apc-badge-limited-offer::before {
	content: "⏰";
}

/* # END Product Badges */


/* # BEGIN Promo Banners */

.apc-promo-banner {
	width: 100%;
	margin: 18px 0;
}
.apc-promo-banner-link {
	display: block;
	text-decoration: none;
}
.apc-promo-banner picture {
	display: block;
}
.apc-promo-banner-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}
.apc-promo-banner--between_products {
	grid-column: 1 / -1;
}

/* # END Promo Banners */


@media (max-width: 767px) {
	/* BEGIN Recommendations and gifts Aomeda Shop Page tweaks */
	.asp-shop-page-main .asp-merchandising-block .apc-recommendations .apc-product-card {
		flex: 0 0 calc((100% - 12px) / 2.23)!important;
		display: flex;
		flex-direction: column;
	}
	/* END Recommendations and gifts Aomeda Shop Page tweaks */
}

@media (min-width: 768px) {
	.aomeda-product-page .apc-recommendations .apc-product-card {
		flex: 0 0 calc((100% - 12px) / 2.43)!important;
		display: flex;
		grid-template-columns: 64px 1fr;
		position: relative;
		gap: 10px;
		align-items: center;
		padding: 10px;
		background-color: #f9f8f6;
		border: 1px solid #eee;
		border-radius: 12px;
		box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	}
	.ascp-dialog .apc-recommendations .apc-product-card {
		display: grid;
	}
	
	.sswc-shell .apc-recommendations .apc-product-card, .sswc-shell .apc-cross-sells .apc-product-card {
		flex: 0 0 calc((100% - 12px) / 4.73)!important;
		display: grid;
		grid-template-columns: 64px 1fr;
		position: relative;
		gap: 10px;
		align-items: center;
		padding: 10px;
		background-color: #f9f8f6;
		border: 1px solid #eee;
		border-radius: 12px;
		box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	}
	.apc-product-card img {
		width: 100%;
		height: auto;
		display: block;
	}
}
/* BEGIN Block layout overrides
 *
 * Native Cart and Checkout use the shared component rules above. Keep new
 * native-only overrides scoped to their block surface. On Checkout, also
 * account for Pack blocks placed beside the form: see docs/block-styles.md.
 */

/* Native Cart and Checkout line-class filter: paid add-ons affect totals only. */
.apc-native-addon-line {
	display: none !important;
}

/* END Block layout overrides */
