/* ---------- Trigger button ---------- */
.vv-size-chart-trigger-wrap {
	margin: 8px 0 14px;
}

.vv-size-chart-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid #333;
	color: #333;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 8px 14px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.vv-size-chart-btn:hover,
.vv-size-chart-btn:focus {
	background: #333;
	color: #fff;
}

.vv-size-chart-icon {
	flex-shrink: 0;
}

/* ---------- Modal ---------- */
.vv-size-chart-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.vv-size-chart-modal.vv-active {
	display: flex;
}

.vv-size-chart-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	animation: vv-fade-in 0.15s ease;
}

.vv-size-chart-content {
	position: relative;
	z-index: 1;
	max-width: min(92vw, 700px);
	max-height: 90vh;
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: vv-pop-in 0.18s ease;
}

.vv-size-chart-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vv-size-chart-close:hover {
	background: rgba(0, 0, 0, 0.85);
}

.vv-size-chart-body {
	overflow: auto;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.vv-size-chart-body img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

body.vv-size-chart-open {
	overflow: hidden;
}

@keyframes vv-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes vv-pop-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.vv-size-chart-content {
		max-width: 94vw;
		max-height: 88vh;
		border-radius: 12px;
	}

	.vv-size-chart-body {
		padding: 14px;
	}

	.vv-size-chart-btn {
		width: 100%;
		justify-content: center;
	}
}
