/**
 * Meowtrick Custom — content of the WoodMart size guide popup. One chart per
 * garment in an accordion (same rows and +/- marks as the FAQ in the
 * description), tables in the look of WoodMart's own ".wd-sizeguide-table".
 * Colors, radii and fonts come from the theme variables. The "Size guide"
 * link itself is WoodMart's, in its default position.
 */
.wd-sizeguide-wrap {
	--wd-popup-width: 640px;
}

.wd-sizeguide .wd-sizeguide-content:last-child {
	margin-bottom: 0;
}

.wd-sizeguide .mt-sg {
	--mt-ink: var(--wd-primary-color, #1c1c1c);
	--mt-line: var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105));
}

.wd-sizeguide .mt-sg p,
.wd-sizeguide .mt-sg figure {
	margin: 0;
}

/* Charts accordion ------------------------------------------------------------ */
.wd-sizeguide .mt-sg__chart {
	border-top: 1px solid var(--mt-line);
}

.wd-sizeguide .mt-sg__chart:first-child {
	border-top: 4px solid var(--mt-ink);
}

.wd-sizeguide .mt-sg__chart:last-child {
	border-bottom: 1px solid var(--mt-line);
}

.wd-sizeguide .mt-sg__chart > summary {
	position: relative;
	display: block;
	padding: 15px 40px 15px 0;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
	cursor: pointer;
	list-style: none;
}

.wd-sizeguide .mt-sg__chart > summary::-webkit-details-marker {
	display: none;
}

.wd-sizeguide .mt-sg__chart > summary::before,
.wd-sizeguide .mt-sg__chart > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 4px;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	background: var(--mt-ink);
	transition: transform 0.25s ease;
}

.wd-sizeguide .mt-sg__chart > summary::after {
	transform: rotate(90deg);
}

.wd-sizeguide .mt-sg__chart[open] > summary::after {
	transform: rotate(0deg);
}

.wd-sizeguide .mt-sg__chart > summary:focus-visible {
	outline: 2px solid var(--mt-ink);
	outline-offset: 2px;
}

.wd-sizeguide .mt-sg__table table {
	width: 100%;
	margin: 0;
	border: 0;
	table-layout: fixed;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.wd-sizeguide .mt-sg__table th,
.wd-sizeguide .mt-sg__table td {
	padding: 10px;
	border: 0;
	border-bottom: 1px solid var(--mt-line);
	text-align: center;
	transition: all 0.25s ease;
}

.wd-sizeguide .mt-sg__table th {
	border-bottom: none;
	background-color: var(--bgcolor-gray-100, #f7f7f7);
	color: var(--wd-title-color, #242424);
	text-transform: uppercase;
	font-size: 14px;
	font-weight: var(--wd-title-font-weight, 600);
	font-style: var(--wd-title-font-style, normal);
	font-family: var(--wd-title-font, inherit);
}

.wd-sizeguide .mt-sg__table td:first-child {
	font-weight: 600;
	color: var(--wd-title-color, #242424);
}

.wd-sizeguide .mt-sg__table tbody tr:last-child td {
	border-bottom: 0;
}

.wd-sizeguide .mt-sg__table tbody tr:hover {
	background-color: var(--bgcolor-gray-200, #f7f7f7);
}

.wd-sizeguide .mt-sg__table tbody tr.mt-sg-current td {
	background-color: var(--mt-ink);
	color: var(--color-white, #fff);
}

.wd-sizeguide .mt-sg p.mt-sg__note {
	padding: 12px 0 18px;
	font-size: 14px;
	text-align: center;
	color: var(--color-gray-500, #767676);
}

/* How to measure ---------------------------------------------------------------- */
.wd-sizeguide .mt-sg__how {
	margin-top: 30px;
}

.wd-sizeguide .mt-sg__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
}

.wd-sizeguide .mt-sg__steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 18px;
}

.wd-sizeguide .mt-sg__step {
	padding-top: 12px;
	border-top: 1px solid var(--mt-line);
	font-size: 15px;
	line-height: 1.55;
}

.wd-sizeguide .mt-sg__step strong {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wd-title-color, #242424);
}

.wd-sizeguide .mt-sg p.mt-sg__tip {
	margin-top: 20px;
	padding: 15px 18px;
	background-color: var(--bgcolor-gray-100, #f7f7f7);
	border-radius: var(--wd-brd-radius, 0);
	font-size: 15px;
	line-height: 1.55;
}

.wd-sizeguide .mt-sg__tip strong {
	color: var(--wd-title-color, #242424);
}

@media (max-width: 576px) {
	.wd-sizeguide .mt-sg__steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
	}
}
