body.indydtf-size-guide-is-open {
	overflow: hidden;
}

body.single-product.woocommerce div.product .indydtf-size-guide,
body.single-product.woocommerce-page div.product .indydtf-size-guide {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	margin: -6px 0 14px;
}

body.single-product.woocommerce div.product .indydtf-size-matrix__actions .indydtf-size-guide,
body.single-product.woocommerce-page div.product .indydtf-size-matrix__actions .indydtf-size-guide {
	width: auto;
	margin: 0;
}

body.single-product.woocommerce div.product .indydtf-size-guide__trigger,
body.single-product.woocommerce-page div.product .indydtf-size-guide__trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--indy-space-1);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-primary);
	font-size: 0.84rem;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.single-product.woocommerce div.product .indydtf-size-guide__trigger-icon,
body.single-product.woocommerce-page div.product .indydtf-size-guide__trigger-icon {
	display: inline-flex;
	width: 1em;
	height: 1em;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

body.single-product.woocommerce div.product .indydtf-size-guide__trigger-icon svg,
body.single-product.woocommerce-page div.product .indydtf-size-guide__trigger-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

body.single-product.woocommerce div.product .indydtf-size-guide__trigger:focus-visible,
body.single-product.woocommerce-page div.product .indydtf-size-guide__trigger:focus-visible,
body.single-product.woocommerce div.product .indydtf-size-guide__close:focus-visible,
body.single-product.woocommerce-page div.product .indydtf-size-guide__close:focus-visible,
body.single-product.woocommerce div.product .indydtf-size-guide__tab:focus-visible,
body.single-product.woocommerce-page div.product .indydtf-size-guide__tab:focus-visible,
body.single-product.woocommerce div.product .indydtf-size-guide__unit-button:focus-visible,
body.single-product.woocommerce-page div.product .indydtf-size-guide__unit-button:focus-visible,
body.single-product.woocommerce div.product .indydtf-size-guide__table-scroll:focus-visible,
body.single-product.woocommerce-page div.product .indydtf-size-guide__table-scroll:focus-visible {
	outline: none;
	box-shadow: var(--indy-button-focus-ring);
}

.indydtf-size-guide__modal[hidden] {
	display: none;
}

.indydtf-size-guide__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: var(--indy-space-6);
}

.indydtf-size-guide__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.58);
}

.indydtf-size-guide__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	box-sizing: border-box;
	width: min(920px, 100%);
	min-width: 0;
	max-height: min(760px, calc(100vh - 48px));
	overflow: hidden;
	border: 1px solid var(--indy-color-border);
	border-radius: var(--indy-radius-md);
	background: var(--indy-color-surface);
	box-shadow: 0 24px 64px rgba(15, 45, 104, 0.22);
	color: var(--indy-color-ink);
}

.indydtf-size-guide__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: var(--indy-space-4);
	padding: 22px var(--indy-space-6) var(--indy-space-4);
	border-bottom: 1px solid var(--indy-color-border);
	background: var(--indy-color-surface);
}

.indydtf-size-guide__heading {
	display: grid;
	min-width: 0;
	gap: var(--indy-space-1);
}

.indydtf-size-guide__eyebrow {
	margin: 0;
	color: var(--indy-color-muted);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.indydtf-size-guide__heading h2 {
	margin: 0;
	color: var(--indy-color-ink);
	font-size: 1.28rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.indydtf-size-guide__close.indy-icon-button {
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	border-radius: 6px;
	font-size: 1.35rem;
}

.indydtf-size-guide__body {
	display: grid;
	min-width: 0;
	min-height: 0;
	gap: 14px;
	overflow: auto;
	padding: 18px 24px 24px;
}

.indydtf-size-guide__tabs {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid var(--indy-color-border);
	border-radius: var(--indy-radius-md);
	background: var(--indy-color-surface-soft);
}

.indydtf-size-guide__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-right: 1px solid var(--indy-color-border);
	background: transparent;
	color: var(--indy-color-muted);
	font-size: 0.9rem;
	font-weight: 850;
	line-height: 1.2;
	cursor: pointer;
}

.indydtf-size-guide__tab:last-child {
	border-right: 0;
}

.indydtf-size-guide__tab.is-active {
	background: var(--indy-color-surface);
	color: var(--indy-color-ink);
	box-shadow: inset 0 -3px 0 var(--color-primary);
}

.indydtf-size-guide__panel {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.indydtf-size-guide__panel[hidden] {
	display: none;
}

.indydtf-size-guide__content {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.indydtf-size-guide__unit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--indy-space-3);
	min-width: 0;
}

.indydtf-size-guide__note,
.indydtf-size-guide__empty {
	margin: 0;
	color: var(--indy-color-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.indydtf-size-guide__empty {
	padding: 18px;
	border: 1px solid var(--indy-color-border);
	border-radius: var(--indy-radius-md);
	background: var(--indy-color-surface-soft);
	color: var(--indy-color-muted);
}

.indydtf-size-guide__unit-toggle {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid var(--indy-color-border);
	border-radius: var(--indy-radius-md);
	background: var(--indy-color-surface-soft);
	white-space: nowrap;
}

.indydtf-size-guide__unit-label {
	padding: 0 var(--indy-space-2) 0 var(--indy-space-3);
	color: var(--indy-color-muted);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
}

.indydtf-size-guide__unit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 var(--indy-space-3);
	border: 0;
	border-left: 1px solid var(--indy-color-border);
	background: transparent;
	color: var(--indy-color-muted);
	font-size: 0.82rem;
	font-weight: 850;
	line-height: 1.2;
	cursor: pointer;
}

.indydtf-size-guide__unit-button.is-active {
	background: var(--indy-color-surface);
	color: var(--indy-color-ink);
	box-shadow: inset 0 -3px 0 var(--color-primary);
}

.indydtf-size-guide__table-scroll {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	border: 1px solid var(--indy-color-border);
	border-radius: var(--indy-radius-md);
	background: var(--indy-color-surface);
	scrollbar-color: var(--indy-color-muted) var(--indy-color-subtle);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.indydtf-size-guide__table-scroll::-webkit-scrollbar {
	height: 8px;
}

.indydtf-size-guide__table-scroll::-webkit-scrollbar-track {
	background: var(--indy-color-subtle);
}

.indydtf-size-guide__table-scroll::-webkit-scrollbar-thumb {
	border-radius: var(--indy-radius-pill);
	background: var(--indy-color-muted);
}

.indydtf-size-guide__table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: var(--indy-color-surface);
	color: var(--indy-color-ink);
	font-size: 0.92rem;
	line-height: 1.35;
}

.indydtf-size-guide__table th,
.indydtf-size-guide__table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--indy-color-border);
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

.indydtf-size-guide__table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--indy-color-surface-soft);
	color: var(--indy-color-ink);
	font-size: 0.84rem;
	font-weight: 900;
}

.indydtf-size-guide__table th:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	min-width: 180px;
	background: var(--indy-color-surface);
	text-align: left;
	white-space: normal;
}

.indydtf-size-guide__table thead th:first-child {
	z-index: 3;
	background: var(--indy-color-surface-soft);
}

.indydtf-size-guide__table tbody th {
	color: var(--indy-color-ink);
	font-weight: 850;
}

.indydtf-size-guide__table tbody td {
	color: var(--indy-color-muted);
	font-weight: 700;
}

.indydtf-size-guide__table tbody tr:last-child th,
.indydtf-size-guide__table tbody tr:last-child td {
	border-bottom: 0;
}

.indydtf-size-guide__how {
	display: grid;
	grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
	gap: 22px;
	align-items: start;
}

.indydtf-size-guide__how-media {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--indy-color-border);
	border-radius: var(--indy-radius-md);
	background: var(--indy-color-surface-soft);
}

.indydtf-size-guide__how-media img {
	display: block;
	width: 100%;
	height: auto;
}

.indydtf-size-guide__how-copy {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.indydtf-size-guide__how-intro {
	margin: 0;
	color: var(--indy-color-muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

.indydtf-size-guide__how-list {
	display: grid;
	gap: 12px;
}

.indydtf-size-guide__how-item {
	display: grid;
	gap: 4px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--indy-color-border);
}

.indydtf-size-guide__how-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.indydtf-size-guide__how-item h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--indy-color-ink);
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.25;
}

.indydtf-measurement-marker {
	display: inline-grid;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	place-items: center;
	border-radius: 50%;
	background: #3E68B8;
	color: var(--indy-color-surface);
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1;
	text-align: center;
}

.indydtf-measurement-marker--a,
.indydtf-measurement-marker--b,
.indydtf-measurement-marker--c {
	background: #3E68B8;
}

.indydtf-size-guide__how-item p {
	margin: 0;
	color: var(--indy-color-muted);
	font-size: 0.91rem;
	line-height: 1.45;
}

@media (max-width: 767px) {
	body.single-product.woocommerce div.product .indydtf-size-guide,
	body.single-product.woocommerce-page div.product .indydtf-size-guide {
		justify-content: flex-start;
		margin: calc(-1 * var(--indy-space-1)) 0 var(--indy-space-3);
	}

	body.single-product.woocommerce div.product .indydtf-size-matrix__actions .indydtf-size-guide,
	body.single-product.woocommerce-page div.product .indydtf-size-matrix__actions .indydtf-size-guide {
		margin: 0;
	}

	.indydtf-size-guide__modal {
		place-items: center;
		padding: var(--indy-space-4);
	}

	.indydtf-size-guide__dialog {
		width: min(640px, calc(100vw - (var(--indy-space-4) * 2)));
		max-width: calc(100vw - (var(--indy-space-4) * 2));
		max-height: calc(100vh - (var(--indy-space-4) * 2));
		border: 1px solid var(--indy-color-border);
		border-radius: var(--indy-radius-md);
	}

	@supports (height: 100dvh) {
		.indydtf-size-guide__dialog {
			max-height: calc(100dvh - (var(--indy-space-4) * 2));
		}
	}

	.indydtf-size-guide__header {
		padding: 18px 18px 14px;
	}

	.indydtf-size-guide__body {
		padding: 16px 18px 20px;
	}

	.indydtf-size-guide__tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.indydtf-size-guide__tab {
		min-width: 0;
		padding: 0 10px;
		text-align: center;
	}

	.indydtf-size-guide__unit-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.indydtf-size-guide__unit-toggle {
		width: 100%;
	}

	.indydtf-size-guide__unit-button {
		flex: 1 1 0;
	}

	.indydtf-size-guide__how {
		grid-template-columns: 1fr;
		gap: var(--indy-space-4);
	}

	.indydtf-size-guide__heading h2 {
		font-size: 1.12rem;
	}

	.indydtf-size-guide__table {
		width: max-content;
		min-width: 100%;
		font-size: 0.88rem;
	}

	.indydtf-size-guide__table th,
	.indydtf-size-guide__table td {
		padding: 10px 8px;
	}

	.indydtf-size-guide__table thead th:not(:first-child),
	.indydtf-size-guide__table tbody td {
		width: 58px;
		min-width: 58px;
		max-width: 58px;
	}

	.indydtf-size-guide__table th:first-child {
		width: 148px;
		min-width: 148px;
		max-width: 148px;
		padding-right: 10px;
		padding-left: 10px;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 390px) {
	.indydtf-size-guide__header {
		grid-template-columns: minmax(0, 1fr) 34px;
		gap: 10px;
	}

	.indydtf-size-guide__close.indy-icon-button {
		width: 34px;
		height: 34px;
		min-width: 34px;
		min-height: 34px;
	}

	.indydtf-size-guide__tab {
		font-size: 0.84rem;
	}

	.indydtf-size-guide__table thead th:not(:first-child),
	.indydtf-size-guide__table tbody td {
		width: 56px;
		min-width: 56px;
		max-width: 56px;
	}

	.indydtf-size-guide__table th:first-child {
		width: 142px;
		min-width: 142px;
		max-width: 142px;
	}
}
