/*
 * Mind Kit — guia de tamanhos.
 * Janela lateral (entra pela direita, como na loja atual). Valores visuais em
 * variáveis `--mc-sg-*`, redefiníveis pelo modelo.
 */
.mc-size-guide {
	margin: 0 0 15px;
	line-height: 1.5;
}

.mc-size-guide__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.mc-size-guide__label:focus-visible,
.mc-size-guide__close:focus-visible {
	outline: 2px solid #2491ff;
	outline-offset: 2px;
}

.mc-size-guide__icon {
	display: inline-flex;
	pointer-events: none;
}

.mc-size-guide__icon svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------ Janela */
.mc-size-guide__dialog {
	--mc-sg-bg: #fff;
	--mc-sg-text: #111;
	--mc-sg-border: #e2e2e2;
	--mc-sg-backdrop: rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--mc-sg-bg);
	color: var(--mc-sg-text);
	overflow: hidden;
}

@media (min-width: 768px) {
	.mc-size-guide__dialog {
		width: 850px;
	}
}

.mc-size-guide__dialog[open] {
	display: flex;
	flex-direction: column;
	animation: mc-sg-in 0.35s ease;
}

.mc-size-guide__dialog::backdrop {
	background: var(--mc-sg-backdrop);
	animation: mc-sg-fade 0.2s ease;
}

.mc-size-guide__header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	height: 60px;
	padding: 0 40px;
	border-bottom: 1px solid var(--mc-sg-border);
	background: var(--mc-sg-bg);
}

.mc-size-guide__title {
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: clamp(1.125rem, 0.87rem + 0.81vw, 1.375rem);
	font-weight: 700;
	letter-spacing: 0;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mc-size-guide__header form {
	margin: 0;
}

.mc-size-guide__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
}

.mc-size-guide__close svg {
	width: 26px;
	height: 26px;
}

.mc-size-guide__body {
	flex: 1 1 auto;
	padding: 20px 40px;
	overflow-y: auto;
	overflow-x: hidden;
}

.mc-size-guide__body table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.mc-size-guide__body th,
.mc-size-guide__body td {
	padding: 8px 10px 8px 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.mc-size-guide__body th {
	font-weight: 600;
}

@media (max-width: 767px) {
	.mc-size-guide__header,
	.mc-size-guide__body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.mc-size-guide__body table {
		font-size: 13px;
		line-height: 1.6;
	}
}

html:has(.mc-size-guide__dialog[open]) {
	overflow: hidden;
}

@keyframes mc-sg-in {
	from {
		transform: translateX(100%);
	}

	to {
		transform: translateX(0);
	}
}

@keyframes mc-sg-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-size-guide__dialog[open],
	.mc-size-guide__dialog::backdrop {
		animation: none;
	}
}
