/* XXL loader: one small branded loading state for the whole site (design M).
 *
 * Use:  <span class="xxl-loader" role="status" aria-label="Loading"></span>
 *       window.xxlLoading( element, true [, { skeleton: 4 } ] ) / window.xxlLoading( element, false )
 * The default spinners of WooCommerce (blockUI overlays, loading buttons) and the filter plugin are replaced
 * below, so cart updates, checkout, favourites and filters all show the same mark. Script: xxl-loader.js. */

.xxl-loader { --xxl-l-size: 44px; display: inline-grid; place-items: center; width: var(--xxl-l-size); height: var(--xxl-l-size); vertical-align: middle; }
.xxl-loader::before, .xxl-mark-pulse {
	content: "XXL"; display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 7px; border-radius: 8px;
	background: #FFD23F; color: #163B78; font: 900 12px/1 'Manrope', 'Inter', system-ui, sans-serif; letter-spacing: .02em;
	box-shadow: 0 4px 14px rgba(22, 59, 120, .18); animation: xxl-l-pulse 1.1s ease-in-out infinite;
}
@keyframes xxl-l-pulse {
	0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 4px 14px rgba(22, 59, 120, .18); }
	50% { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 20px rgba(22, 59, 120, .14); }
}
@keyframes xxl-l-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* Over an area that is loading: a light veil, the mark near the top, optional skeleton rows. */
.xxl-is-loading { position: relative; }
.xxl-veil { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: min(96px, 12vh); background: rgba(255, 253, 248, .72); border-radius: inherit; animation: xxl-l-in .15s ease both; }
.xxl-veil .xxl-loader { position: sticky; top: 45vh; }
@keyframes xxl-l-in { from { opacity: 0; } to { opacity: 1; } }
.xxl-skel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xxl-skel li { height: 88px; border-radius: 14px; border: 1px solid #EDE5D0; background: linear-gradient(100deg, #fff 20%, #F6F1E4 40%, #fff 60%) 0 0 / 200% 100%; animation: xxl-l-sweep 1.3s linear infinite; }
.xxl-is-loading.has-skel > .xxl-veil { display: block; padding: 0; overflow: hidden; background: var(--xr-paper, #FFFDF8); min-height: 200px; }
.xxl-is-loading.has-skel { min-height: 240px; }
.xxl-is-loading.has-skel > .xxl-veil .xxl-loader { position: absolute; top: 22px; left: 50%; margin-left: calc(var(--xxl-l-size) / -2); z-index: 1; }

/* WooCommerce / YITH: blockUI overlays (cart, checkout, mini cart, favourites) get the same mark. */
.blockUI.blockOverlay { background: rgba(255, 253, 248, .7) !important; opacity: 1 !important; }
.blockUI.blockOverlay::before, .woocommerce .blockUI.blockOverlay::before, .woocommerce .loader::before {
	content: "XXL" !important; position: absolute !important; top: 50% !important; left: 50% !important; width: auto !important; height: 26px !important;
	min-width: 36px; margin: -13px 0 0 -18px !important; padding: 0 7px !important; display: grid !important; place-items: center;
	background: #FFD23F !important; background-image: none !important; color: #163B78 !important; border-radius: 8px !important;
	font: 900 12px/26px 'Manrope', 'Inter', system-ui, sans-serif !important; text-align: center; -webkit-mask: none !important; mask: none !important;
	box-shadow: 0 4px 14px rgba(22, 59, 120, .18); animation: xxl-l-pulse 1.1s ease-in-out infinite !important;
}
/* Buttons that are busy (add to cart, update cart): a small pulsing dot instead of the spinning icon font. */
.woocommerce a.button.loading::after, .woocommerce button.button.loading::after, .woocommerce input.button.loading::after, .woocommerce #respond input#submit.loading::after {
	content: "" !important; font-family: inherit !important; width: 8px; height: 8px; top: 50% !important; right: 10px !important; margin-top: -4px; border-radius: 50%;
	background: #FFD23F; box-shadow: 0 0 0 2px rgba(22, 59, 120, .25); animation: xxl-l-dot .9s ease-in-out infinite !important;
}
@keyframes xxl-l-dot { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
/* Filter plugin (other designs and fallback). */
.bapf_loader_page { background: rgba(255, 253, 248, .6) !important; }
.bapf_loader_page .bapf_lcontainer { display: grid; place-items: center; }
.bapf_loader_page .bapf_loader { border: 0 !important; animation: none !important; width: auto !important; height: auto !important; }
.bapf_loader_page .bapf_loader > * { display: none !important; }
.bapf_loader_page .bapf_loader::before { content: "XXL"; display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 7px; border-radius: 8px; background: #FFD23F; color: #163B78; font: 900 12px/1 'Manrope', 'Inter', system-ui, sans-serif; animation: xxl-l-pulse 1.1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
	.xxl-loader::before, .xxl-mark-pulse, .blockUI.blockOverlay::before, .woocommerce .blockUI.blockOverlay::before, .woocommerce .loader::before, .bapf_loader_page .bapf_loader::before { animation: none !important; }
	.xxl-skel li { animation: none; background: #F6F1E4; }
	.woocommerce a.button.loading::after, .woocommerce button.button.loading::after { animation: none !important; opacity: .8; }
}
