/* Qtyra Quantity Rules & Tiered Pricing — front-end */

.qmtp-inline-hint {
	margin: 8px 0 12px;
	font-size: 0.9em;
	line-height: 1.4;
	color: #4a4a4a;
}

.qmtp-inline-hint.is-error {
	color: #b32d2e;
	font-weight: 600;
}

.qmtp-inline-hint.is-ok {
	color: #1a7f37;
}

.qmtp-inline-hint:empty {
	display: none;
	margin: 0;
}

/* Unit label beside the quantity field */
.qmtp-qty-unit-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.qmtp-qty-unit {
	font-size: 0.9em;
	color: #666;
	white-space: nowrap;
}

/* Tier pricing table */
.qmtp-tier-table-wrap {
	margin: 1em 0 1.5em;
}

table.qmtp-tier-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

table.qmtp-tier-table th,
table.qmtp-tier-table td {
	padding: 8px 10px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	text-align: left;
}

table.qmtp-tier-table thead th {
	background: rgba( 0, 0, 0, 0.04 );
	font-weight: 600;
}

table.qmtp-tier-table tr.qmtp-tier-active td {
	background: rgba( 26, 127, 55, 0.1 );
	font-weight: 600;
}

.qmtp-tier-label {
	display: block;
	font-size: 0.8em;
	font-weight: 400;
	color: #777;
}

.qmtp-price-hint {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.85em;
	color: #1a7f37;
}

a.button.qmtp-select-options {
	white-space: nowrap;
}

@media (max-width: 480px) {
	table.qmtp-tier-table thead {
		display: none;
	}
	table.qmtp-tier-table,
	table.qmtp-tier-table tbody,
	table.qmtp-tier-table tr,
	table.qmtp-tier-table td {
		display: block;
		width: 100%;
	}
	table.qmtp-tier-table td {
		text-align: right;
		padding-left: 45%;
		position: relative;
	}
	table.qmtp-tier-table td::before {
		content: attr( data-title );
		position: absolute;
		left: 10px;
		font-weight: 600;
	}
}
