/* Automatic cart updates: the classic button remains visible as a fallback. */
body.woocommerce-cart .thps-cart-update-status {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	margin: 7px 12px 7px auto;
	color: #5f685c;
	font: 700 13px/1.3 "ITC Resavska Sans Std Bold", "PT Sans Narrow", Arial, sans-serif;
}

body.woocommerce-cart .thps-cart-update-status:empty {
	display: none;
}

body.woocommerce-cart .thps-cart-update-status--loading::before {
	width: 15px;
	height: 15px;
	margin-right: 8px;
	border: 2px solid rgba(32, 53, 26, .22);
	border-top-color: #c45d22;
	border-radius: 50%;
	content: "";
	animation: thps-cart-status-spin .75s linear infinite;
}

body.woocommerce-cart .thps-cart-update-status--success {
	color: #20351a;
}

body.woocommerce-cart .thps-cart-update-status--success::before {
	margin-right: 7px;
	color: #08715b;
	content: "✓";
	font-weight: 900;
}

body.woocommerce-cart .thps-cart-update-status--error {
	color: #93421e;
}

.thps-cart-auto-update-enabled body.woocommerce-cart button[name="update_cart"] {
	border-color: #20351a !important;
	background: transparent !important;
	color: #20351a !important;
	opacity: .82;
}

.thps-cart-auto-update-enabled body.woocommerce-cart button[name="update_cart"]:hover,
.thps-cart-auto-update-enabled body.woocommerce-cart button[name="update_cart"]:focus-visible {
	border-color: #c45d22 !important;
	background: #c45d22 !important;
	color: #fff !important;
	opacity: 1;
}

body.woocommerce-cart form.woocommerce-cart-form[aria-busy="true"] input.qty {
	border-color: #c45d22 !important;
}

@keyframes thps-cart-status-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-cart .thps-cart-update-status--loading::before {
		animation: none;
	}
}

@media (max-width: 700px) {
	body.woocommerce-cart .thps-cart-update-status {
		width: 100%;
		justify-content: center;
		margin: 4px 0 10px;
		text-align: center;
	}
}
