/* Table */
.wp-block-indigotree-mapbox-table {
	position: relative;
	margin-block-end: 30px !important;
	container-name: mapbox-data-table;
	container-type: inline-size;
}

.indigotree-mapbox-table {
	display: flex;
	flex-wrap: wrap;
	column-gap: 30px;
}

/* Table Filter */
.indigotree-mapbox-table__filter {
	display: flex;
	width: calc(100% - 110px);
}

.indigotree-mapbox-table__filter label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.indigotree-mapbox-table__filter input {
	border: none;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #2a0b57;
	background-color: transparent;
	display: block;
	width: 100%;
	border-radius: 0;
	padding: 5px;
	color: 900;
	font-size: 16px;
	font-weight: 400;
	height: 60px;
}

.indigotree-mapbox-table__filter::placeholder {
	color: #525252;
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__filter {
		max-width: 300px;
	}
}

/* Table Sort */
.indigotree-mapbox-table__sort {
	position: relative;
	align-items: center;
	background-color: #2a0b57;
	color: #fff;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	display: flex;
	width: 80px;
	height: 60px;
	flex-direction: row;
	justify-content: center;
	flex-wrap: nowrap;
	font-size: 32px;
	font-weight: 300;
	margin-top: 12px;
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__sort {
		display: none;
	}
}

/* Table Header */
.indigotree-mapbox-table__header {
	position: absolute;
	top: 72px;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
	width: max-content;
	background-color: #fff;
	border-radius: 15px;
	border: 1px solid #d8d8d8;
	padding: 30px;
}

.indigotree-mapbox-table__header[hidden] {
	display: none;
}

.indigotree-mapbox-table__header > p {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.indigotree-mapbox-table__heading {
	padding: 10px 20px;
	border-radius: 15px;
	font-size: clamp(16px, 1rem + ((1vw - 3.2px) * 0.196), 18px);
	font-weight: 600;
	text-transform: capitalize;
	cursor: pointer;
}

.indigotree-mapbox-table__heading:hover,
.indigotree-mapbox-table__heading:focus,
.indigotree-mapbox-table__heading:active {
	background-color: #f9f9f9;
	color: #891fdc;
}

.indigotree-mapbox-table__heading p {
	margin: 0;
	width: 100%;
}

.indigotree-mapbox-table__heading span {
	display: none;
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__header,
	.indigotree-mapbox-table__heading {
		position: relative;
		width: unset;
		height: unset;
		padding: unset;
		margin: unset;
		overflow: unset;
		clip: unset;
		display: flex !important;
		border-radius: unset;
		border: unset;
		top: unset;
		background-color: unset;
	}

	.indigotree-mapbox-table__header {
		margin-top: 30px;
		width: 100%;
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		border-bottom-width: 2px;
		border-bottom-style: solid;
		border-bottom-color: #2a0b57;
	}

	.indigotree-mapbox-table__heading {
		background-color: unset !important;
		justify-content: flex-end;
		width: calc(calc(100% - 200px) / 7);
		color: #891fdc;
	}

	.indigotree-mapbox-table__heading:first-of-type {
		width: 200px;
		justify-content: flex-start;
	}

	.indigotree-mapbox-table__heading div {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		min-height: 44px;
		position: relative;
	}

	.indigotree-mapbox-table__heading:first-of-type div {
		flex-direction: row;
	}

	.indigotree-mapbox-table__heading p {
		width: auto;
	}

	.indigotree-mapbox-table__heading span {
		position: relative;
		display: flex;
		width: 10px;
		height: 10px;
		align-items: center;
		color: #f3eafc;
		margin: 10px;
		line-height: 8px;
	}

	.indigotree-mapbox-table__heading span:before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 10px;
		height: 10px;
		border-radius: 100%;
		background-color: #f3eafc;
	}

	.indigotree-mapbox-table__heading.active span {
		color: #2a0b57;
	}

	.indigotree-mapbox-table__heading.active span:before {
		background-color: transparent;
	}

	.indigotree-mapbox-table__heading.active[data-order="desc"] span {
		transform: scaleY(-1);
	}
}

/* Table Body */
.indigotree-mapbox-table__body {
	width: 100%;
	margin-top: 30px;
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__body {
		margin-top: 0;
	}
}

/* Table Rows */
.indigotree-mapbox-table__row {
	display: flex;
	flex-direction: column;
	border-bottom-width: 2px;
	border-bottom-style: solid;
	border-bottom-color: #2a0b57;
	margin-bottom: 5px;
}

@container mapbox-data-table (width > 768px) {
	.indigotree-mapbox-table__row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: stretch;
		margin-bottom: 0;
		column-gap: 30px;
	}
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__row {
		align-items: center;
		align-items: stretch;
		justify-content: space-between;
		column-gap: 0;
		border-bottom-width: 1px;
		margin-bottom: 0;
		padding-bottom: 0;
	}
}

/* Table Cells */
.indigotree-mapbox-table__cell {
	display: flex;
	flex-direction: row;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #2a0b57;
}

@container mapbox-data-table (max-width: 767px) {
	.indigotree-mapbox-table__cell:first-child,
	.indigotree-mapbox-table__cell:last-child {
		border-bottom: none;
	}
}

@container mapbox-data-table (width > 768px) {
	.indigotree-mapbox-table__cell {
		width: calc(calc(100% - 90px) / 4);
		background: none !important;
	}

	.indigotree-mapbox-table__cell:nth-child(5),
	.indigotree-mapbox-table__cell:nth-child(6),
	.indigotree-mapbox-table__cell:nth-child(7),
	.indigotree-mapbox-table__cell:nth-child(8) {
		border-bottom: none;
	}
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__cell {
		flex-direction: column;
		width: calc(calc(100% - 200px) / 7);
		border-bottom: none;
	}

	.indigotree-mapbox-table__cell:first-child {
		width: 200px;
	}
}

/* Table Cell Contents */
.indigotree-mapbox-table__cell-label,
.indigotree-mapbox-table__cell-value {
	margin-bottom: 0;
	margin-top: 0;
	padding: 5px 0;
	width: 50%;
}

.indigotree-mapbox-table__cell-label {
	text-transform: capitalize;
	font-weight: 600;
}

.indigotree-mapbox-table__cell:first-child .indigotree-mapbox-table__cell-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.indigotree-mapbox-table__cell-value {
	text-align: right;
}

.indigotree-mapbox-table__cell:first-child .indigotree-mapbox-table__cell-value {
	text-align: left;
	font-size: 22px;
	color: #891fdc;
}

.indigotree-mapbox-table__cell:not(:nth-child(1)):not(:nth-child(2))
	.indigotree-mapbox-table__cell-value:after {
	content: "\0025";
}

@container mapbox-data-table (width > 1024px) {
	.indigotree-mapbox-table__cell-label,
	.indigotree-mapbox-table__cell-value {
		width: auto;
	}

	.indigotree-mapbox-table__cell-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}

	.indigotree-mapbox-table__cell-value {
		width: 100%;
	}

	.indigotree-mapbox-table__cell:first-child .indigotree-mapbox-table__cell-value {
		text-align: left;
		font-size: 16px;
		color: #2a0b57;
	}
}
