.ay-page-loader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	background: #fff;
	transition: opacity .25s ease, visibility .25s ease;
}

.ay-page-loader.is-finished {
	visibility: hidden;
	opacity: 0;
}

.ay-page-loader__mark {
	width: 42px;
	height: 42px;
	border: 3px solid color-mix(in srgb, var(--ay-color-primary, #0066cc) 18%, transparent);
	border-top-color: var(--ay-color-primary, #0066cc);
	border-radius: 50%;
	animation: ay-loader-spin .7s linear infinite;
}

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

.ay-campaign-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.ay-campaign-popup[hidden] {
	display: none;
}

.ay-campaign-popup__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: rgba(6, 20, 38, .68);
	border: 0;
	backdrop-filter: blur(4px);
}

.ay-campaign-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	padding: 42px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 32px 90px rgba(3, 15, 35, .28);
}

.ay-campaign-popup__dialog h2 {
	margin: 0 0 12px;
	color: #0f172a;
	font-size: clamp(24px, 4vw, 36px);
}

.ay-campaign-popup__dialog p {
	margin: 0;
	color: #64748b;
	font-size: 16px;
	line-height: 1.7;
}

.ay-campaign-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #334155;
	background: #f1f5f9;
	border: 0;
	border-radius: 50%;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

body.ay-button-border :where(.button, button, [type="submit"], .wp-element-button) {
	color: var(--ay-color-primary, #0066cc);
	background: transparent;
	border: 1px solid currentColor;
}

body.ay-button-flat :where(.button, button, [type="submit"], .wp-element-button) {
	box-shadow: none;
}

body.ay-rounded-ui :where(.button, button, input, select, textarea, .wp-element-button) {
	border-radius: 8px;
}

body.ay-thumbnail-padding :where(.woocommerce-loop-product__link, .ay-product-image) img {
	box-sizing: border-box;
	padding: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.ay-page-loader__mark {
		animation-duration: 1.5s;
	}
}

/* Global Shop Button Styles */
body[class*="ay-global-btn-style-pill-"] .product-actions .add_to_cart_button,
body[class*="ay-global-btn-style-rect-"] .product-actions .add_to_cart_button,
body[class*="ay-global-btn-style-soft-"] .product-actions .add_to_cart_button,
body[class*="ay-global-btn-style-pill-"] ul.products li.product .add_to_cart_button,
body[class*="ay-global-btn-style-rect-"] ul.products li.product .add_to_cart_button,
body[class*="ay-global-btn-style-soft-"] ul.products li.product .add_to_cart_button,
body[class*="ay-global-btn-style-pill-"] .ay-cc-card-cart .button,
body[class*="ay-global-btn-style-rect-"] .ay-cc-card-cart .button,
body[class*="ay-global-btn-style-soft-"] .ay-cc-card-cart .button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: none !important;
	background-color: var(--ay-color-accent, #d96872) !important;
	color: #fff !important;
	padding: 10px 12px;
	min-height: 44px;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 13px;
	width: 100%;
}

body[class*="ay-global-btn-style-pill-"] ul.products li.product .add_to_cart_button,
body[class*="ay-global-btn-style-pill-"] .product-actions .add_to_cart_button,
body[class*="ay-global-btn-style-pill-"] .ay-cc-card-cart .button { border-radius: 99px !important; }
body[class*="ay-global-btn-style-rect-"] ul.products li.product .add_to_cart_button,
body[class*="ay-global-btn-style-rect-"] .product-actions .add_to_cart_button,
body[class*="ay-global-btn-style-rect-"] .ay-cc-card-cart .button { border-radius: 4px !important; }
body[class*="ay-global-btn-style-soft-"] ul.products li.product .add_to_cart_button,
body[class*="ay-global-btn-style-soft-"] .product-actions .add_to_cart_button,
body[class*="ay-global-btn-style-soft-"] .ay-cc-card-cart .button { border-radius: 12px !important; }

body.ay-global-btn-style-outline ul.products li.product .add_to_cart_button,
body.ay-global-btn-style-outline .product-actions .add_to_cart_button,
body.ay-global-btn-style-outline .ay-cc-card-cart .button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 1px solid var(--ay-color-accent, #d96872) !important;
	background-color: transparent !important;
	color: var(--ay-color-accent, #d96872) !important;
	padding: 10px 12px;
	min-height: 44px;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 13px;
	width: 100%;
	border-radius: 4px;
}

body.ay-global-btn-style-outline ul.products li.product .add_to_cart_button:hover,
body.ay-global-btn-style-outline .product-actions .add_to_cart_button:hover,
body.ay-global-btn-style-outline .ay-cc-card-cart .button:hover {
	background-color: var(--ay-color-accent, #d96872) !important;
	color: #fff !important;
	opacity: 0.9;
}

body[class*="ay-global-btn-style-"] ul.products li.product .add_to_cart_button:hover,
body[class*="ay-global-btn-style-"] .product-actions .add_to_cart_button:hover,
body[class*="ay-global-btn-style-"] .ay-cc-card-cart .button:hover {
	background-color: var(--ay-color-accent, #d96872) !important;
	opacity: 0.9;
}

body[class*="ay-global-btn-style-pill-"] ul.products li.product .add_to_cart_button::after,
body[class*="ay-global-btn-style-rect-"] ul.products li.product .add_to_cart_button::after,
body[class*="ay-global-btn-style-soft-"] ul.products li.product .add_to_cart_button::after,
body[class*="ay-global-btn-style-pill-"] .product-actions .add_to_cart_button::after,
body[class*="ay-global-btn-style-rect-"] .product-actions .add_to_cart_button::after,
body[class*="ay-global-btn-style-soft-"] .product-actions .add_to_cart_button::after,
body[class*="ay-global-btn-style-pill-"] .ay-cc-card-cart .button::after,
body[class*="ay-global-btn-style-rect-"] .ay-cc-card-cart .button::after,
body[class*="ay-global-btn-style-soft-"] .ay-cc-card-cart .button::after {
	content: "" !important;
	display: inline-block;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s;
}

body[class*="ay-global-btn-style-"] ul.products li.product .add_to_cart_button:hover::after,
body[class*="ay-global-btn-style-"] .product-actions .add_to_cart_button:hover::after,
body[class*="ay-global-btn-style-"] .ay-cc-card-cart .button:hover::after {
	transform: scale(1.1);
}

body.ay-global-btn-style-pill-heart ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-rect-heart ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-soft-heart ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-pill-heart .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-rect-heart .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-soft-heart .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-pill-heart .ay-cc-card-cart .button::after,
body.ay-global-btn-style-rect-heart .ay-cc-card-cart .button::after,
body.ay-global-btn-style-soft-heart .ay-cc-card-cart .button::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/%3E%3C/svg%3E") !important;
}

body.ay-global-btn-style-pill-cart ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-rect-cart ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-soft-cart ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-pill-cart .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-rect-cart .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-soft-cart .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-pill-cart .ay-cc-card-cart .button::after,
body.ay-global-btn-style-rect-cart .ay-cc-card-cart .button::after,
body.ay-global-btn-style-soft-cart .ay-cc-card-cart .button::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E") !important;
}

body.ay-global-btn-style-pill-arrow ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-rect-arrow ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-soft-arrow ul.products li.product .add_to_cart_button::after,
body.ay-global-btn-style-pill-arrow .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-rect-arrow .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-soft-arrow .product-actions .add_to_cart_button::after,
body.ay-global-btn-style-pill-arrow .ay-cc-card-cart .button::after,
body.ay-global-btn-style-rect-arrow .ay-cc-card-cart .button::after,
body.ay-global-btn-style-soft-arrow .ay-cc-card-cart .button::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'/%3E%3C/svg%3E") !important;
}
