/**
 * EPOFW Volume / Tiered Pricing - admin builder styles.
 *
 * @package Extra_Product_Options_For_WooCommerce
 * @since   4.4.9
 */

/* Separate the Quantity-Based Pricing block from the Price Rules block above it. */
.epofw-volume-pricing-section {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.epofw-volume-pricing-container {
	margin-top: 8px;
	padding: 14px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.epofw-volume-tiers-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0;
}

.epofw-volume-tier-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.epofw-volume-tier-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 90px;
	min-width: 80px;
}

.epofw-volume-tier-cell label {
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.epofw-volume-tier-cell .epofw-form-control {
	width: 100%;
}

.epofw-volume-tier-cell.epofw-volume-tier-type {
	flex: 1 1 180px;
}

.epofw-volume-tier-row .epofw-remove-volume-tier {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #fecaca;
	background: #fff;
	color: #dc2626;
	border-radius: 6px;
	cursor: pointer;
	flex: 0 0 auto;
}

.epofw-volume-tier-row .epofw-remove-volume-tier:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

.epofw-add-volume-tier {
	margin-top: 4px;
}

.epofw-volume-pricing-section .epofw-pro-badge-inline {
	margin-right: 6px;
}

.epofw-volume-type-legend {
	margin: 12px 0 0;
	padding: 10px 12px;
	list-style: none;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.7;
	color: #475569;
}

.epofw-volume-type-legend li {
	margin: 0;
}

.epofw-volume-type-legend strong {
	color: #1e293b;
}

.epofw-volume-tip {
	margin: 8px 0 0;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.6;
	color: #92600a;
	background: #fef9c3;
	border: 1px solid #fde68a;
	border-radius: 6px;
}

/*
 * Shown only when a calculated Price Type (per char/word, formula) is combined
 * with volume tiers - the tier replaces that calculation. Warmer red than the
 * yellow tips above, because this one flags a misconfiguration rather than
 * offering advice.
 */
.epofw-volume-overrides-notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.6;
	color: #8a2c14;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
}
