/**
 * Tier pricing table — extends WoodMart .wd-dynamic-discounts
 */

.summary-inner .wd-dynamic-discounts.nilkanth-tier-pricing {
	display: block;
	width: 100%;
	margin-bottom: var(--wd-mb, 20px);
	padding-top: 18px;
	border-top: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.1));
	box-sizing: border-box;
}

.nilkanth-tier-pricing-title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wd-title-color, var(--color-gray-900, #242424));
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.summary-inner .nilkanth-tier-pricing table {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	border: none;
	margin: 0;
	background: transparent;
}

.summary-inner .nilkanth-tier-pricing thead th {
	padding: 0 12px 10px 0;
	border: none;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: var(--wd-text-color, #777);
	text-transform: none;
	letter-spacing: 0;
	vertical-align: bottom;
}

.summary-inner .nilkanth-tier-pricing tbody td {
	padding: 12px 12px 12px 0;
	border: none;
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.08));
	vertical-align: middle;
	font-size: 14px;
	line-height: 1.4;
}

.summary-inner .nilkanth-tier-pricing tbody tr:last-child td {
	border-bottom: none;
	padding-bottom: 0;
}

.summary-inner .nilkanth-tier-pricing .wd-dd-quantity span {
	font-weight: 500;
	color: var(--wd-title-color, var(--color-gray-900, #242424));
}

.summary-inner .nilkanth-tier-pricing .wd-dd-price {
	font-weight: 600;
	white-space: nowrap;
}

.summary-inner .nilkanth-tier-pricing .wd-dd-price .amount {
	color: var(--wd-primary-color, #e90000);
	font-weight: 600;
}

.summary-inner .nilkanth-tier-pricing .wd-dd-discount span {
	font-weight: 500;
	color: var(--wd-primary-color, #c41e1e);
}

.summary-inner .nilkanth-tier-pricing tbody tr.wd-active {
	background-color: rgba(var(--bgcolor-black-rgb, 0, 0, 0), 0.04);
}

.summary-inner .nilkanth-tier-pricing tbody tr.wd-active .wd-dd-quantity span {
	color: var(--wd-primary-color, #e90000);
}

@media (max-width: 768px) {
	.summary-inner .nilkanth-tier-pricing {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.summary-inner .nilkanth-tier-pricing table {
		min-width: 280px;
	}

	.summary-inner .nilkanth-tier-pricing thead th,
	.summary-inner .nilkanth-tier-pricing tbody td {
		padding-right: 8px;
		font-size: 13px;
	}
}

/* WooCommerce admin — tier rules editor */
#nilkanth_tier_pricing_data .nilkanth-tier-rules-table {
	width: calc(100% - 24px);
	max-width: 560px;
	margin: 0 12px 12px;
	border: 1px solid #c3c4c7;
	border-collapse: collapse;
	background: #fff;
}

#nilkanth_tier_pricing_data .nilkanth-tier-rules-table th,
#nilkanth_tier_pricing_data .nilkanth-tier-rules-table td {
	padding: 10px 12px;
	vertical-align: middle;
	border-bottom: 1px solid #e0e0e0;
}

#nilkanth_tier_pricing_data .nilkanth-tier-rules-table thead th {
	background: #f6f7f7;
	font-weight: 600;
}

#nilkanth_tier_pricing_data .nilkanth-tier-rules-table tbody tr:last-child td {
	border-bottom: none;
}

#nilkanth_tier_pricing_data .nilkanth-tier-rules-table input[type="number"],
#nilkanth_tier_pricing_data .nilkanth-tier-rules-table input.wc_input_price {
	width: 100%;
	max-width: 140px;
	min-width: 80px;
	box-sizing: border-box;
}

#nilkanth_tier_pricing_data .nilkanth-tier-rules-table .nilkanth-tier-remove-row {
	white-space: nowrap;
}

.nilkanth-tier-variation-wrap {
	margin: 12px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #eee;
}

.nilkanth-tier-variation-wrap .nilkanth-tier-rules-table {
	width: 100%;
	max-width: 100%;
	margin: 8px 0;
}

.variations-table .nilkanth-tier-variation-wrap .nilkanth-tier-rules-table input {
	max-width: 120px;
}
