/* WP Consultant Toolkit — Package Comparison widget. Based on .table-wrap /
   table.product-comparison / .current in outputs/style.css.
   The widget controls set the --wpct-pcomp-* custom properties on the wrapper.
   Selectors are two classes deep so theme/kit rules like `table td` or
   `.elementor-kit-10 th` don't win. */

/* Fill the container, also when it centers its items. Zero specificity,
   so a width set in Elementor still wins. */
:where(.elementor-widget-wpct-package-comparison) {
	width: 100%;
}

.wpct-pcomp-wrap {
	box-sizing: border-box;
	/* Containing block for the visually hidden texts: without it they escape the scroll box and widen the page. */
	position: relative;
	max-width: 100%;
	overflow-x: auto;
	border: var(--wpct-pcomp-border-width, 1px) solid var(--wpct-pcomp-border-color, #dce4eb);
	border-radius: var(--wpct-pcomp-radius, 18px);
	background: var(--wpct-pcomp-bg, #ffffff);
	-webkit-overflow-scrolling: touch;
}

.wpct-pcomp-wrap:focus-visible {
	outline: 2px solid #245bff;
	outline-offset: 2px;
}

/* Separate borders: with border-collapse the borders of sticky cells
   would stay behind while scrolling. */
.wpct-pcomp-wrap .wpct-pcomp {
	width: 100%;
	min-width: var(--wpct-pcomp-min-width, 640px);
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	table-layout: auto;
}

.wpct-pcomp .wpct-pcomp-caption {
	padding: 16px 18px 0;
	color: #52657b;
	font-size: .85rem;
	text-align: left;
	caption-side: top;
}

.wpct-pcomp .wpct-pcomp-head,
.wpct-pcomp .wpct-pcomp-cell {
	box-sizing: border-box;
	margin: 0;
	padding: var(--wpct-pcomp-padding, 16px 18px);
	border: 0;
	border-bottom: 1px solid var(--wpct-pcomp-divider, #dce4eb);
	text-align: left;
	vertical-align: top;
}

.wpct-pcomp .wpct-pcomp-head {
	color: var(--wpct-pcomp-head-color, #07182f);
	background: var(--wpct-pcomp-head-bg, #f7f8f5);
	font-family: "Manrope", Arial, sans-serif;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}

.wpct-pcomp .wpct-pcomp-cell {
	color: var(--wpct-pcomp-cell-color, #52657b);
	background: var(--wpct-pcomp-bg, #ffffff);
	font-size: .88rem;
	line-height: 1.5;
}

.wpct-pcomp tr:last-child > .wpct-pcomp-cell {
	border-bottom: 0;
}

/* First column: feature names. */
.wpct-pcomp .wpct-pcomp-cell.wpct-pcomp-row-label {
	color: var(--wpct-pcomp-label-color, #07182f);
	background: var(--wpct-pcomp-label-bg, var(--wpct-pcomp-bg, #ffffff));
	font-weight: 700;
}

.wpct-pcomp .wpct-pcomp-price {
	color: var(--wpct-pcomp-price-color, inherit);
	white-space: nowrap;
}

/* Package names linking to their detail page. */
.wpct-pcomp .wpct-pcomp-link {
	color: inherit;
	background: none;
	text-decoration: none;
	box-shadow: none;
	font: inherit;
}

.wpct-pcomp .wpct-pcomp-link:hover,
.wpct-pcomp .wpct-pcomp-link:focus-visible {
	color: var(--wpct-pcomp-link-hover, #164ad8);
	background: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Highlighted (current) package column. */
.wpct-pcomp .wpct-pcomp-head.is-current,
.wpct-pcomp .wpct-pcomp-cell.is-current {
	color: var(--wpct-pcomp-current-color, #164ad8);
	background: var(--wpct-pcomp-current-bg, #edf2ff);
	font-weight: 800;
}

.wpct-pcomp .wpct-pcomp-empty {
	color: var(--wpct-pcomp-empty-color, #738399);
}

.wpct-pcomp-wrap .wpct-pcomp-cell.is-current .wpct-pcomp-empty {
	color: var(--wpct-pcomp-empty-color, inherit);
}

/* Sticky first column while the table scrolls sideways. */
.wpct-pcomp-wrap--sticky .wpct-pcomp .wpct-pcomp-row-label {
	position: sticky;
	left: 0;
	z-index: 1;
}

.wpct-pcomp-wrap--sticky .wpct-pcomp .wpct-pcomp-head.wpct-pcomp-row-label {
	z-index: 2;
}

/* Visually hidden, still read by screen readers. */
.wpct-pcomp-wrap .wpct-pcomp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
