/* Workleidung Shop – size tables (window on the product page, page "Grössentabellen") */

/* Link that opens the window */
.wks-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wk-orange-text, #A9520A);
	font: inherit;
	font-size: var(--wk-fs-s, 14px);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.wks-linkbtn:hover { color: var(--wk-orange-text-hover, #7E3D07); text-decoration-thickness: 2px; }
.wks-linkbtn:focus-visible { outline: 2px solid var(--wk-orange, #EF7F1A); outline-offset: 3px; border-radius: 4px; }

/* The table card ------------------------------------------------------------ */
.wks-chart {
	padding: 20px;
	border: 1px solid var(--wk-line-card, #DFE3E6);
	border-radius: var(--wk-r-xl, 20px);
	background: var(--wk-surface, #fff);
	box-shadow: 0 1px 2px rgba(20, 22, 24, .03);
	color: var(--wk-ink, #1E1D1A);
}
.wks-chart--bare { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.wks-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; }
.wks-chart__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wks-chart__kicker { font-size: var(--wk-fs-xs, 12px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wk-orange-text, #A9520A); }
.wks-chart__title { margin: 0; font-family: var(--wk-font-display, inherit); font-weight: 700; font-size: 24px; line-height: 1.1; }
.wks-chart__model { font-size: var(--wk-fs-s, 14px); color: var(--wk-muted, #5A5F63); }
.wks-chart__note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--wk-r-md, 12px); background: var(--wk-fill-2, #F0F2F4); font-size: var(--wk-fs-sm, 13px); color: var(--wk-ink-3, #464B4F); line-height: 1.45; }

.wks-chart__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	/* shadows at the edges show that the table scrolls sideways */
	background:
		linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) 0 0 / 32px 100% no-repeat local,
		linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) 100% 0 / 32px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(20, 22, 24, .2), rgba(20, 22, 24, 0)) 0 0 / 12px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(20, 22, 24, .2), rgba(20, 22, 24, 0)) 100% 0 / 12px 100% no-repeat scroll;
}
.wks-chart table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wks-chart th, .wks-chart td { padding: 0 8px; height: 36px; text-align: right; border-top: 1px solid var(--wk-line-soft, #ECEEEF); font-size: var(--wk-fs, 15px); }
.wks-chart thead th { height: auto; padding: 10px 8px; vertical-align: bottom; border-top: 1px solid var(--wk-line-mid, #DCDFE0); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: var(--wk-muted, #5A5F63); }
.wks-chart thead th span { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.wks-chart th:first-child, .wks-chart td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; padding-left: 0; white-space: nowrap; background: var(--wk-surface, #fff); }
.wks-chart--bare th:first-child, .wks-chart--bare td:first-child { background: #fff; }
.wks-chart th:last-child, .wks-chart td:last-child { padding-right: 0; }
.wks-chart tbody th { font-weight: 700; font-size: var(--wk-fs, 15px); }
.wks-chart tbody th small { margin-left: 8px; font-size: var(--wk-fs-xs, 12px); font-weight: 400; color: var(--wk-muted, #5A5F63); }
.wks-chart tbody tr.is-kid th, .wks-chart tbody tr.is-kid td { height: 40px; }
.wks-chart td.is-na { color: var(--wk-sep, #C3C8CB); }
.wks-chart tbody tr:last-child th, .wks-chart tbody tr:last-child td { border-bottom: 1px solid var(--wk-line-soft, #ECEEEF); }

.wks-chart__help { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 0; font-size: var(--wk-fs-sm, 13px); color: var(--wk-ink-3, #464B4F); line-height: 1.45; }
.wks-chart__help p { margin: 0; }
.wks-chart__help b { color: var(--wk-ink, #1E1D1A); font-weight: 600; }
.wks-chart__foot { margin: 8px 0 0; font-size: var(--wk-fs-xs, 12px); color: var(--wk-muted, #5A5F63); }

/* A, B, C: the same letters are on the drawing and in the table */
.wks-ab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--wk-orange, #EF7F1A);
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: 1px;
}
.wks-chart thead .wks-ab { display: flex; margin: 0 0 4px auto; }
.wks-chart thead th:first-child .wks-ab { margin-left: 0; }
.wks-sketch { flex: none; width: 96px; height: auto; color: var(--wk-ink, #1E1D1A); }
.wks-sketch .g { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wks-sketch .m { fill: none; stroke: var(--wk-orange, #EF7F1A); stroke-width: 1.75; stroke-linecap: round; }
.wks-sketch .b { fill: var(--wk-orange, #EF7F1A); }
.wks-sketch text { font: 700 9px var(--wk-font, sans-serif); fill: #fff; text-anchor: middle; }

@media (max-width: 600px) {
	.wks-chart { padding: 16px; }
	.wks-chart--bare { padding: 0; }
	.wks-sketch { width: 80px; }
	.wks-chart th, .wks-chart td { padding: 0 5px; font-size: var(--wk-fs-s, 14px); }
	.wks-chart thead th { font-size: 10px; letter-spacing: .01em; }
	.wks-chart tbody th { font-size: var(--wk-fs-s, 14px); }
}

/* The window on the product page --------------------------------------------- */
.wks-dialog {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--wk-r-xl, 20px);
	background: #fff;
	color: inherit;
	box-shadow: 0 16px 48px rgba(20, 22, 24, .16);
	overflow: hidden;
}
.wks-dialog[open] { display: flex; flex-direction: column; }
.wks-dialog::backdrop { background: rgba(20, 22, 24, .5); }
.wks-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--wk-line-mid, #DCDFE0); }
.wks-dialog__bar h2 { margin: 0; font-size: 16px; font-weight: 600; }
.wks-dialog__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--wk-fill, #ECEEF0); color: var(--wk-ink, #1E1D1A); cursor: pointer; }
.wks-dialog__close svg { display: block; }
.wks-dialog__close:focus-visible { outline: 2px solid var(--wk-orange, #EF7F1A); outline-offset: 2px; }
.wks-dialog__body { padding: 20px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wks-dialog { overscroll-behavior: contain; }
/* While the window is open the page behind it does not scroll. */
html.wks-scroll-lock { overflow: hidden; scrollbar-gutter: stable; }
html.wks-scroll-lock body { overflow: hidden; }

/* Page "Grössentabellen" ------------------------------------------------------ */
.wks-sizepage__intro { max-width: 62ch; margin: 0 0 24px; color: var(--wk-muted, #5A5F63); }
.wks-sizepage__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.wks-sizepage__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--wk-tile, #E6E9EC);
	color: inherit;
	font-size: var(--wk-fs-s, 14px);
	font-weight: 600;
	text-decoration: none;
}
.wks-sizepage__nav a:hover { background: var(--wk-line-mid, #DCDFE0); }
.wks-sizepage__brand { margin: 0 0 48px; scroll-margin-top: 96px; }
.wks-sizepage__brand h2 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--wk-line-mid, #DCDFE0); }
.wks-sizepage__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 640px)); gap: 20px; align-items: start; }
