/* Hoki suuruste tabel — modal uses gold accent #D6A64F; the opener matches size swatches. */
.hst-wrap,
.hst-modal,
.hst-content,
.hst-meta-info {
	box-sizing: border-box;
	font-family: inherit;
	color: #222;
	text-transform: none;
	letter-spacing: normal;
}
.hst-wrap *,
.hst-wrap *::before,
.hst-wrap *::after,
.hst-modal *,
.hst-modal *::before,
.hst-modal *::after {
	box-sizing: border-box;
}

/* Sit the button just after Tootekood / Kategooria in .product_meta.
   Desktop: a ~120px gap (starts mid-row in a typical summary column, not at the far edge).
   Mobile: keep space-between so it stays beside the meta and wraps if needed. */
.woocommerce div.product .product_meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}
.woocommerce div.product .product_meta .hst-meta-info {
	flex: 1 1 12em;
	min-width: 0;
}
.woocommerce div.product .product_meta .hst-root {
	flex: 0 0 auto;
	max-width: 100%;
}
@media (min-width: 401px) {
	.woocommerce div.product .product_meta {
		justify-content: flex-start;
		column-gap: 120px;
	}
	.woocommerce div.product .product_meta .hst-meta-info {
		flex: 0 1 auto;
	}
}
.woocommerce div.product .product_meta .hst-wrap {
	display: flex;
	align-items: center;
	margin: 0;
	max-width: 100%;
}

.hst-wrap {
	display: flex;
	align-items: center;
	margin: 0;
	max-width: 100%;
}

/* Swatch-like opener: white, thin grey border, 6px radius, dark text. No gold, no black ring. */
.woocommerce div.product .hst-open,
.woocommerce div.product button.hst-open,
button.hst-open {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	height: 42px;
	padding: 0 14px;
	margin: 0;
	border: 1px solid #b0b4bc !important;
	border-radius: 6px !important;
	background: #fff !important;
	background-image: none !important;
	color: #1f1f1f !important;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
	box-shadow: none !important;
	outline: none;
}
.woocommerce div.product .hst-open:hover,
.woocommerce div.product .hst-open:focus,
.woocommerce div.product button.hst-open:hover,
button.hst-open:hover,
button.hst-open:focus {
	background: #fff !important;
	border-color: #8e939c !important;
	color: #1f1f1f !important;
	box-shadow: none !important;
}
.woocommerce div.product .hst-open:focus-visible,
button.hst-open:focus-visible {
	outline: 2px solid #b0b4bc;
	outline-offset: 2px;
	box-shadow: none !important;
}

@media (max-width: 400px) {
	.woocommerce div.product .product_meta .hst-root {
		/* If the button wraps under the meta, keep it left-aligned with the text. */
		margin-left: 0;
	}
}

.hst-modal[hidden] {
	display: none !important;
}
.hst-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.hst-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.hst-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	max-height: min(92vh, 900px);
	background: #fff;
	color: #222;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(17, 17, 17, 0.28);
	overflow: hidden;
}

.hst-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	min-height: 56px;
	padding: 8px 12px 8px 20px;
	background: #1a1a1a;
	color: #fff;
	border-bottom: 3px solid #D6A64F;
}
.hst-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}
.hst-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.hst-close:hover {
	background: rgba(255, 255, 255, 0.12);
}
.hst-close:focus-visible {
	outline: 2px solid #D6A64F;
	outline-offset: 2px;
}

.hst-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px 20px 28px;
}

html.hst-lock,
html.hst-lock body {
	overflow: hidden !important;
}


/* Chart layout (faithful to Sagester WOMAN SIZE CHART image) */
.hst-content {
	font-family: inherit;
	color: #222;
}
.hst-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.hst-chart {
	display: flex;
	align-items: flex-start;
	gap: 28px 36px;
	max-width: 100%;
}
.hst-chart-fig {
	flex: 0 0 auto;
	width: min(220px, 28%);
	margin: 0;
}
.hst-chart-fig img {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
}

/* Official measuring drawings shown above a chart (Warrior goalie, etc.). */
.hst-measure {
	margin: 0 auto 20px;
	max-width: 320px;
	width: 100%;
}
.hst-measure img {
	display: block;
	width: 100%;
	height: auto;
}
.hst-measure figcaption {
	margin: 8px 0 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #444;
	text-align: left;
}
.hst-chart-main {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 4px;
}
.hst-chart-head {
	text-align: center;
	margin: 0 0 18px;
}
.hst-chart-title {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.25;
	color: #111;
}
.hst-chart-models {
	margin: 6px 0 0;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	color: #222;
}

.hst-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	margin: 0 0 22px;
}
.hst-scroll:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}

.hst-table {
	border-collapse: collapse;
	width: max-content;
	min-width: 100%;
	font-size: 13px;
	line-height: 1.3;
	color: #111;
}
.hst-table th,
.hst-table td {
	border: 1px solid #7a7a7a;
	padding: 6px 8px;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	font-weight: 400;
}
.hst-table thead th.hst-group {
	background: #757575;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 10px;
	border-color: #757575;
}
.hst-table thead th.hst-corner,
.hst-table thead tr:nth-child(2) th.hst-corner {
	border: 0;
	background: transparent;
	min-width: 8.5em;
}
.hst-table thead tr:nth-child(2) th {
	background: #fff;
	color: #111;
	font-weight: 600;
	border-color: #7a7a7a;
}
.hst-table tbody th[scope="row"] {
	text-align: left;
	font-weight: 400;
	background: #fff;
	padding-left: 8px;
	padding-right: 14px;
	white-space: nowrap;
	border-color: #7a7a7a;
}
.hst-table tbody tr:nth-child(odd) td {
	background: #cbd9d4;
}
.hst-table tbody tr:nth-child(even) td {
	background: #fff;
}
/* Visual break between LAPS and NAINE, like the two header bars in the source chart */
.hst-table th.hst-split,
.hst-table td.hst-split {
	border-right-width: 8px;
	border-right-color: #fff;
}

.hst-copy {
	max-width: 42em;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #444;
}
.hst-copy p {
	margin: 0 0 0.65em;
}
.hst-key-title {
	margin: 1.15em 0 0.4em;
	font-size: 0.92rem;
	font-weight: 400;
	text-decoration: underline;
	color: #222;
}
.hst-a {
	margin-top: 1.4em !important;
	color: #222;
}
.hst-legend {
	margin: 1.15em 0 0;
	padding-left: 1.2em;
	color: #222;
	font-size: 0.92rem;
	line-height: 1.45;
}
.hst-legend li {
	margin: 0 0 0.25em;
}

@media (max-width: 800px) {
	.hst-chart {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
	.hst-chart-fig {
		width: min(200px, 55%);
	}
	.hst-chart-main {
		width: 100%;
	}
	.hst-chart-title {
		font-size: 1.15rem;
		letter-spacing: 0.1em;
	}
	.hst-table tbody th[scope="row"] {
		position: sticky;
		left: 0;
		z-index: 1;
		background: #fff;
	}
}

@media (max-width: 600px) {
	.hst-modal {
		padding: 0;
		align-items: stretch;
	}
	.hst-dialog {
		width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
	}
	.hst-body {
		padding: 14px 12px 32px;
	}
	.hst-table {
		font-size: 12px;
	}
}

/* Section headings and notes used by skate / helmet / goalie charts */
.hst-table tbody tr.hst-subhead th {
	background: #757575;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	padding: 6px 8px;
	border-color: #757575;
}
.hst-copy h4,
.hst-section-title {
	margin: 1.15em 0 0.4em;
	font-size: 0.92rem;
	font-weight: 600;
	color: #222;
}
.hst-section-title {
	text-decoration: underline;
	font-weight: 600;
}
.hst-source {
	margin-top: 1.2em;
	font-size: 0.78rem;
	color: #888;
}
.hst-note {
	font-size: 0.88rem;
	color: #444;
}

/* Figure-skate comparison: missing size, wrapped EU header */
.hst-table td.hst-na {
	color: #666;
	font-style: italic;
}
/* Comparison table stays content-sized, not stretched to the dialog width. */
.hst-table.hst-table-cmp {
	width: max-content;
	min-width: 0;
	margin: 0 auto;
	table-layout: auto;
}
.hst-table-cmp th,
.hst-table-cmp td {
	width: 1%;
	padding: 5px 4px;
}
.hst-table-cmp thead th {
	white-space: normal;
	line-height: 1.2;
	letter-spacing: 0.02em;
	padding: 6px 4px;
	vertical-align: middle;
}
.hst-table-cmp thead th.hst-group {
	padding: 6px 4px;
	letter-spacing: 0.04em;
}
.hst-table thead th.hst-mm-col,
.hst-table thead th.hst-eu {
	white-space: normal;
	width: 1%;
	min-width: 0;
	padding: 6px 4px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	vertical-align: middle;
}
.hst-th-main {
	display: block;
	white-space: nowrap;
}
.hst-th-sub {
	display: block;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 0.85em;
	white-space: nowrap;
}

/* Comparison table: keep the foot-length column centred and striped; sticky on narrow screens. */
.hst-table tbody th.hst-mm {
	text-align: center;
	padding-left: 8px;
	padding-right: 8px;
	font-weight: 400;
}
.hst-table tbody tr:nth-child(odd) th.hst-mm {
	background: #cbd9d4;
}
.hst-table tbody tr:nth-child(even) th.hst-mm {
	background: #fff;
}
@media (max-width: 800px) {
	.hst-table tbody th.hst-mm {
		position: sticky;
		left: 0;
		z-index: 1;
	}
}

.hst-measure-lead {
	max-width: 42em;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #444;
	margin: 0 0 1em;
}
