/* =============================================================================
   Ecoleas size chart (the "Size guide" dialog), shared by Linen and Party Wear
   product pages. Generated from the size-chart rules in linen.css, in the same
   order, so the dialog looks the same everywhere. Used variables: --linen-ink, --linen-sans, --linen-serif.
   ============================================================================= */

/* Off the Linen pages the linen variables are not set; give the dialog its own. */
.ec-size-chart {
	--linen-ink: #34342e;
	--linen-sans: var(--ec-font-text, 'Cillax', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
	--linen-serif: var(--ec-font-text, 'Cillax', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.ec-size-chart {
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 18px;
	color: #231d19;
	background: #fffdf9;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.ec-size-chart::backdrop { background: rgba(20, 16, 13, .55); }

html.ec-size-chart-open { overflow: hidden; }

.ec-size-chart__inner { position: relative; padding: 34px 34px 30px; }

.ec-size-chart__close {
	position: absolute; top: 14px; right: 14px;
	display: grid; width: 42px; height: 42px; place-items: center;
	padding: 0; border: 1px solid rgba(35, 29, 25, .16); border-radius: 50% !important;
	color: #231d19; background: transparent; font: 300 26px / 1 var(--linen-sans, sans-serif); cursor: pointer;
}

.ec-size-chart__close:hover, .ec-size-chart__close:focus-visible { background: #231d19; color: #fff; }

.ec-size-chart__kicker {
	margin: 0 0 8px;
	color: #9a7a5c;
	font: 600 11px / 1.2 var(--linen-sans, sans-serif);
	letter-spacing: .22em;
	text-transform: uppercase;
}

.ec-size-chart h2 {
	margin: 0;
	font: 400 clamp(26px, 4vw, 34px) / 1.05 var(--linen-serif, serif);
	letter-spacing: -.02em;
}

.ec-size-chart__sub { margin: 8px 0 0; color: #7b7066; font: 400 14px / 1.4 var(--linen-sans, sans-serif); }

.ec-size-chart__table-wrap {
	margin-top: 22px;
	overflow-x: auto;
	border: 1px solid rgba(35, 29, 25, .14);
	border-radius: 12px;
}

.ec-size-chart__table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-family: var(--linen-sans, sans-serif);
	text-align: center;
}

.ec-size-chart__table thead th {
	padding: 14px 10px;
	color: #fff;
	background: #231d19;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.3;
}

.ec-size-chart__table thead th small {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, .6);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: none;
}

.ec-size-chart__table tbody th,
.ec-size-chart__table td {
	padding: 12px 10px;
	border-top: 1px solid rgba(35, 29, 25, .1);
	font-size: 17px;
	font-weight: 500;
}

.ec-size-chart__table tbody th { font-size: 18px; }

.ec-size-chart__table td small {
	display: block;
	margin-top: 2px;
	color: #7b7066;
	font-size: 11px;
	font-weight: 400;
}

.ec-size-chart__table tbody tr:nth-child(even) > * { background: #faf6ef; }

.ec-size-chart__measure {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin: 22px 0 0;
}

.ec-size-chart__measure div { display: flex; gap: 10px; }

.ec-size-chart__measure dt { flex: 0 0 auto; font: 600 13px / 1.5 var(--linen-sans, sans-serif); }

.ec-size-chart__measure dd { margin: 0; color: #7b7066; font: 400 13px / 1.5 var(--linen-sans, sans-serif); }

.ec-size-chart__fit {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: #efe7da;
	font: 400 13.5px / 1.5 var(--linen-sans, sans-serif);
}

.ec-size-chart__open {
	padding: 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0 !important;
	color: var(--linen-ink, #231d19); background: none; font: 500 11px / 1.6 var(--linen-sans, sans-serif);
	letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}

@media (max-width: 600px) {
	.ec-size-chart {
		width: 100vw;
		max-width: 100vw;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
	}
	.ec-size-chart__inner { padding: 26px 16px 22px; }
	.ec-size-chart__table { min-width: 0; }
	.ec-size-chart__table thead th { padding: 10px 4px; font-size: 9.5px; letter-spacing: .06em; }
	.ec-size-chart__table thead th small { display: none; }
	.ec-size-chart__table tbody th, .ec-size-chart__table td { padding: 10px 4px; font-size: 15px; }
	.ec-size-chart__table td small { font-size: 10px; }
	.ec-size-chart__measure { grid-template-columns: 1fr; }
}

.ec-size-chart__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.ec-size-chart__bar .ec-size-chart__sub { margin: 0; }

.ec-size-chart__units {
	display: inline-flex;
	padding: 3px;
	border: 1px solid rgba(35, 29, 25, .16);
	border-radius: 999px;
}

.ec-size-chart__units button {
	min-width: 76px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px !important;
	color: #231d19; background: transparent; font: 600 12px / 1 var(--linen-sans, sans-serif); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}

.ec-size-chart__units button[aria-pressed="true"] { color: #fff; background: #231d19; }

.ec-size-chart[data-unit="in"] .ec-size-chart__cm,
.ec-size-chart[data-unit="cm"] .ec-size-chart__in { display: none; }

.ec-size-chart__table tbody th small {
	display: block;
	margin-top: 2px;
	color: #7b7066;
	font-size: 11px;
	font-weight: 400;
}

.ec-size-chart__table td { white-space: nowrap; }

@media (max-width: 600px) {
	.ec-size-chart__table tbody th, .ec-size-chart__table td { font-size: 13.5px; }
	.ec-size-chart__table thead th { font-size: 9px; }
}

.ec-size-chart { scrollbar-width: none; -ms-overflow-style: none; }

.ec-size-chart::-webkit-scrollbar { display: none; width: 0; height: 0; }

.ec-size-chart__table-wrap { scrollbar-width: none; }

.ec-size-chart__table-wrap::-webkit-scrollbar { display: none; }

.ec-size-chart__inner { padding: 28px 30px 24px; }

.ec-size-chart__table-wrap { margin-top: 16px; }

.ec-size-chart__table tbody th,
.ec-size-chart__table td { padding-block: 9px; }

.ec-size-chart__measure { gap: 6px 24px; margin-top: 16px; }

.ec-size-chart__fit { margin-top: 14px; padding: 11px 14px; }

.ec-size-chart {
	width: min(680px, calc(100vw - 32px));
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.ec-size-chart__inner { padding: 30px 32px 26px; }

.ec-size-chart__close {
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: 0;
	font-size: 24px;
	color: #7b7066;
}

.ec-size-chart__close:hover, .ec-size-chart__close:focus-visible { color: #231d19; background: #f3eee6; }

.ec-size-chart h2 { font-size: 26px; }

.ec-size-chart__bar { margin-top: 6px; }

.ec-size-chart__sub { font-size: 13px; }

.ec-size-chart__units { padding: 0; border: 0; gap: 4px; }

.ec-size-chart__units button {
	min-width: 0;
	min-height: 30px;
	padding: 0 10px;
	color: #9b9087;
	background: none !important;
	font-size: 12px;
	letter-spacing: .08em;
}

.ec-size-chart__units button + button {
	border-left: 1px solid rgba(35, 29, 25, .18) !important;
	border-radius: 0 !important;
}

.ec-size-chart__units button[aria-pressed="true"] {
	color: #231d19;
	text-decoration: underline;
	text-underline-offset: 6px;
}

.ec-size-chart__table-wrap { margin-top: 14px; border: 0; border-radius: 0; }

.ec-size-chart__table thead th {
	padding: 0 8px 12px;
	color: #9b9087;
	background: none;
	border-bottom: 1px solid #231d19;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .1em;
}

.ec-size-chart__table thead th small { color: #b3a99f; font-size: 10px; letter-spacing: .02em; }

.ec-size-chart__table thead th:first-child,
.ec-size-chart__table tbody th { text-align: left; padding-left: 0; }

.ec-size-chart__table tbody tr:nth-child(even) > * { background: none; }

.ec-size-chart__table tbody th,
.ec-size-chart__table td {
	padding-block: 14px;
	border-top: 0;
	border-bottom: 1px solid rgba(35, 29, 25, .1);
	font-size: 16px;
	font-weight: 400;
}

.ec-size-chart__table tbody th { font-weight: 600; }

.ec-size-chart__table tbody th small { display: inline; margin: 0 0 0 5px; font-size: 12px; }

.ec-size-chart__table tbody tr:hover > * { background: #faf6ef; }

.ec-size-chart__how { margin-top: 18px; }

.ec-size-chart__how summary {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: #231d19;
	font: 500 12px / 1.6 var(--linen-sans, sans-serif);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.ec-size-chart__how summary::-webkit-details-marker { display: none; }

.ec-size-chart__how summary::after { content: '+'; font-size: 15px; }

.ec-size-chart__how[open] summary::after { content: '\2212'; }

.ec-size-chart__how .ec-size-chart__measure { margin-top: 12px; }

.ec-size-chart__fit {
	margin-top: 14px;
	padding: 0;
	background: none;
	color: #9b9087;
	font-size: 12.5px;
}

@media (max-width: 600px) {
	.ec-size-chart { width: 100vw; border-radius: 16px 16px 0 0; }
	.ec-size-chart__inner { padding: 24px 16px 20px; }
	.ec-size-chart__table thead th { padding: 0 3px 10px; font-size: 9px; letter-spacing: .04em; }
	.ec-size-chart__table tbody th, .ec-size-chart__table td { padding: 12px 3px; font-size: 13.5px; }
	.ec-size-chart__table tbody th small { display: block; margin: 2px 0 0; font-size: 10.5px; }
}

.ec-size-chart { width: min(900px, calc(100vw - 32px)); }

.ec-size-chart__body {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	align-items: start;
	gap: 26px;
	margin-top: 16px;
}

.ec-size-chart__body .ec-size-chart__table-wrap { margin-top: 0; }

.ec-size-chart__figure { margin: 0; }

.ec-shirt {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.ec-shirt__garment {
	fill: none;
	stroke: #b9aea3;
	stroke-width: 1.3;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.ec-shirt__garment circle { fill: #b9aea3; stroke: none; }

.ec-shirt__m {
	fill: none;
	stroke: #b5563a;
	stroke-width: 1.6;
	stroke-linecap: round;
	opacity: .8;
	transition: opacity .2s ease, stroke-width .2s ease;
}

.ec-shirt__m circle { fill: #b5563a; stroke: none; }

.ec-size-chart.has-measure .ec-shirt__m { opacity: .16; }

.ec-size-chart.has-measure .ec-shirt__m.is-active { opacity: 1; stroke-width: 2.6; }

.ec-size-chart__caption {
	min-height: 38px;
	margin-top: 10px;
	color: #7b7066;
	font: 400 12.5px / 1.5 var(--linen-sans, sans-serif);
	text-align: center;
}

.ec-size-chart__caption strong { color: #231d19; font-weight: 600; }

.ec-size-chart__table [data-measure] { cursor: pointer; transition: background-color .15s ease, color .15s ease; }

.ec-size-chart__table thead th[data-measure]:focus-visible { outline: 2px solid #231d19; outline-offset: -2px; }

.ec-size-chart__table thead th.is-active { color: #b5563a; }

.ec-size-chart__table td.is-active { background: #f7efe5 !important; color: #231d19; font-weight: 500; }

.ec-size-chart__table tbody tr:hover > * { background: none; }

@media (max-width: 760px) {
	.ec-size-chart__body { grid-template-columns: 1fr; gap: 10px; }
	.ec-size-chart__figure {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
		align-items: center;
		gap: 14px;
	}
	.ec-size-chart__caption { margin-top: 0; text-align: left; }
}

.ec-size-chart__body { grid-template-columns: 230px minmax(0, 1fr); gap: 30px; }

.ec-shirt__garment {
	fill: #fbf7f1;
	stroke: #6f655c;
	stroke-width: 1.15;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.ec-shirt__garment .ec-shirt__seam { fill: none; stroke: #b9ada1; stroke-width: .9; }

.ec-shirt__buttons circle { fill: #fbf7f1; stroke: #6f655c; stroke-width: .9; }

.ec-shirt__m { stroke: #b5563a; stroke-width: 1.5; opacity: .85; }

.ec-shirt__m circle { fill: #b5563a; }

.ec-size-chart.has-measure .ec-shirt__m { opacity: .14; }

.ec-size-chart.has-measure .ec-shirt__m.is-active { opacity: 1; stroke-width: 2.4; }

.ec-size-chart__mobile { display: none; }

.ec-size-chart > .ec-size-chart__inner > .ec-size-chart__fit { margin-top: 12px; }

@media (max-width: 760px) {
	.ec-size-chart__inner { padding: 22px 18px 20px; }
	.ec-size-chart h2 { font-size: 22px; padding-right: 40px; }
	.ec-size-chart__body { grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
	.ec-size-chart__table-wrap { display: none; }
	.ec-size-chart__mobile { display: block; }
	.ec-size-chart__figure {
		display: grid;
		grid-template-columns: 132px minmax(0, 1fr);
		align-items: center;
		gap: 14px;
		padding: 12px 14px;
		border-radius: 12px;
		background: #f7f1e8;
	}
	.ec-size-chart__caption {
		min-height: 0;
		margin: 0;
		font-size: 13px;
		text-align: left;
	}
	.ec-size-chart__sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.ec-size-chart__sizes button {
		display: grid; justify-items: center; gap: 1px; min-height: 52px; padding: 6px 0;
		border: 1px solid rgba(35, 29, 25, .16); border-radius: 10px !important;
		color: #231d19; background: #fff; font: 600 15px / 1.1 var(--linen-sans, sans-serif); cursor: pointer;
	}
	.ec-size-chart__sizes button small { color: #9b9087; font-size: 11px; font-weight: 400; }
	.ec-size-chart__sizes button[aria-pressed="true"] { border-color: #231d19; color: #fff; background: #231d19; }
	.ec-size-chart__sizes button[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }
	.ec-size-chart__list { margin: 12px 0 0; padding: 0; list-style: none; }
	.ec-size-chart__list[hidden] { display: none; }
	.ec-size-chart__list li + li { border-top: 1px solid rgba(35, 29, 25, .1); }
	.ec-size-chart__list button {
		display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
		min-height: 50px; padding: 0 6px; border: 0; border-radius: 8px !important;
		color: #231d19; background: none; font: 400 15px / 1.3 var(--linen-sans, sans-serif); text-align: left; cursor: pointer;
	}
	.ec-size-chart__list button small { color: #9b9087; font-size: 12px; }
	.ec-size-chart__list button strong { font-size: 16px; font-weight: 600; white-space: nowrap; }
	.ec-size-chart__list button.is-active { background: #f7efe5; }
	.ec-size-chart__list button.is-active span { color: #b5563a; }
	.ec-size-chart > .ec-size-chart__inner > .ec-size-chart__fit { margin-top: 10px; font-size: 12px; }
}

.ec-shirt__garment {
	fill: #fbf7f1;
	stroke: #7a6f65;
	stroke-width: 1.1;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.ec-shirt__seams {
	fill: none;
	stroke: #c8bdb2;
	stroke-width: .9;
	stroke-linecap: round;
}

.ec-shirt__buttons circle { fill: #fff; stroke: #7a6f65; stroke-width: .9; }

.ec-shirt__m {
	fill: none;
	stroke: #b5563a;
	stroke-width: 1.4;
	opacity: .55;
}

.ec-shirt__m circle { fill: #b5563a; stroke: none; }

.ec-shirt__m .ec-shirt__guide { stroke-width: 1; stroke-dasharray: 2 3; }

.ec-size-chart.has-measure .ec-shirt__m { opacity: .1; }

.ec-size-chart.has-measure .ec-shirt__m.is-active { opacity: 1; stroke-width: 2.2; }

.ec-size-chart__tip { display: none; }

@media (max-width: 760px) {
	.ec-size-chart {
		width: 100%;
		max-width: 100%;
		max-height: 90vh;
		max-height: 90svh;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
	}
	.ec-size-chart__inner { padding-top: 26px; }
	.ec-size-chart__inner::before {
		position: absolute;
		top: 9px;
		left: 50%;
		width: 38px;
		height: 4px;
		content: '';
		border-radius: 999px;
		background: rgba(35, 29, 25, .18);
		transform: translateX(-50%);
	}
	.ec-size-chart:not(.has-measure) .ec-size-chart__caption { display: none; }
	.ec-size-chart:not(.has-measure) .ec-size-chart__tip {
		display: flex;
		gap: 9px;
		align-items: flex-start;
		margin: 0;
		color: #7b7066;
		font: 400 13px / 1.45 var(--linen-sans, sans-serif);
	}
	.ec-size-chart__tip svg {
		flex: 0 0 18px;
		width: 18px;
		height: 18px;
		margin-top: 1px;
		fill: none;
		stroke: #b5563a;
		stroke-width: 1.5;
		stroke-linecap: round;
	}
	.ec-size-chart__tip svg circle { fill: #b5563a; stroke: none; }
	.ec-size-chart__tip svg path { animation: ec-size-tap 2.4s ease-in-out infinite; }
	.ec-size-chart__label {
		text-decoration: underline dotted rgba(35, 29, 25, .32);
		text-underline-offset: 4px;
	}
	.ec-size-chart__list button.is-active .ec-size-chart__label { text-decoration-color: #b5563a; }
	.ec-size-chart__figure { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.ec-size-chart__tip svg path { animation: none; opacity: .55; }
}
