
/* =========================================================
   iDusan - Elementor Tables
   ========================================================= */

.idu-compare-grid,
.idu-responsive-table-wrap {
	--idu-feature-fr: 5.5fr;
	--idu-a-fr: 2.4fr;
	--idu-b-fr: 1.8fr;
	box-sizing: border-box;
	width: 100%;
}

.idu-compare-grid *,
.idu-responsive-table-wrap * {
	box-sizing: border-box;
}

/* Comparison table */
.idu-compare-grid {
	display: grid;
	grid-template-columns: var(--idu-feature-fr) var(--idu-a-fr) var(--idu-b-fr);
	overflow: hidden;
}

.idu-compare-cell {
	display: flex;
	align-items: center;
	border-style: solid;
	border-color: #cad7de;
	border-width: 1px 1px 0 0;
	min-width: 0;
}

.idu-compare-cell:nth-child(3n+1) {
	border-left-width: 1px;
}

.idu-compare-grid > .idu-compare-cell:nth-last-child(-n+3) {
	border-bottom-width: 1px;
}

.idu-compare-head {
	justify-content: center;
	text-align: center;
	font-weight: 700;
	line-height: 1.15;
}

.idu-feature-head:empty {
	border-color: transparent;
	background: transparent !important;
}

.idu-feature-cell {
	justify-content: flex-start;
}

.idu-a-cell,
.idu-b-cell {
	justify-content: center;
	text-align: center;
}

.idu-compare-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-style: solid;
	border-width: 0;
	flex: 0 0 auto;
	line-height: 1;
}

.idu-compare-icon svg {
	display: block;
	fill: currentColor;
}

/* Generic responsive table */
.idu-desktop-table {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.idu-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.idu-table th,
.idu-table td {
	border-style: solid;
	border-width: 1px;
	vertical-align: middle;
	text-align: left;
}

.idu-mobile-table {
	display: none;
}

.idu-mobile-row {
	width: 100%;
	border-style: solid;
	border-width: 1px;
	margin: 0 0 10px;
	overflow: hidden;
}

.idu-mobile-row summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
}

.idu-mobile-row summary::-webkit-details-marker {
	display: none;
}

.idu-mobile-row summary::after {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 1.25em;
	line-height: 1;
	font-weight: 600;
}

.idu-mobile-row[open] summary::after {
	content: "−";
}

.idu-mobile-body {
	border-top: 1px solid currentColor;
}

.idu-mobile-kv {
	display: grid;
	grid-template-columns: minmax(110px, 38%) 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

.idu-mobile-kv:last-child {
	border-bottom: 0;
}

.idu-mobile-label {
	font-weight: 700;
}

.idu-mobile-value {
	min-width: 0;
}

/* Breakpoints */
@media (max-width: 1024px) {
	.idu-break-1024 .idu-desktop-table {
		display: none;
	}
	.idu-break-1024 .idu-mobile-table {
		display: block;
	}
}

@media (max-width: 767px) {
	.idu-break-767 .idu-desktop-table {
		display: none;
	}
	.idu-break-767 .idu-mobile-table {
		display: block;
	}

	.idu-compare-head {
		font-size: 14px;
	}

	.idu-compare-cell {
		min-height: 56px;
	}

	.idu-feature-cell {
		font-size: 14px;
		line-height: 1.35;
	}

	.idu-mobile-kv {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 480px) {
	.idu-compare-grid {
		--idu-feature-fr: 4.7fr;
		--idu-a-fr: 3.0fr;
		--idu-b-fr: 2.3fr;
	}

	.idu-compare-head {
		font-size: 13px;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	.idu-feature-cell {
		font-size: 13px;
	}

	.idu-compare-cell {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}
