/* DAZERAW Size Guide — trigger button + modal, matching the site's
 * black/white monospace aesthetic. Loaded only on single product pages
 * that actually have size guide data (see dazeraw-size-guide.php). */

.dazeraw-size-guide-trigger-wrap {
	display: block;
	width: 100%;
	margin: 10px 0;
}

.dazeraw-size-guide-trigger {
	display: inline-block;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	color: var(--color-text, #fff);
	font: inherit;
	font-size: 12px;
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .15s ease;
}

.dazeraw-size-guide-trigger:hover {
	opacity: .6;
}

html.dazeraw-size-guide-open {
	overflow: hidden;
}

.dazeraw-size-guide-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .82);
}

.dazeraw-size-guide-overlay[hidden] {
	display: none;
}

.dazeraw-size-guide-modal {
	position: relative;
	width: 100%;
	max-width: 1280px;
	max-height: 92vh;
	overflow-y: auto;
	background: #000;
	border: 1px solid rgba(255, 255, 255, .25);
	padding: 60px clamp(24px, 5vw, 80px) 50px;
}

.dazeraw-size-guide-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	background: none;
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.dazeraw-size-guide-close:hover {
	background: #fff;
	color: #000;
}

.dazeraw-size-guide-body {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

@media (max-width: 780px) {
	.dazeraw-size-guide-body {
		grid-template-columns: 1fr;
	}
}

.dazeraw-size-guide-diagram {
	position: relative;
	background: #000;
}

.dazeraw-size-guide-diagram img {
	display: block;
	width: 100%;
	height: auto;
}

.dazeraw-size-guide-picker-label {
	margin: 0 0 12px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .6);
}

.dazeraw-size-guide-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.dazeraw-size-guide-picker-btn {
	min-width: 44px;
	padding: 9px 10px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .35);
	color: var(--color-text, #fff);
	font: inherit;
	font-size: 13px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.dazeraw-size-guide-picker-btn:hover:not(.is-inactive) {
	border-color: #fff;
}

.dazeraw-size-guide-picker-btn.is-current {
	background: #fff;
	border-color: #fff;
	color: #000;
}

.dazeraw-size-guide-picker-btn.is-inactive {
	border-color: rgba(255, 255, 255, .15);
	color: rgba(255, 255, 255, .25);
	cursor: not-allowed;
}

.dazeraw-size-guide-measurements {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.dazeraw-size-guide-measurements li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
	font-size: 14px;
}

.dazeraw-size-guide-measurement-label {
	color: var(--color-text, #fff);
}

.dazeraw-size-guide-measurement-value {
	color: rgba(255, 255, 255, .7);
	white-space: nowrap;
}

.dazeraw-size-guide-table-details {
	margin-bottom: 20px;
}

.dazeraw-size-guide-table-details summary {
	cursor: pointer;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .6);
	margin-bottom: 14px;
}

.dazeraw-size-guide-table-details summary:hover {
	color: var(--color-text, #fff);
}

.dazeraw-size-guide-table-wrap {
	overflow-x: auto;
}

.dazeraw-size-guide-frontend-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	color: var(--color-text, #fff);
	white-space: nowrap;
}

.dazeraw-size-guide-frontend-table th,
.dazeraw-size-guide-frontend-table td {
	padding: 12px 10px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.dazeraw-size-guide-frontend-table th {
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 700;
	color: rgba(255, 255, 255, .6);
}

.dazeraw-size-guide-frontend-table td:first-child,
.dazeraw-size-guide-frontend-table th:first-child {
	text-align: left;
	padding-left: 0;
	text-transform: none;
	color: var(--color-text, #fff);
}

.dazeraw-size-guide-frontend-table th.is-inactive,
.dazeraw-size-guide-frontend-table td.is-inactive {
	color: rgba(255, 255, 255, .28);
}

.dazeraw-size-guide-note {
	margin: 16px 0 0;
	font-size: 11px;
	color: rgba(255, 255, 255, .45);
}
