.scwoo-trigger-wrap {
	margin: 10px 0;
}

.scwoo-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .3px;
	text-decoration: underline;
	color: #111;
	cursor: pointer;
}

.scwoo-open-btn:hover {
	color: #000;
}

.scwoo-open-btn .scwoo-icon {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.scwoo-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.scwoo-modal.scwoo-modal-open {
	display: block;
}

.scwoo-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.scwoo-modal-box {
	position: relative;
	background: #fff;
	max-width: 640px;
	width: 92%;
	margin: 6vh auto;
	padding: 28px 24px;
	border-radius: 6px;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.scwoo-modal-title {
	margin: 0 0 16px;
	font-size: 20px;
	text-align: center;
}

.scwoo-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.scwoo-modal-close:hover {
	color: #000;
}

.scwoo-table-scroll {
	max-width: 100%;
	overflow: auto;
	/* Keeps rounded corners clean and gives the sticky row/column a boundary to scroll within. */
	max-height: 60vh;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}

.scwoo-chart-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.scwoo-chart-table th,
.scwoo-chart-table td {
	border-bottom: 1px solid #e2e2e2;
	border-right: 1px solid #e2e2e2;
	padding: 8px 10px;
	text-align: center;
	background: #fff;
	white-space: nowrap;
}

.scwoo-chart-table tr th:last-child,
.scwoo-chart-table tr td:last-child {
	border-right: none;
}

.scwoo-chart-table .scwoo-head-row th {
	background: #f7f7f7;
	font-weight: 700;
}

/* Sticky first row: stays visible while the table scrolls vertically. */
.scwoo-chart-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Sticky first column: stays visible while the table scrolls horizontally. */
.scwoo-chart-table .scwoo-sticky-col {
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
}

.scwoo-chart-table tbody .scwoo-sticky-col {
	background: #fafafa;
	font-weight: 600;
}

/* Top-left cell: sticky on both axes at once, needs the highest stacking order. */
.scwoo-chart-table .scwoo-sticky-corner {
	z-index: 3;
	background: #f7f7f7;
}

.scwoo-chart-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.scwoo-chart-note {
	margin-top: 14px;
	font-size: 13px;
	color: #555;
}

body.scwoo-lock-scroll {
	overflow: hidden;
}
