/* ==========================================================================
   Automora Comparison Table (automora-comparison-table)
   Figma: Pricing B1c 3:2646 (zebra rows), About A6 8:6 (achievements, divider lines).
   Rows are CSS grids; every cell rule uses .am-ctable .am-ctable__cell (0,2,0) so theme /
   Elementor table defaults (`table tbody > tr:nth-child(odd) > td`, 0,1,4) cannot leak in.
   ========================================================================== */

:where(.e-con, .e-con-inner) > .elementor-widget-automora-comparison-table { width: 100%; min-width: 0; }

.am-ctable-wrap { width: 100%; min-width: 0; max-width: 100%; }
.am-ctable__scroll { position: relative; /* keeps absolutely positioned screen-reader labels inside the scroll box */ width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #402C2C transparent; }
.am-ctable__scroll:focus { outline: none; }
.am-ctable__scroll:focus-visible { outline: 2px solid var(--am-w-orange); outline-offset: 4px; border-radius: 12px; }
.am-ctable__scroll::-webkit-scrollbar { height: 6px; }
.am-ctable__scroll::-webkit-scrollbar-thumb { background: #402C2C; border-radius: 6px; }

.am-ctable {
	--am-ct-first: minmax(0, 1fr);
	--am-ct-cols: 3;
	--am-ct-head-gap: 40px;
	--am-ct-row-gap: 0px;
	--am-ct-row-h: 70px;
	--am-ct-line: #190F0F;
	--am-ct-line-w: 2px;
	--am-ct-mark: 18px;
	--am-ct-stack-label: #979797;
	display: flex; flex-direction: column; gap: var(--am-ct-head-gap);
	width: 100%; min-width: 760px; margin: 0; padding: 0;
	border: 0; border-collapse: separate; border-spacing: 0; background: none;
	font-size: inherit; table-layout: auto;
}
.am-ctable caption.screen-reader-text { position: absolute !important; }
.am-ctable .am-ctable__head,
.am-ctable .am-ctable__body { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; background: none; }
.am-ctable .am-ctable__body { gap: var(--am-ct-row-gap); }

.am-ctable .am-ctable__head-row,
.am-ctable .am-ctable__row {
	display: grid; grid-template-columns: var(--am-ct-first) repeat(var(--am-ct-cols), minmax(0, 1fr)); align-items: stretch;
	margin: 0; padding: 0; background: none; box-sizing: border-box;
}
.am-ctable .am-ctable__head-row { border-radius: 14px; overflow: hidden; }
.am-ctable .am-ctable__row { min-height: var(--am-ct-row-h); border: 1px solid transparent; border-radius: 12px; overflow: hidden; }

/* Cells (reset theme table styles, then lay out). */
.am-ctable .am-ctable__cell {
	display: flex; align-items: center; justify-content: flex-start; min-width: 0; margin: 0;
	padding: 0 28px; border: 0; background: none; box-shadow: none; vertical-align: middle;
	text-align: left; overflow-wrap: anywhere;
}
.am-ctable .am-ctable__cell.is-center { justify-content: center; text-align: center; }
.am-ctable .am-ctable__cell.is-right { justify-content: flex-end; text-align: right; }
.am-ctable .am-ctable__cell--head {
	padding: 0 28px; font-family: var(--am-w-head); font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: #fff;
}
.am-ctable .am-ctable__cell--body { padding: 0 28px; font-family: var(--am-w-head); font-size: 18px; font-weight: 400; line-height: 1; color: #fff; }
.am-ctable .am-ctable__cell--label { font-family: var(--am-w-head); font-size: 18px; font-weight: 400; line-height: 1.2; color: #fff; }
.am-ctable .am-ctable__text { font-family: var(--am-w-head); font-size: 18px; line-height: 1.3; color: #fff; }

.am-ctable .am-ctable__mark { display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: #fff; }
.am-ctable .am-ctable__mark--glyph { font-family: "Space Grotesk", var(--am-w-body); font-size: 18px; font-weight: 400; }
.am-ctable .am-ctable__mark--icon { width: var(--am-ct-mark); height: var(--am-ct-mark); font-size: var(--am-ct-mark); }
.am-ctable .am-ctable__mark--icon img, .am-ctable .am-ctable__mark--icon svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.am-ctable .am-ctable__mark--icon svg { fill: currentColor; }

/* Highlighted column. */
.am-ctable .am-ctable__cell--body.is-hl { background-color: rgba(253, 67, 11, .08); }
.am-ctable .am-ctable__cell--head.is-hl { color: var(--am-w-orange); }
.am-ctable .is-hl .am-ctable__mark--yes, .am-ctable .is-hl .am-ctable__text { color: var(--am-w-orange); }

/* Row styles. */
.am-ctable-rows-zebra .am-ctable .am-ctable__row:nth-child(odd) { background-color: #120606; border-color: #251616; }
.am-ctable-rows-zebra .am-ctable .am-ctable__row:nth-child(even) { background-color: #201717; border-color: #402C2C; }
.am-ctable-rows-lines .am-ctable .am-ctable__row {
	min-height: 0; padding-bottom: var(--am-ct-row-gap); border: 0; border-bottom: var(--am-ct-line-w) solid var(--am-ct-line); border-radius: 0; overflow: visible;
}
.am-ctable-rows-lines .am-ctable .am-ctable__row:last-child { padding-bottom: 0; border-bottom: 0; }
.am-ctable-rows-plain .am-ctable .am-ctable__row { border-width: 0; }

/* Stacked cards on phones (no horizontal scroll at all). */
.am-ctable-mobile-stack .am-ctable { min-width: 0; }
@media (max-width: 767px) {
	.am-ctable-mobile-stack .am-ctable .am-ctable__head {
		position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
	}
	.am-ctable-mobile-stack .am-ctable { gap: 0; }
	.am-ctable-mobile-stack.elementor-widget .am-ctable .am-ctable__body { gap: max(12px, var(--am-ct-row-gap)); }
	.am-ctable-mobile-stack.elementor-widget .am-ctable .am-ctable__row {
		grid-template-columns: minmax(0, 1fr); row-gap: 10px; min-height: 0; padding: 18px 20px;
	}
	.am-ctable-mobile-stack.am-ctable-rows-lines.elementor-widget .am-ctable .am-ctable__row { padding: 0 0 var(--am-ct-row-gap); }
	.am-ctable-mobile-stack.am-ctable-rows-lines.elementor-widget .am-ctable .am-ctable__row:last-child { padding-bottom: 0; }
	.am-ctable-mobile-stack.elementor-widget .am-ctable .am-ctable__cell {
		justify-content: space-between; gap: 16px; padding: 0; text-align: right; background-color: transparent;
	}
	.am-ctable-mobile-stack.elementor-widget .am-ctable .am-ctable__cell--label { justify-content: flex-start; text-align: left; font-weight: 600; }
	.am-ctable-mobile-stack .am-ctable td.am-ctable__cell::before {
		content: attr(data-label); flex: 0 1 auto; margin-right: auto; text-align: left;
		font-family: var(--am-w-body); font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0; color: var(--am-ct-stack-label);
	}
}
