/* Webtrixia Size Chart – frontend */
.wtx-sc-wrap {
	--wtx-sc-color: #111;
	margin: 10px 0;
	line-height: 1.4;
}
.wtx-sc-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--wtx-sc-color);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.wtx-sc-trigger.wtx-sc-style-link .wtx-sc-label {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.wtx-sc-trigger.wtx-sc-style-link:hover {
	opacity: .75;
	color: var(--wtx-sc-color);
}
.wtx-sc-trigger.wtx-sc-style-button {
	padding: 9px 16px;
	border: 1px solid var(--wtx-sc-color);
	border-radius: 4px;
	background: transparent;
	transition: background .15s, color .15s;
}
.wtx-sc-trigger.wtx-sc-style-button:hover {
	background: var(--wtx-sc-color);
	color: #fff;
}
.wtx-sc-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

/* Modal */
html.wtx-sc-lock,
html.wtx-sc-lock body {
	overflow: hidden !important;
}
.wtx-sc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .2s ease;
}
.wtx-sc-modal[hidden] {
	display: none !important;
}
.wtx-sc-modal.is-open {
	opacity: 1;
}
.wtx-sc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	cursor: pointer;
}
.wtx-sc-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	background: #fff;
	color: #222;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	overflow: hidden;
	transform: translateY(12px) scale(.98);
	transition: transform .2s ease;
}
.wtx-sc-modal.is-open .wtx-sc-dialog {
	transform: none;
}
.wtx-sc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #eee;
	flex: 0 0 auto;
}
.wtx-sc-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}
.wtx-sc-close {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	height: 36px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f2f2f2 !important;
	color: #222 !important;
	cursor: pointer;
	flex: 0 0 36px;
	box-shadow: none !important;
}
.wtx-sc-close:hover {
	background: #e2e2e2 !important;
}
.wtx-sc-close svg {
	width: 20px;
	height: 20px;
}
.wtx-sc-body {
	padding: 18px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
}
.wtx-sc-content {
	margin-bottom: 14px;
}
.wtx-sc-content:last-child {
	margin-bottom: 0;
}
.wtx-sc-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
	font-size: 14px;
}
.wtx-sc-content th,
.wtx-sc-content td {
	border: 1px solid #e3e3e3;
	padding: 8px 10px;
	text-align: center;
}
.wtx-sc-content th,
.wtx-sc-content thead td {
	background: #f7f7f7;
	font-weight: 600;
}
.wtx-sc-content {
	overflow-x: auto;
}
.wtx-sc-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.wtx-sc-iframe {
	display: block;
	width: 100%;
	height: 75vh;
	border: 0;
	background: #f5f5f5;
}
.wtx-sc-pdf-mobile {
	text-align: center;
	padding: 20px 0;
}
.wtx-sc-pdf-btn {
	display: inline-block;
	padding: 12px 22px;
	background: #111;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none !important;
	font-weight: 600;
}
.wtx-sc-foot {
	padding: 10px 18px;
	border-top: 1px solid #eee;
	text-align: right;
	font-size: 13px;
	flex: 0 0 auto;
}
.wtx-sc-open {
	color: #555;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.wtx-sc-modal {
		padding: 0;
		align-items: flex-end;
	}
	.wtx-sc-dialog {
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 12px 12px 0 0;
		transform: translateY(30px);
	}
	.wtx-sc-title {
		font-size: 16px;
	}
	.wtx-sc-body {
		padding: 14px;
	}
	.wtx-sc-content table {
		font-size: 13px;
	}
	.wtx-sc-content th,
	.wtx-sc-content td {
		padding: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtx-sc-modal,
	.wtx-sc-dialog {
		transition: none;
	}
}
