.iaew-advanced-table {
	--iaew-table-border: #d9dee7;
	--iaew-table-head-bg: #f6f8fb;
	--iaew-table-head-color: #1f2937;
	--iaew-table-text: #3f4652;
	--iaew-table-muted: #6b7280;
	--iaew-table-accent: #2563eb;
	--iaew-table-success: #16a34a;
	--iaew-table-danger: #dc2626;
	color: var(--iaew-table-text);
}

.iaew-advanced-table__tools {
	margin-bottom: 12px;
}

.iaew-advanced-table__search {
	border: 1px solid var(--iaew-table-border);
	border-radius: 6px;
	box-shadow: none;
	max-width: 320px;
	min-height: 40px;
	padding: 8px 12px;
	width: 100%;
}

.iaew-advanced-table__scroll {
	overflow-x: auto;
	width: 100%;
}

.iaew-advanced-table__table {
	border-collapse: separate;
	border-spacing: 0;
	color: inherit;
	table-layout: auto;
	text-align: left;
	width: 100%;
}

.iaew-advanced-table__table caption {
	caption-side: top;
	color: var(--iaew-table-muted);
	font-size: 14px;
	margin-bottom: 10px;
	text-align: inherit;
}

.iaew-advanced-table th,
.iaew-advanced-table td {
	border-color: var(--iaew-table-border);
	border-style: solid;
	border-width: 0 1px 1px 0;
	padding: 16px 18px;
	vertical-align: middle;
}

.iaew-advanced-table tr > :first-child {
	border-left-width: 1px;
}

.iaew-advanced-table thead tr:first-child > * {
	border-top-width: 1px;
}

.iaew-advanced-table thead th {
	background: var(--iaew-table-head-bg);
	color: var(--iaew-table-head-color);
	font-weight: 700;
}

.iaew-advanced-table--sticky-header thead th {
	position: sticky;
	top: 0;
	z-index: 2;
}

.iaew-advanced-table__header-content {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.iaew-advanced-table__header-content svg,
.iaew-advanced-table__header-content i {
	display: block;
	height: 1em;
	width: 1em;
}

.iaew-advanced-table__header-image {
	display: block;
	height: 34px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.iaew-advanced-table__cell-content {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	justify-content: center;
}

.iaew-advanced-table__cell-content svg,
.iaew-advanced-table__cell-content i {
	display: block;
	height: 1em;
	width: 1em;
}

.iaew-advanced-table__cell-image {
	display: block;
	height: 40px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.iaew-advanced-table tbody th {
	background: #fbfcfe;
	color: var(--iaew-table-head-color);
	font-weight: 700;
}

.iaew-advanced-table tbody tr.is-highlighted-row > * {
	background: #f8fbff;
}

.iaew-advanced-table .is-featured-column {
	background: #f5f8ff;
}

.iaew-advanced-table__status {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 18px;
	font-weight: 700;
	height: 1.6em;
	justify-content: center;
	line-height: 1;
	width: 1.6em;
}

.iaew-advanced-table__status--yes {
	background: rgba(22, 163, 74, 0.12);
	color: var(--iaew-table-success);
}

.iaew-advanced-table__status--no {
	background: rgba(220, 38, 38, 0.1);
	color: var(--iaew-table-danger);
}

.iaew-advanced-table__badge {
	background: rgba(37, 99, 235, 0.12);
	border-radius: 999px;
	color: var(--iaew-table-accent);
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 7px 10px;
}

.iaew-advanced-table__price {
	color: var(--iaew-table-head-color);
	display: inline-block;
	font-size: 1.35em;
	font-weight: 800;
	line-height: 1.15;
}

.iaew-advanced-table__button {
	background: var(--iaew-table-accent);
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	padding: 11px 14px;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.iaew-advanced-table__button:hover,
.iaew-advanced-table__button:focus {
	color: #fff;
	filter: brightness(0.94);
}

.iaew-advanced-table[data-sort="true"] thead th {
	cursor: pointer;
	position: relative;
}

.iaew-advanced-table[data-sort="true"] thead th::after {
	color: var(--iaew-table-muted);
	content: "↕";
	font-size: 0.8em;
	margin-left: 0.45em;
}

.iaew-advanced-table[data-sort="true"] thead th[aria-sort="ascending"]::after {
	content: "↑";
}

.iaew-advanced-table[data-sort="true"] thead th[aria-sort="descending"]::after {
	content: "↓";
}

.iaew-advanced-table__custom-content table {
	width: 100%;
}

@media (max-width: 767px) {
	.iaew-advanced-table--mobile-stacked .iaew-advanced-table__scroll {
		overflow-x: visible;
	}

	.iaew-advanced-table--mobile-stacked table,
	.iaew-advanced-table--mobile-stacked thead,
	.iaew-advanced-table--mobile-stacked tbody,
	.iaew-advanced-table--mobile-stacked tr,
	.iaew-advanced-table--mobile-stacked th,
	.iaew-advanced-table--mobile-stacked td {
		display: block;
		width: 100%;
	}

	.iaew-advanced-table--mobile-stacked thead {
		height: 1px;
		margin: -1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.iaew-advanced-table--mobile-stacked tbody tr {
		border: 1px solid var(--iaew-table-border);
		border-radius: 8px;
		margin-bottom: 14px;
		overflow: hidden;
	}

	.iaew-advanced-table--mobile-stacked th,
	.iaew-advanced-table--mobile-stacked td {
		border-width: 0 0 1px;
		padding-left: 46%;
		position: relative;
	}

	.iaew-advanced-table--mobile-stacked tbody tr > :last-child {
		border-bottom-width: 0;
	}

	.iaew-advanced-table--mobile-stacked th::before,
	.iaew-advanced-table--mobile-stacked td::before {
		color: var(--iaew-table-muted);
		content: attr(data-label);
		font-size: 12px;
		font-weight: 700;
		left: 14px;
		max-width: 38%;
		position: absolute;
		text-transform: uppercase;
		top: 50%;
		transform: translateY(-50%);
	}

	.iaew-advanced-table--mobile-scroll .iaew-advanced-table__table {
		min-width: 680px;
	}
}
