/**
 * Pricing Manager Pro - Front-end table styles.
 * Colors are set as inline CSS custom properties per-instance from Settings,
 * with sensible fallbacks defined here that match the site's existing
 * black title / slate-teal header / clean white rows layout.
 */

.pmp-pricing-table-wrapper {
	--pmp-title-bg: #000000;
	--pmp-title-text: #ffffff;
	--pmp-header-bg: #4a6670;
	--pmp-header-text: #ffffff;
	--pmp-row-alt-bg: #ffffff;
	--pmp-border: #e5e5e5;

	margin: 24px 0;
	font-family: inherit;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pmp-table-title {
	background: var(--pmp-title-bg);
	color: var(--pmp-title-text);
	padding: 18px 20px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: center;
}

.pmp-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table.pmp-pricing-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	min-width: 560px;
}

table.pmp-pricing-table thead th {
	background: var(--pmp-header-bg);
	color: var(--pmp-header-text);
	padding: 14px 20px;
	font-weight: 600;
	text-align: left;
	font-size: 15px;
	white-space: nowrap;
}

table.pmp-pricing-table tbody td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--pmp-border);
	text-align: left;
	font-size: 15px;
	color: #222222;
	transition: background-color 0.15s ease;
}

table.pmp-pricing-table tbody tr:last-child td {
	border-bottom: none;
}

table.pmp-pricing-table tbody tr:nth-child(even) td {
	background-color: var(--pmp-row-alt-bg);
}

table.pmp-pricing-table tbody tr:hover td {
	background-color: #f7f9fa;
}

table.pmp-pricing-table td.pmp-col-destination,
table.pmp-pricing-table th.pmp-col-destination {
	font-weight: 500;
}

.pmp-error {
	background: #fbeaea;
	border: 1px solid #d63638;
	color: #8a1f1f;
	padding: 10px 14px;
	border-radius: 4px;
}

@media (max-width: 782px) {
	.pmp-table-title {
		font-size: 17px;
		padding: 14px 16px;
	}

	table.pmp-pricing-table thead th,
	table.pmp-pricing-table tbody td {
		padding: 10px 14px;
		font-size: 13px;
	}
}
