:root {
	--fmh-blue: #0b3a5b;
	--fmh-cyan: #1aa6b7;
	--fmh-ink: #102033;
	--fmh-muted: #5b6b7c;
	--fmh-line: #d7e0ea;
}

/* Tighten label → dropdown spacing on product variations. */
.single-product form.variations_form .variations th.label,
.single-product form.variations_form .variations .label {
	padding-bottom: 2px !important;
	line-height: 1.25 !important;
}

.single-product form.variations_form .variations td.value {
	padding-top: 0 !important;
}

.single-product form.variations_form .variations label {
	margin: 0 !important;
	line-height: 1.25 !important;
}

.single-product form.variations_form .reset_variations,
.single-product form.variations_form .wd-reset-var .reset_variations {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0 !important;
	padding: 6px 10px !important;
	border: 1px solid var(--fmh-line, #d7e0ea) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--fmh-muted, #5b6b7c) !important;
	font-size: 0.78rem !important;
	font-weight: 650 !important;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.single-product form.variations_form .reset_variations:hover,
.single-product form.variations_form .wd-reset-var .reset_variations:hover {
	border-color: var(--fmh-cyan, #1aa6b7) !important;
	background: #eef9fb !important;
	color: #000 !important;
}

.fmh-product-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 8px 0 0;
	color: var(--fmh-muted, #5b6b7c);
	font-size: 0.86rem;
	line-height: 1.35;
}

.fmh-buy-head .fmh-product-meta {
	margin-top: 8px;
}

.fmh-product-meta__sep {
	color: #9aa8b6;
}

.fmh-product-meta__link {
	color: var(--fmh-blue, #0b3a5b);
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fmh-product-meta__link:hover {
	color: var(--fmh-cyan, #1aa6b7);
}

.fmh-var-tab {
	display: grid;
	gap: 16px;
}

.fmh-var-tab__intro h2 {
	margin: 0 0 6px;
	font-size: 1.25rem;
}

.fmh-var-tab__intro p {
	margin: 0;
	color: var(--fmh-muted, #5b6b7c);
	font-size: 0.95rem;
	line-height: 1.45;
}

.fmh-var-tab__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 16px;
	align-items: start;
}

.fmh-var-tab__matrix {
	min-width: 0;
}

.fmh-var-tab__side {
	position: sticky;
	top: 16px;
}

@media (max-width: 820px) {
	.fmh-var-tab__body {
		grid-template-columns: 1fr;
	}

	.fmh-var-tab__side {
		position: static;
	}
}

.fmh-var-field__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.fmh-var-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #d5e1ee;
	border-radius: 12px;
	background: #fff;
	color: var(--fmh-blue);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 750;
	cursor: pointer;
	white-space: nowrap;
}

.fmh-var-open:hover {
	border-color: var(--fmh-cyan);
	background: #eef9fb;
}

.fmh-var-open .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

body.fmh-var-modal-open {
	overflow: hidden;
}

.fmh-var-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.fmh-var-modal[hidden] {
	display: none;
}

.fmh-var-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 32, 51, 0.48);
	backdrop-filter: blur(4px);
}

.fmh-var-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1080px, 100%);
	max-height: min(86vh, 820px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(16, 32, 51, 0.28);
}

.fmh-var-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--fmh-line);
}

.fmh-var-modal__eyebrow {
	margin: 0 0 4px;
	color: var(--fmh-cyan);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.fmh-var-modal__head h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 750;
}

.fmh-var-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--fmh-line);
	border-radius: 999px;
	background: #f8fafc;
	color: var(--fmh-ink);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.fmh-var-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	min-height: 0;
	flex: 1;
}

.fmh-var-modal__matrix {
	min-width: 0;
	padding: 16px;
	overflow: auto;
	background: #f7fafc;
}

.fmh-var-modal__scroll {
	overflow: auto;
	border: 1px solid var(--fmh-line);
	border-radius: 16px;
	background: #fff;
}

.fmh-var-table {
	width: max-content;
	min-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.fmh-var-table th,
.fmh-var-table td {
	padding: 6px;
	border-right: 1px solid var(--fmh-line);
	border-bottom: 1px solid var(--fmh-line);
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

.fmh-var-table tr:last-child th,
.fmh-var-table tr:last-child td {
	border-bottom: 0;
}

.fmh-var-table th:last-child,
.fmh-var-table td:last-child {
	border-right: 0;
}

.fmh-var-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #edf3f8;
	color: var(--fmh-ink);
	font-size: 0.78rem;
	font-weight: 750;
}

.fmh-var-table thead th:first-child,
.fmh-var-table tbody th {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 96px;
	padding-left: 12px;
	padding-right: 12px;
	background: #f7fafc;
	color: var(--fmh-blue);
	font-size: 0.82rem;
	font-weight: 750;
	text-align: left;
}

.fmh-var-table thead th:first-child {
	z-index: 3;
}

.fmh-var-table__axis-row th {
	top: 0;
	background: #e7eef5;
	border-bottom: 0;
}

.fmh-var-table__col-axis {
	padding: 10px 12px 4px !important;
	color: var(--fmh-blue);
	font-size: 0.72rem !important;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center !important;
}

.fmh-var-table__col-axis span,
.fmh-var-table__row-axis span {
	color: var(--fmh-muted);
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: none;
}

.fmh-var-table__row-axis {
	padding-top: 10px !important;
	color: var(--fmh-blue) !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fmh-var-table__corner {
	background: #e7eef5 !important;
}

.fmh-var-table__axis-value {
	display: inline-block;
	min-width: 1.5em;
}

.fmh-var-table thead tr:nth-child(2) th {
	top: 28px;
}

.fmh-var-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	min-height: 40px;
	padding: 0 8px;
	border: 1px solid #d5e1ee;
	border-radius: 10px;
	background: #f8fafc;
	color: var(--fmh-ink);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.fmh-var-cell:hover {
	border-color: var(--fmh-cyan);
	background: #eef9fb;
}

.fmh-var-cell.is-selected {
	border-color: var(--fmh-blue);
	background: var(--fmh-blue);
	color: #fff;
}

.fmh-var-empty {
	color: #c1ccd8;
}

.fmh-var-modal__side {
	padding: 16px;
	border-left: 1px solid var(--fmh-line);
	background: #fff;
	overflow: auto;
}

.fmh-var-modal__side-card {
	display: grid;
	gap: 12px;
}

.fmh-var-modal__side-kicker,
.fmh-var-modal__side-label {
	margin: 0;
	color: var(--fmh-muted);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fmh-var-modal__size {
	margin: 0;
	color: var(--fmh-ink);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.35;
}

.fmh-var-modal__hint {
	margin: 0;
	color: var(--fmh-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.fmh-var-menge-list {
	display: grid;
	gap: 8px;
}

.fmh-var-menge {
	display: grid;
	gap: 2px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d5e1ee;
	border-radius: 12px;
	background: #f8fafc;
	color: var(--fmh-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.fmh-var-menge strong {
	font-size: 0.95rem;
}

.fmh-var-menge span {
	color: var(--fmh-muted);
	font-size: 0.78rem;
}

.fmh-var-menge:hover:not(:disabled) {
	border-color: var(--fmh-cyan);
	background: #eef9fb;
	color: #000;
}

.fmh-var-menge:hover:not(:disabled) strong,
.fmh-var-menge:hover:not(:disabled) span {
	color: #000;
}

.fmh-var-menge.is-selected {
	border-color: var(--fmh-blue);
	background: var(--fmh-blue);
	color: #fff;
}

.fmh-var-menge.is-selected span {
	color: rgba(255, 255, 255, 0.8);
}

.fmh-var-menge:disabled,
.fmh-var-menge.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fmh-var-modal__apply {
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--fmh-blue);
	color: #fff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.fmh-var-modal__apply:hover:not(:disabled) {
	background: var(--fmh-cyan);
}

.fmh-var-modal__apply:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-width: 820px) {
	.fmh-var-field__row {
		grid-template-columns: 1fr;
	}

	.fmh-var-modal__body {
		grid-template-columns: 1fr;
	}

	.fmh-var-modal__side {
		border-left: 0;
		border-top: 1px solid var(--fmh-line);
	}
}
