.lsg-root {
	margin: .65rem 0 1rem;
}

.lsg-selected-size[hidden],
.lsg-selected-size__prompt[hidden],
.lsg-selected-size__content[hidden] {
	display: none !important;
}

.lsg-selected-size {
	background: #faf8f4;
	border: 1px solid #d7cbb8;
	color: inherit;
	margin: 0 0 .7rem;
	padding: .85rem 1rem;
}

.lsg-selected-size__prompt {
	color: #5d574e;
	font-size: .92rem;
	line-height: 1.45;
	margin: 0;
}

.lsg-selected-size__header {
	align-items: flex-start;
	display: flex;
	gap: .75rem;
	justify-content: space-between;
	margin-bottom: .75rem;
}

.lsg-selected-size__eyebrow {
	color: #655f56;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .07em;
	line-height: 1.3;
	margin: 0 0 .2rem;
	text-transform: uppercase;
}

.lsg-selected-size__title {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0;
}

.lsg-selected-size__source {
	border: 1px solid #d7cbb8;
	color: #5b554c;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .055em;
	line-height: 1.25;
	padding: .28rem .42rem;
	text-align: center;
	text-transform: uppercase;
}

.lsg-selected-size__values {
	display: grid;
	gap: .55rem .7rem;
	grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
	margin: 0;
}

.lsg-selected-size__values > div {
	background: #fff;
	border: 1px solid #e4ddd2;
	min-width: 0;
	padding: .55rem .65rem;
}

.lsg-selected-size__values dt {
	color: #655f56;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .055em;
	line-height: 1.3;
	margin: 0 0 .16rem;
	text-transform: uppercase;
}

.lsg-selected-size__values dd {
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	word-break: normal;
	overflow-wrap: anywhere;
}

.lsg-trigger {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.4;
	padding: .2rem 0;
}

.lsg-trigger:hover,
.lsg-trigger:focus-visible {
	opacity: .72;
}

.lsg-trigger__icon {
	display: inline-block;
	font-size: 1.05em;
	margin-right: .28rem;
}

body.lsg-modal-open {
	overflow: hidden;
}

.lsg-modal[hidden] {
	display: none;
}

.lsg-modal {
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.lsg-modal__backdrop {
	background: rgba(17, 17, 17, .58);
	inset: 0;
	position: absolute;
}

.lsg-modal__panel {
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
	color: #171717;
	display: flex;
	flex-direction: column;
	left: 50%;
	max-height: min(88vh, 900px);
	max-width: min(920px, calc(100vw - 2rem));
	outline: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
}

.lsg-modal__header {
	align-items: flex-start;
	border-bottom: 1px solid #e5e2dc;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 1.4rem 1.6rem 1.15rem;
}

.lsg-modal__header h2 {
	font-size: clamp(1.35rem, 3vw, 2rem);
	line-height: 1.15;
	margin: 0;
}

.lsg-eyebrow {
	color: #655f56;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0 0 .35rem;
	text-transform: uppercase;
}

.lsg-close {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	padding: .05rem .2rem;
}

.lsg-modal__body {
	overflow: auto;
	padding: 1.35rem 1.6rem 1.7rem;
}

.lsg-meta-line {
	align-items: center;
	color: #615c54;
	display: flex;
	flex-wrap: wrap;
	font-size: .9rem;
	gap: .55rem 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.lsg-units {
	background: #f2f0eb;
	border-radius: 999px;
	display: inline-flex;
	margin-bottom: 1rem;
	padding: .2rem;
}

.lsg-units button {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #3f3b35;
	cursor: pointer;
	font: inherit;
	font-size: .84rem;
	font-weight: 600;
	padding: .42rem .75rem;
}

.lsg-units button.is-active {
	background: #1d1b18;
	color: #fff;
}

.lsg-table-scroll {
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1rem;
	overflow-x: auto;
}

.lsg-table {
	border-collapse: collapse;
	font-size: .92rem;
	min-width: 560px;
	width: 100%;
}

.lsg-table th,
.lsg-table td {
	border-bottom: 1px solid #ddd9d1;
	padding: .72rem .8rem;
	text-align: left;
	vertical-align: middle;
}

.lsg-table thead th {
	background: #f5f3ef;
	color: #3e3a34;
	font-size: .78rem;
	letter-spacing: .035em;
	position: sticky;
	top: 0;
	text-transform: uppercase;
}

.lsg-table tbody th {
	font-weight: 700;
}

.lsg-table tr.lsg-row--selected th,
.lsg-table tr.lsg-row--selected td {
	background: #fff4d7;
}

.lsg-callout {
	background: #f7f5f0;
	border-left: 3px solid #b5945f;
	margin: 1rem 0;
	padding: .7rem .9rem;
}

.lsg-callout p {
	margin: .2rem 0;
}

.lsg-copy {
	color: #4d4942;
}

.lsg-how-to {
	align-items: start;
	border-top: 1px solid #e5e2dc;
	display: grid;
	gap: 1.4rem;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
	margin-top: 1.4rem;
	padding-top: 1.25rem;
}

.lsg-how-to h3 {
	font-size: 1.1rem;
	margin: 0 0 .6rem;
}

.lsg-how-to img {
	height: auto;
	max-width: 100%;
}

.lsg-help {
	font-weight: 600;
	margin: 1.2rem 0 0;
}

@media (max-width: 640px) {
	.lsg-selected-size {
		padding: .8rem;
	}

	.lsg-selected-size__header {
		align-items: flex-start;
		flex-direction: column;
		gap: .45rem;
	}

	.lsg-selected-size__values {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lsg-modal__panel {
		border-radius: 16px 16px 0 0;
		bottom: 0;
		left: 0;
		max-height: 92vh;
		max-width: none;
		top: auto;
		transform: none;
	}

	.lsg-modal__header,
	.lsg-modal__body {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.lsg-how-to {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 380px) {
	.lsg-selected-size__values {
		grid-template-columns: 1fr;
	}
}
