/* ── WCTP Frontend Styles ───────────────────────────────────────────── */

/* ── Tier table ─────────────────────────────────────────────────────── */
.wctp-tier-table-wrap {
	margin: 20px 0 18px;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	overflow: hidden;
}

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

.wctp-tier-table thead th {
	background: #f5f6f7;
	padding: 10px 16px;
	text-align: left;
	font-weight: 600;
	color: #555;
	border-bottom: 1px solid #e2e4e7;
}

.wctp-tier-table thead th:last-child {
	text-align: right;
}

.wctp-tier-table tbody tr:not(:last-child) {
	border-bottom: 1px solid #ebebeb;
}

.wctp-tier-table tbody td {
	padding: 10px 16px;
	color: #444;
}

.wctp-tier-table tbody td:last-child {
	text-align: right;
	font-weight: 500;
}

/* Active tier: blue background, BLACK text */
.wctp-tier-row.wctp-active-tier td {
	background: #eef3ff;
	color: #000;
	font-weight: 700;
}

/* ── Qty + Est. Total row ───────────────────────────────────────────── */

/*
 * JS creates this wrapper and places WC's .quantity and the
 * est-total div inside it, side by side.
 */
.wctp-qty-total-row {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 14px 0 12px;
	flex-wrap: wrap;
}

/* Make WC's quantity wrapper compact (not full-width) */
.wctp-qty-total-row .quantity,
.wctp-qty-compact {
	width: auto !important;
	max-width: 100px !important;
	flex-shrink: 0;
}

/* The qty input itself */
.wctp-qty-total-row .quantity input[type="number"],
.wctp-qty-total-row .quantity input.qty {
	width: 80px !important;
	max-width: 80px !important;
	text-align: center !important;
	padding: 8px 10px !important;
	border: 1px solid #ccc !important;
	border-radius: 4px !important;
	font-size: 1em !important;
	box-shadow: none !important;
	height: auto !important;
}

/* Hide the screen-reader label WC places inside .quantity */
.wctp-qty-total-row .quantity label {
	display: none !important;
}

/* ── Est. Total display ─────────────────────────────────────────────── */
.wctp-est-total-wrap,
.wctp-variable-total {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.wctp-est-label {
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin-bottom: 3px;
}

.wctp-est-value {
	font-size: 1.5em;
	font-weight: 700;
	color: #222;
}

/* ── Min qty error message ──────────────────────────────────────────── */
.wctp-min-qty-msg {
	color: #c0392b;
	font-size: 0.9em;
	margin: 0 0 10px;
	padding: 8px 12px;
	background: #fdf2f2;
	border-left: 3px solid #c0392b;
	border-radius: 0 3px 3px 0;
}

/* Disabled Add to Cart while qty < min */
.single_add_to_cart_button.wctp-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
