/* Wrapper forces the button onto its own line, below Add to Cart / quantity row */
.wcsc-button-wrap {
	display: block;
	width: 100%;
	clear: both;
}

/* Size Chart button */
.wcsc-size-chart-button {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	background-color: var(--wcsc-button-bg, #111111);
	color: var(--wcsc-button-text, #ffffff);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wcsc-size-chart-button:hover,
.wcsc-size-chart-button:focus {
	background-color: var(--wcsc-button-hover-bg, #333333);
	color: var(--wcsc-button-text, #ffffff);
}

/* Overlay */
.wcsc-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--wcsc-overlay-color, #000000);
	background-color: color-mix(in srgb, var(--wcsc-overlay-color, #000000) 60%, transparent);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.wcsc-modal-overlay.wcsc-open {
	display: flex;
}

/* Modal box */
.wcsc-modal-box {
	background-color: var(--wcsc-modal-bg, #ffffff);
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	animation: wcsc-fade-in 0.15s ease-out;
}

@keyframes wcsc-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.wcsc-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	background-color: var(--wcsc-modal-bg, #ffffff);
}

.wcsc-modal-header h2 {
	margin: 0;
	font-size: 18px;
}

.wcsc-modal-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0 4px;
}

.wcsc-modal-content {
	padding: 20px;
}

.wcsc-chart-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 16px;
}

.wcsc-chart-html table {
	width: 100%;
	border-collapse: collapse;
}

.wcsc-chart-html table th,
.wcsc-chart-html table td {
	border: 1px solid rgba(0, 0, 0, 0.15);
	padding: 8px 10px;
	text-align: center;
	font-size: 14px;
}

.wcsc-chart-html table th {
	background-color: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}

body.wcsc-no-scroll {
	overflow: hidden;
}
