/**
 * SosWoo Renewal Pricing — Frontend Styles
 */

.soswoo-renewal-table-wrap {
	--soswoo-accent: #2271b1;
	--soswoo-accent-light: #f0f6fc;
	--soswoo-border: #dcdcde;
	--soswoo-bg: #ffffff;
	--soswoo-text: #1d2327;
	--soswoo-muted: #646970;

	margin: 20px 0 !important;
	padding: 20px;
	background: var(--soswoo-bg);
	border: 1px solid var(--soswoo-border);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	color: var(--soswoo-text);
	font-size: 14px;
	line-height: 1.5;
	box-sizing: border-box;
	clear: both;
}

.soswoo-renewal-table-wrap *,
.soswoo-renewal-table-wrap *::before,
.soswoo-renewal-table-wrap *::after {
	box-sizing: border-box;
}

.soswoo-renewal-title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-size: 17px;
	font-weight: 700;
	color: var(--soswoo-text);
	line-height: 1.3;
}

.soswoo-renewal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 !important;
	border: 1px solid var(--soswoo-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--soswoo-bg);
}

.soswoo-renewal-table thead {
	background: var(--soswoo-accent-light);
}

.soswoo-renewal-table thead th {
	padding: 10px 12px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: var(--soswoo-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--soswoo-border);
}

.soswoo-renewal-table tbody td {
	padding: 12px;
	border-bottom: 1px solid var(--soswoo-border);
	color: var(--soswoo-text);
	vertical-align: middle;
}

.soswoo-renewal-table tbody tr:last-child td {
	border-bottom: none;
}

.soswoo-renewal-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.soswoo-renewal-table tbody tr:hover {
	background: var(--soswoo-accent-light);
	transition: background 0.15s ease;
}

.soswoo-tier-label {
	font-weight: 600;
	color: var(--soswoo-text);
}

.soswoo-tier-discount {
	color: var(--soswoo-muted);
	font-weight: 500;
	white-space: nowrap;
}

.soswoo-tier-price {
	color: var(--soswoo-accent);
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}

.soswoo-tier-price strong {
	color: inherit;
}

/* Fix excessive gap spacing when placed near the top or bottom of product summary */
.soswoo-renewal-table-wrap + form.cart,
.soswoo-renewal-table-wrap + .woocommerce-variation-add-to-cart {
	margin-top: 10px !important;
}

form.cart + .soswoo-renewal-table-wrap,
.woocommerce-variation-add-to-cart + .soswoo-renewal-table-wrap {
	margin-top: 15px !important;
	margin-bottom: 10px !important;
}

/* Responsive */
@media (max-width: 600px) {
	.soswoo-renewal-table-wrap {
		padding: 14px;
		margin: 10px 0 !important;
	}

	.soswoo-renewal-title {
		font-size: 15px;
	}

	.soswoo-renewal-table thead th,
	.soswoo-renewal-table tbody td {
		padding: 8px;
		font-size: 13px;
	}

	.soswoo-tier-price {
		font-size: 14px;
	}
}