/* Price Calculator Widget */
.pc-wrap {
	width: 100%;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Tier Table ── */
.pc-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pc-tiers-table {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	margin-bottom: 0;
	border: 1px solid #e5e7eb;
}

.pc-tiers-table tbody tr {
	border-bottom: 1px solid #e5e7eb;
}

.pc-tiers-table tbody tr:last-child {
	border-bottom: none;
}

.pc-tiers-table th {
	padding: 9px 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--pc-header-text, #6b7280);
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	background: var(--pc-header-bg, #f3f4f6);
	border-right: 1px solid #e5e7eb;
}

.pc-tiers-table .pc-tier-col {
	padding: 9px 12px;
	font-size: 13px;
	text-align: center;
	color: var(--pc-cell-text, #374151);
	white-space: nowrap;
	border-right: 1px solid #e5e7eb;
	cursor: pointer;
	transition: background 0.15s;
}

.pc-tiers-table .pc-tier-col:last-child {
	border-right: none;
}

.pc-tiers-table .pc-tier-col:hover {
	background: var(--pc-row-hover-bg, #f9fafb);
}

.pc-tiers-table .pc-table-qty-row .pc-tier-col.pc-active-tier {
	background: var(--pc-active-bg, #fff7ed);
	border-top-style: solid;
	border-top-width: 3px;
	border-top-color: #ea580c;
}

.pc-tiers-table .pc-table-disc-row .pc-tier-col.pc-active-tier {
	background: var(--pc-active-bg, #fff7ed);
	border-bottom: none !important;
}

.pc-discount-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: var(--pc-badge-bg, #fff7ed);
	color: var(--pc-badge-text, #ea580c);
}

.pc-active-tier .pc-discount-badge {
	background: var(--pc-active-badge-bg, #ea580c);
	color: #fff;
}

.pc-no-discount {
	font-size: 12px;
	color: #9ca3af;
}

/* ── Calculator ── */
.pc-calculator {
	background: var(--pc-calc-bg, #f9fafb);
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}

.pc-calculator .pc-qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.pc-qty-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-label-color, #374151);
	white-space: nowrap;
}

.pc-qty-controls {
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 0;
	overflow: hidden;
	background: #fff;
}

.pc-qty-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #374151;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	flex-shrink: 0;
}

.pc-qty-btn:hover {
	background: #f3f4f6;
}

.pc-qty-input {
	width: 60px;
	height: 36px;
	border: none !important;
	border-left: 1px solid #d1d5db !important;
	border-right: 1px solid #d1d5db !important;
	border-radius: 0 !important;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	outline: none;
	-moz-appearance: textfield;
}

.pc-qty-input::-webkit-inner-spin-button,
.pc-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	appearance: none;
}

.pc-result-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pc-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.pc-result-row .pc-result-label {
	color: var(--pc-label-color, #6b7280);
}

.pc-result-row .pc-result-value {
	font-weight: 600;
	color: var(--pc-value-color, #374151);
}

.pc-result-row.pc-total-row {
	border-top: 1px solid #e5e7eb;
	padding-top: 10px;
	margin-top: 4px;
}

.pc-total-row .pc-result-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--pc-total-label-color, #111827);
}

.pc-total-row .pc-result-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--pc-total-color, #ea580c);
}
