/*
 * Cicka loader – the winking cat in place of spinners (inc/loader.php).
 * Image URLs come from --cicka-loader-* variables that inc/loader.php sets
 * with a version number (the file's change time), so caches such as
 * Cloudflare fetch the new cat after every edit. The plain paths are only a
 * fallback.
 */

/* =========================================================================
 * Buttons: the compact cat in front of the label while waiting.
 * ====================================================================== */
/* Doubled classes: card styles (e.g. .cicka-shop .cs-card .cs-btn::before)
   hide their buttons' ::before with !important; these must win. */
body a.add_to_cart_button.add_to_cart_button.loading.loading::before,
body a.ajax_add_to_cart.ajax_add_to_cart.loading.loading::before,
body button.cicka-is-loading.cicka-is-loading.cicka-is-loading::before,
body .cicka-is-loading.cicka-is-loading.button.button::before,
body .cdl.cdl button[data-cdl-submit]:disabled::before {
	content: "" !important;
	position: static !important;
	display: inline-block !important;
	flex: none;
	width: 30px !important;
	height: 24px !important;
	margin: 0 8px 0 -4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--cicka-loader-white, url("../img/loader/wink-white.svg")) center / contain no-repeat !important;
	-webkit-mask: none !important;
	mask: none !important;
	opacity: 1 !important;
	vertical-align: middle;
	transform: none !important;
	animation: none !important;
}
/* WooCommerce's own spinner on loading buttons. */
body a.add_to_cart_button.add_to_cart_button.loading.loading::after,
body a.ajax_add_to_cart.ajax_add_to_cart.loading.loading::after,
body button.cicka-is-loading.cicka-is-loading.cicka-is-loading::after,
body .cicka-is-loading.cicka-is-loading.button.button::after {
	display: none !important;
	content: none !important;
}
a.add_to_cart_button.loading,
a.ajax_add_to_cart.loading,
button.cicka-is-loading { cursor: progress; opacity: 1 !important; }
/* The download button keeps its arrow out of the way while sending. */
.cdl button[data-cdl-submit]:disabled > svg { display: none; }
.cdl button[data-cdl-submit]:disabled { cursor: progress; }

/* White / outline buttons: the line-drawn cat. Add .cicka-loader-line to a
   button (or a parent) to use it. */
body .cicka-loader-line a.add_to_cart_button.add_to_cart_button.loading.loading::before,
body .cicka-loader-line button.cicka-is-loading.cicka-is-loading.cicka-is-loading::before,
body a.cicka-loader-line.add_to_cart_button.add_to_cart_button.loading.loading::before,
body button.cicka-loader-line.cicka-is-loading.cicka-is-loading.cicka-is-loading::before {
	background-image: var(--cicka-loader-line, url("../img/loader/wink-line.svg")) !important;
}

/* =========================================================================
 * "Updating" overlays (cart sidebar, cart, checkout) and the shop filters.
 * ====================================================================== */
.blockUI.blockOverlay::before {
	width: 64px !important;
	height: 52px !important;
	margin: -26px 0 0 -32px !important;
	background: var(--cicka-loader-small, url("../img/loader/wink-small.svg")) center / contain no-repeat !important;
	font-size: 0 !important;
	animation: none !important;
}
.cicka-shop .cs-loader .cs-spinner {
	width: 34px !important;
	height: 28px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--cicka-loader-small, url("../img/loader/wink-small.svg")) center / contain no-repeat !important;
	animation: none !important;
}

/* =========================================================================
 * Page loader
 * ====================================================================== */
.cicka-pl {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 50% 42%, #FFF7F5 0%, #F8E6E3 85%);
	opacity: 1;
	visibility: visible;
	transition: opacity .35s ease, visibility .35s;
}
.cicka-pl[hidden] {
	display: grid;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.cicka-pl__in { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cicka-pl__art { display: block; width: 170px; max-width: 46vw; height: auto; }
.cicka-pl__text { color: #5A4846; font-family: 'Solway', serif; font-size: 15px; letter-spacing: .04em; }
.cicka-pl__thread { display: block; width: 120px; height: 10px; overflow: visible; }
.cicka-pl__thread path { stroke-dasharray: 100; animation: cicka-pl-thread 2.4s ease-in-out infinite; }
@keyframes cicka-pl-thread { 0% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) {
	.cicka-pl { transition: none; }
	.cicka-pl__thread path { animation-duration: 8s; }
}
