/* Size guide — desktop + mobile */

.rey-sizeGuide-btn {
	letter-spacing: 0.01em;
	font-weight: 500;
}

.rey-sizeGuide-modal {
	--sg-spacing: 16px;
	--sg-table-fz: 0.8125rem;
	--sg-table-pad: 0.55em 0.65em;
}

.rey-sizeGuide-modal .__content {
	margin-bottom: 20px;
}

.rey-sizeGuide-modal .__content h3 {
	margin: 0 0 8px;
	font-size: 1.0625rem;
	font-weight: 600;
	text-transform: none;
	line-height: 1.35;
}

.rey-sizeGuide-modal .__content p,
.rey-sizeGuide-modal .__content ul {
	margin: 0 0 10px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #6b7280;
}

.rey-sizeGuide-modal .__content ul {
	padding-left: 1.15em;
}

.rey-sizeGuide-modal .__tables-tabs {
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.rey-sizeGuide-modal .__tables-tabs::-webkit-scrollbar {
	display: none;
}

.rey-sizeGuide-modal .__tables-tabs .btn {
	border-radius: 999px;
	text-transform: none;
	font-weight: 500;
	flex-shrink: 0;
	white-space: nowrap;
}

.rey-sizeGuide-modal .__tables {
	width: 100%;
}

.rey-sizeGuide-modal .__table-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
}

.rey-sizeGuide-modal .__table.--basic {
	min-width: 520px;
	border-spacing: 0;
}

.rey-sizeGuide-modal .__table.--basic thead th,
.rey-sizeGuide-modal .__table.--basic tbody td {
	font-size: var(--sg-table-fz);
	padding: var(--sg-table-pad);
	text-transform: none;
	white-space: nowrap;
}

.rey-sizeGuide-modal .__table.--basic thead th {
	background: #f9fafb;
	color: #111827;
	font-weight: 600;
	border-color: #e5e7eb;
}

.rey-sizeGuide-modal .__table.--basic tbody td {
	border-color: #e5e7eb;
	background: #fff;
}

.rey-sizeGuide-modal .__table.--basic tbody tr:nth-child(even) td {
	background: #f9fafb;
}

.rey-sizeGuide-modal .__table.--basic thead th:first-child,
.rey-sizeGuide-modal .__table.--basic tbody td:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	box-shadow: 4px 0 8px -4px rgba(17, 24, 39, 0.12);
}

.rey-sizeGuide-modal .__table.--basic thead th:first-child {
	z-index: 3;
	background: #f3f4f6;
}

.rey-sizeGuide-modal .__table.--basic tbody tr:nth-child(even) td:first-child {
	background: #f3f4f6;
}

.rey-sizeGuide-modalWrapper .reymodal__window {
	max-width: min(760px, calc(100vw - 24px));
	width: 100%;
	margin: 12px 0;
	border-radius: 16px;
	overflow: hidden;
}

.rey-sizeGuide-modalWrapper .reymodal__close {
	z-index: 5;
}

.reymodal .rey-sizeGuide-modal {
	padding: var(--sg-spacing);
}

@media (min-width: 768px) {
	.rey-sizeGuide-modal {
		--sg-spacing: 24px;
		--sg-table-fz: 0.875rem;
		--sg-table-pad: 0.65em 0.85em;
	}

	.rey-sizeGuide-modal .__content h3 {
		font-size: 1.125rem;
	}

	.rey-sizeGuide-modal .__content p,
	.rey-sizeGuide-modal .__content ul {
		font-size: 0.9375rem;
	}

	.rey-sizeGuide-modal .__tables-tabs {
		justify-content: center;
		flex-wrap: wrap;
		overflow: visible;
	}

	.rey-sizeGuide-modalWrapper .reymodal__window {
		margin: 24px 0;
	}
}

@media (max-width: 767px) {
	.rey-sizeGuide-modalWrapper .reymodal__wrap {
		align-items: flex-end;
	}

	.rey-sizeGuide-modalWrapper .reymodal__window {
		max-width: 100%;
		width: 100%;
		margin: 0;
		border-radius: 16px 16px 0 0;
		max-height: calc(100dvh - 12px);
		overflow-y: auto;
	}

	.rey-sizeGuide-modalWrapper .reymodal__close {
		top: 0.85rem;
		right: 0.85rem;
		width: 2rem;
		height: 2rem;
		background: rgba(255, 255, 255, 0.95);
		border-radius: 999px;
		box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
	}

	.rey-sizeGuide-modal .__tables-tabs {
		margin-left: calc(var(--sg-spacing) * -0.15);
		margin-right: calc(var(--sg-spacing) * -0.15);
		padding-left: calc(var(--sg-spacing) * 0.15);
		padding-right: calc(var(--sg-spacing) * 0.15);
	}

	.rey-sizeGuide-modal .__tables-tabs .btn {
		font-size: 0.8125rem;
		padding: 0.45em 0.85em;
	}

	.rey-sizeGuide-modal .__table.--basic {
		min-width: 480px;
	}

	.woocommerce div.product .rey-sizeGuide-btn {
		width: 100%;
		justify-content: center;
		min-height: 44px;
	}

	.woocommerce div.product .rey-sizeGuide-btn[data-position="before_atc"] {
		margin-bottom: 12px;
	}
}
