/* Hide only the calculator while its visual assets are prepared. */
html:not(.wowf-tc-loader-ready) .wowf-tc2-root {
	visibility: hidden;
}

.wowf-tc-loader {
	position: fixed;
	z-index: 2147483646;
	inset: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 20px;
	background: rgba(8, 7, 5, .82);
	color: #f6e5ae;
	font: 14px/1.4 Arial, sans-serif;
	transition: opacity .22s ease, visibility .22s ease;
}

.wowf-tc-loader__panel {
	width: min(360px, 100%);
	box-sizing: border-box;
	padding: 28px 26px 24px;
	border: 1px solid #856527;
	border-radius: 4px;
	background: linear-gradient(180deg, #342712 0%, #19130a 100%);
	box-shadow: 0 16px 44px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 220, 130, .08);
	text-align: center;
}

.wowf-tc-loader__spinner {
	display: block;
	width: 42px;
	height: 42px;
	box-sizing: border-box;
	margin: 0 auto 15px;
	border: 4px solid rgba(242, 199, 78, .22);
	border-top-color: #f0c652;
	border-right-color: #c18b25;
	border-radius: 50%;
	animation: wowf-tc-loader-spin .85s linear infinite;
}

.wowf-tc-loader__panel strong {
	display: block;
}

.wowf-tc-loader__panel strong {
	font-size: 17px;
	color: #ffe09a;
}

.wowf-tc-loader__progress {
	overflow: hidden;
	height: 6px;
	margin-top: 17px;
	border: 1px solid #725822;
	border-radius: 999px;
	background: #0d0a05;
}

.wowf-tc-loader__progress i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #9c6e20, #f3cf64);
	transition: width .14s ease;
}

html.wowf-tc-loader-ready .wowf-tc-loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

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

@media (max-width: 480px) {
	.wowf-tc-loader { padding: 14px; }
	.wowf-tc-loader__panel { padding: 24px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.wowf-tc-loader,
	.wowf-tc-loader__progress i { transition: none; }
	.wowf-tc-loader__spinner { animation-duration: 2.4s; }
}
