/**
 * HWP Quantity UX 1.0.0
 *
 * Sits directly under the buy box. Deliberately quiet in its resting state (the rule is
 * information, not a warning) and unmissable once the quantity is invalid.
 */

.hwp-qux {
	max-width: 480px;
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4a4a4a;
}

.hwp-qux [hidden] {
	display: none !important;
}

.hwp-qux__rule {
	margin: 0;
	padding: 9px 13px;
	border-left: 3px solid #d7d7d7;
	border-radius: 0 3px 3px 0;
	background: #f6f6f6;
	color: #464646;
	font-size: 14px;
	line-height: 1.5;
}

.hwp-qux__note {
	margin: 6px 0 0;
	padding: 0 13px 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #7b7b7b;
}

.hwp-qux__alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 10px 0 0;
	padding: 11px 13px;
	border: 1px solid #e0b356;
	border-left-width: 3px;
	border-radius: 3px;
	background: #fdf7ea;
	color: #7a4f06;
	font-size: 14px;
	line-height: 1.5;
}

.hwp-qux__alert[hidden] {
	display: none !important;
}

.hwp-qux__msg {
	flex: 1 1 220px;
	min-width: 0;
}

.hwp-qux__fix {
	flex: 0 0 auto;
	margin: 0;
	padding: 7px 14px;
	border: 0;
	border-radius: 3px;
	background: #333;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background-color .15s ease;
}

.hwp-qux__fix:hover,
.hwp-qux__fix:focus {
	background: #000;
	color: #fff;
}

.hwp-qux__fix:focus-visible {
	outline: 2px solid #7a4f06;
	outline-offset: 2px;
}

/* Relocated server notice: keep whatever markup WooCommerce printed, just place it here. */
.hwp-qux__server {
	margin: 10px 0 0;
}

.hwp-qux__server > * {
	margin: 0;
}

/* The quantity field itself, while it holds a value we will refuse. */
.quantity.hwp-qux-bad input.qty {
	border-color: #e0b356 !important;
	box-shadow: 0 0 0 2px rgba(224, 179, 86, .18);
}

/* One sample per design: no spinner to argue with. */
.hwp-qux-sample .quantity {
	display: none !important;
}

@media (max-width: 480px) {
	.hwp-qux {
		max-width: none;
	}

	.hwp-qux__fix {
		width: 100%;
	}
}
