/* Tiered Variation Pricing Table styles */

.tvpt-tier-table-wrapper {
	margin: 20px 0;
	width: 100%;
	max-width: 640px;
}

.tvpt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.tvpt-table thead th {
	text-align: left;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.03em;
	color: #666;
	padding: 10px 12px;
	border-bottom: 2px solid #e2e2e2;
}

.tvpt-table thead th.tvpt-col-right,
.tvpt-table tbody td.tvpt-col-right {
	text-align: right;
}

.tvpt-row {
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.tvpt-row td {
	padding: 12px;
	border-bottom: 1px solid #ececec;
}

.tvpt-row:hover {
	background-color: #f7f7f7;
}

.tvpt-row.tvpt-row-selected {
	background-color: #eef3ee;
}

.tvpt-row.tvpt-row-unavailable {
	cursor: not-allowed;
	opacity: 0.45;
}

.tvpt-qty {
	font-weight: 600;
}

.tvpt-discount {
	color: #2e7d32;
	font-weight: 500;
}

.tvpt-discount.tvpt-discount-none {
	color: #999;
}

.tvpt-price {
	font-weight: 700;
}

.tvpt-row-radio {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #bbb;
	margin-right: 10px;
	position: relative;
	vertical-align: middle;
}

.tvpt-row.tvpt-row-selected .tvpt-row-radio {
	border-color: #2e7d32;
}

.tvpt-row.tvpt-row-selected .tvpt-row-radio::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2e7d32;
}

.tvpt-unavailable-tag {
	font-size: 11px;
	text-transform: uppercase;
	color: #999;
	margin-left: 6px;
}

/* Hide the native variation dropdown(s) but keep them in the DOM
   so WooCommerce's core variation script still works normally. */
.tvpt-active .variations {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Keep the reset-variations link and single-variation description visible,
   just tidy them up under the table. */
.tvpt-active .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
}

@media ( max-width: 480px ) {
	.tvpt-table {
		font-size: 13px;
	}
	.tvpt-table thead th,
	.tvpt-row td {
		padding: 8px 6px;
	}
}
