.ac-includes-tab {
	--ac-bg: #f6f8fb;
	--ac-card-bg: #ffffff;
	--ac-card-border: #d9e0ea;
	--ac-shadow: 0 8px 20px rgba(14, 30, 62, 0.06);
	--ac-title: #1f2937;
	--ac-text: #4b5563;
	--ac-muted: #6b7280;
	--ac-ok-bg: #e7f8ef;
	--ac-ok: #127647;
	--ac-no-bg: #fdecec;
	--ac-no: #b02a37;
	background: linear-gradient(180deg, #f9fbff 0%, #f2f5fb 100%);
	border: 1px solid #e4e9f2;
	border-radius: 14px;
	padding: 20px;
}

.ac-includes-tab h3 {
	margin: 0 0 14px;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--ac-title);
}

.ac-includes-tab ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ac-includes-tab li {
	background: var(--ac-card-bg);
	border: 1px solid var(--ac-card-border);
	border-radius: 12px;
	box-shadow: var(--ac-shadow);
	padding: 12px 14px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ac-includes-tab li:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(14, 30, 62, 0.1);
}

.ac-includes-tab li.is-included {
	border-color: #b9e4ca;
}

.ac-includes-tab li.is-excluded {
	border-color: #f2c5ca;
}

.ac-includes-tab .ac-capability-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.ac-includes-tab .ac-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
}

.ac-includes-tab li.is-included .ac-status {
	background: var(--ac-ok-bg);
	color: var(--ac-ok);
}

.ac-includes-tab li.is-excluded .ac-status {
	background: var(--ac-no-bg);
	color: var(--ac-no);
}

.ac-includes-tab .ac-capability-title {
	color: var(--ac-title);
	font-size: 0.98rem;
	line-height: 1.35;
}

.ac-includes-tab li p {
	margin: 0;
	padding-left: 34px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ac-text);
}

@media (max-width: 900px) {
	.ac-includes-tab ul {
		grid-template-columns: 1fr;
	}
}

.tp-tab .nav-tabs .nav-link[class*="ac_macro_"][class*="_ok_tab"]::before{
	content: "✔";
	display: inline-block;
	margin-right: 0.45rem;
	color: #157347;
	font-weight: 800;
}

.tp-tab .nav-tabs .nav-link[class*="ac_macro_"][class*="_ko_tab"]::before{
	content: "✖";
	display: inline-block;
	margin-right: 0.45rem;
	color: #b02a37;
	font-weight: 800;
}

.ac-comparison-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	border: 1px solid #dbe6f3;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(58, 115, 184, 0.08);
	color: #1f2a37;
}

/* Header */
.ac-comparison-table thead th {
	background: linear-gradient(180deg, #2f5f99 0%, #3a73b8 100%);
	color: #fff;
	text-align: center;
	padding: 24px 18px;
	border-right: 1px solid rgba(255,255,255,0.08);
	vertical-align: middle;
}

.ac-comparison-table thead th:first-child {
	text-align: left;
	min-width: 280px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.82);
}

.ac-comparison-table thead th:last-child {
	border-right: 0;
}

/* Nome prodotto */
.ac-product-name {
	display: block;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 800;
	margin-bottom: 8px;
	color: #ffffff;
}

/* Prezzo */
.ac-product-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: #3a73b8;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(58, 115, 184, 0.25);
}

.ac-product-price .amount,
.ac-product-price .woocommerce-Price-amount,
.ac-product-price .woocommerce-Price-currencySymbol {
	color: inherit;
	font-weight: inherit;
}

/* Macro categorie */
.ac-comparison-table .ac-macro-row th {
	background: #eef4fb;
	color: #3a73b8;
	text-align: left;
	padding: 14px 20px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-top: 1px solid #d6e4f5;
	border-bottom: 1px solid #d6e4f5;
}

/* Celle corpo */
.ac-comparison-table tbody th[scope="row"],
.ac-comparison-table tbody td {
	padding: 18px 20px;
	border-bottom: 1px solid #eef2f7;
	background: #fff;
}

.ac-comparison-table tbody th[scope="row"] {
	text-align: left;
	font-size: 15px;
	font-weight: 600;
	color: #1f2a37;
}

.ac-capability-name {
	display: inline-block;
	line-height: 1.45;
}

/* Colonne */
.ac-comparison-table tbody td {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	vertical-align: middle;
	width: 16%;
}

/* Zebra */
.ac-comparison-table tbody tr:nth-child(even):not(.ac-macro-row) th,
.ac-comparison-table tbody tr:nth-child(even):not(.ac-macro-row) td {
	background: #f8fbff;
}

/* Incluso / escluso */
.ac-comparison-table td.is-included {
	color: #2f8f4e;
}

.ac-comparison-table td.is-excluded {
	color: #d9534f;
}

/* Hover */
.ac-comparison-table tbody tr:not(.ac-macro-row):hover th,
.ac-comparison-table tbody tr:not(.ac-macro-row):hover td {
	background: #eef5ff;
	transition: background 0.2s ease;
}

/* Colonna Premium */
.ac-comparison-table thead th:last-child {
	position: relative;
	background: linear-gradient(180deg, #285a96 0%, #3a73b8 100%);
}

/* Responsive */ /*
@media (max-width: 991px) {
	.ac-comparison-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		border-radius: 14px;
	}

	.ac-comparison-table thead th,
	.ac-comparison-table tbody th[scope="row"],
	.ac-comparison-table tbody td {
		padding: 14px 16px;
	}

	.ac-product-name {
		font-size: 17px;
	}

	.ac-product-price {
		font-size: 14px;
		padding: 7px 12px;
	}
}

.ac-comparison-table .ac-product-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ac-comparison-table .ac-product-crown {
	line-height: 1;
}
*/

/* ========= MOBILE: versione card ========= */
@media (max-width: 767px) {
	.ac-comparison-table {
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.ac-comparison-table thead {
		display: none;
	}

	.ac-comparison-table,
	.ac-comparison-table tbody,
	.ac-comparison-table tr,
	.ac-comparison-table th,
	.ac-comparison-table td {
		display: block;
		width: 100%;
	}

	.ac-comparison-table tbody tr.ac-macro-row {
		margin: 28px 0 12px;
	}

	.ac-comparison-table tbody tr.ac-macro-row th {
		background: #3a73b8;
		color: #fff;
		border: 0;
		border-radius: 12px;
		padding: 12px 16px;
		font-size: 12px;
		letter-spacing: 0.08em;
	}

	.ac-comparison-table tbody tr:not(.ac-macro-row) {
		background: #fff;
		border: 1px solid #dbe6f3;
		border-radius: 16px;
		box-shadow: 0 10px 24px rgba(58, 115, 184, 0.08);
		padding: 0;
		margin-bottom: 14px;
		overflow: hidden;
	}

	.ac-comparison-table tbody th[scope="row"] {
		background: #f4f8fd;
		border-bottom: 1px solid #e3edf8;
		padding: 14px 16px;
		font-size: 15px;
		line-height: 1.4;
	}

	.ac-comparison-table tbody td {
		position: relative;
		text-align: right;
		padding: 14px 16px;
		padding-left: 48%;
		border-bottom: 1px solid #eef2f7;
		font-size: 17px;
		min-height: 52px;
		background: #fff !important;
		width: 100%;
	}

	.ac-comparison-table tbody td:last-child {
		border-bottom: 0;
	}

	.ac-comparison-table tbody td::before {
		content: attr(data-label);
		position: absolute;
		left: 16px;
		top: 50%;
		transform: translateY(-50%);
		width: 42%;
		text-align: left;
		font-size: 12px;
		line-height: 1.3;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #3a73b8;
	}

	.ac-comparison-table td.is-included,
	.ac-comparison-table td.is-excluded {
		font-size: 20px;
		font-weight: 800;
	}

	.ac-comparison-table tbody tr:hover th,
	.ac-comparison-table tbody tr:hover td {
		background: initial;
	}
}