/* ==========================================================================
   Size Chart Modal
   ========================================================================== */

/* Size Guide Link (after accordion) */
.shopnex-size-guide-link {
    padding-top: 16px;
}

.shopnex-size-guide-link .shopnex-size-guide-btn {
    margin-top: 0;
}

/* Modal Overlay */
.shopnex-size-chart-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shopnex-size-chart-modal.active {
	opacity: 1;
	visibility: visible;
}

.shopnex-size-chart-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

/* Modal Content */
.shopnex-size-chart-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 640px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transform: translateY(20px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

.shopnex-size-chart-modal.active .shopnex-size-chart-content {
	transform: translateY(0) scale(1);
}

/* Close Button */
.shopnex-size-chart-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #666;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shopnex-size-chart-close:hover {
	color: #1a1a1a;
}

/* Heading */
.shopnex-size-chart-heading {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 24px 0;
	padding-right: 32px;
	letter-spacing: -0.01em;
}

/* Body */
.shopnex-size-chart-body {
	color: #444;
	font-size: 14px;
	line-height: 1.6;
}

.shopnex-size-chart-body p {
	margin: 0 0 12px;
}

.shopnex-size-chart-body p:last-child {
	margin-bottom: 0;
}

/* Table Styles */
.shopnex-size-chart-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 13px;
}

.shopnex-size-chart-body thead th {
	background: #f5f5f5;
	font-weight: 600;
	color: #1a1a1a;
	padding: 12px 16px;
	text-align: left;
	border-bottom: 2px solid #e5e5e5;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.shopnex-size-chart-body thead th:first-child {
	border-radius: 8px 0 0 0;
}

.shopnex-size-chart-body thead th:last-child {
	border-radius: 0 8px 0 0;
}

.shopnex-size-chart-body tbody td {
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f0;
	color: #555;
}

.shopnex-size-chart-body tbody tr:hover {
	background: #fafafa;
}

.shopnex-size-chart-body tbody tr:last-child td {
	border-bottom: none;
}

.shopnex-size-chart-body tbody td:first-child {
	font-weight: 600;
	color: #1a1a1a;
}

/* Scrollbar styling */
.shopnex-size-chart-content::-webkit-scrollbar {
	width: 6px;
}

.shopnex-size-chart-content::-webkit-scrollbar-track {
	background: transparent;
}

.shopnex-size-chart-content::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 3px;
}

.shopnex-size-chart-content::-webkit-scrollbar-thumb:hover {
	background: #bbb;
}

/* Responsive */
@media (max-width: 640px) {
	.shopnex-size-chart-content {
		padding: 24px 20px;
		width: 95%;
		max-height: 90vh;
		border-radius: 8px;
	}

	.shopnex-size-chart-heading {
		font-size: 18px;
		margin-bottom: 16px;
	}

	.shopnex-size-chart-body table {
		font-size: 12px;
	}

	.shopnex-size-chart-body thead th,
	.shopnex-size-chart-body tbody td {
		padding: 8px 10px;
	}
}
