.wamda-size-chart-trigger-wrapper {
	margin: 15px 0 20px;
}

.wamda-size-chart-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #222;
	background: #fff;
	color: #222;
	padding: 10px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all .2s ease;
}

.wamda-size-chart-button:hover {
	background: #222;
	color: #fff;
}

.wamda-size-chart-icon {
	font-size: 16px;
}

.wamda-size-chart-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.wamda-size-chart-modal.is-open {
	display: block;
}

.wamda-size-chart-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .65);
}

.wamda-size-chart-dialog {
	position: relative;
	width: min(900px, calc(100% - 30px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	margin: 20px auto;
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	box-sizing: border-box;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	z-index: 2;
}

.wamda-size-chart-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 30px;
	cursor: pointer;
	color: #222;
}

.wamda-chart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	padding-right: 35px;
}

.wamda-chart-header h2 {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
}

.wamda-unit-switch {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.wamda-unit-button {
	border: 0;
	background: #fff;
	padding: 7px 13px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
}

.wamda-unit-button.active {
	background: #222;
	color: #fff;
}

.wamda-chart-table-wrapper {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 25px;
}

.wamda-chart-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 500px;
}

.wamda-chart-table th,
.wamda-chart-table td {
	border: 1px solid #ddd;
	padding: 12px 14px;
	text-align: center;
}

.wamda-chart-table th {
	background: #f5f5f5;
	font-weight: 700;
}

.wamda-chart-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.wamda-column-unit {
	font-size: 10px;
	color: #777;
	margin-left: 3px;
}

.wamda-measurement-image {
	margin: 25px 0;
	text-align: center;
}

.wamda-measurement-image img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

.wamda-measurement-instructions {
	border-top: 1px solid #ddd;
	padding-top: 20px;
	margin-top: 25px;
}

.wamda-measurement-instructions h3 {
	margin-top: 0;
	font-size: 20px;
}

body.wamda-size-chart-open {
	overflow: hidden;
}

@media (max-width: 600px) {

	.wamda-size-chart-dialog {
		width: calc(100% - 16px);
		max-height: calc(100vh - 16px);
		margin: 8px auto;
		padding: 20px 15px;
		border-radius: 6px;
	}

	.wamda-chart-header {
		display: block;
		padding-right: 30px;
	}

	.wamda-chart-header h2 {
		font-size: 21px;
		margin-bottom: 15px;
	}

	.wamda-unit-switch {
		display: inline-flex;
	}

	.wamda-chart-table th,
	.wamda-chart-table td {
		padding: 9px 10px;
		font-size: 13px;
	}
}
