/* Tap3D quote calculator: only what the theme's quote card does not already style. */

.tap3d-preview { display: block; width: 100%; height: 100%; min-height: 15rem; }

.tap3d-quote__busy,
.tap3d-quote__error {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 1rem 0 !important;
	padding: 0.75rem 0.9rem;
	border-radius: var(--tap3d-radius-s, 12px);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.tap3d-quote__busy { background: var(--wp--preset--color--accent-soft); }
.tap3d-quote__error { background: #FBE9E4; color: #8A2E12; }
.tap3d-quote__busy[hidden], .tap3d-quote__error[hidden], [data-tq-options][hidden] { display: none; }

.tap3d-spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent);
	border-top-color: var(--wp--preset--color--accent);
	border-radius: 50%;
	flex: none;
	animation: tap3d-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.tap3d-spinner { animation-duration: 2.4s; }
}

.tap3d-quote__material {
	margin: 0.6rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}

.tap3d-quote__qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.tap3d-quote__qty .tap3d-quote__label { margin: 0; }

.tap3d-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	overflow: hidden;
}

.tap3d-qty button {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1.1rem;
	cursor: pointer;
}

.tap3d-qty button:hover { background: var(--wp--preset--color--accent-soft); }

.tap3d-qty input {
	width: 3rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.tap3d-qty input::-webkit-outer-spin-button,
.tap3d-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tap3d-quote [data-tq-cta]:disabled { opacity: 0.6; cursor: progress; }

.tap3d-quote__fine {
	margin: 0.75rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	line-height: 1.4;
	text-align: center;
}

/* 3D preview: drag to rotate, scroll to zoom. */
.tap3d-stage__art { position: relative; }
.tap3d-preview { cursor: grab; touch-action: none; border-radius: var(--tap3d-radius-m, 20px); }
.tap3d-preview:active { cursor: grabbing; }

.tap3d-preview__hint {
	position: absolute;
	right: 0;
	bottom: 1rem;
	left: 0;
	margin: 0 !important;
	color: var(--tap3d-muted-strong, #625649);
	font-size: var(--wp--preset--font-size--x-small);
	text-align: center;
	pointer-events: none;
}
