/* Women's size guide ([wb_size_guide]). Uses the Glozin design tokens so it sits naturally in the theme's size guide modal. */
.wb-size-guide {
	--wb-sg-dark: var(--gz-color-dark, #111);
	--wb-sg-text: #444;
	--wb-sg-muted: var(--gz-color-grey, #888);
	--wb-sg-border: var(--gz-border-color, #ebebeb);
	--wb-sg-soft: #f6f6f6;
	--wb-sg-pick: #f1f1f1;
	--wb-sg-radius: var(--gz-input-rounded, 8px);
	color: var(--wb-sg-text);
	font-size: 15px;
	line-height: 1.6;
}
.wb-size-guide *,
.wb-size-guide *::before,
.wb-size-guide *::after { box-sizing: border-box; }
.wb-size-guide p { margin: 0; }
.wb-sg__intro { margin-bottom: 22px !important; }

/* Tabs, styled like the theme's size guide tabs */
.wb-sg__tabs {
	display: flex;
	gap: 28px;
	margin: 0 0 24px;
	border-bottom: 1px solid var(--wb-sg-border);
	overflow-x: auto;
	scrollbar-width: none;
}
.wb-sg__tabs::-webkit-scrollbar { display: none; }
.wb-sg__tab {
	position: relative;
	flex: none;
	padding: 0 0 12px;
	margin: 0;
	border: 0;
	background: none;
	color: var(--wb-sg-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s;
}
.wb-sg__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -1px;
	border-bottom: 2px solid var(--wb-sg-dark);
	transition: right .3s;
}
.wb-sg__tab:hover,
.wb-sg__tab.is-active { color: var(--wb-sg-dark); }
.wb-sg__tab.is-active::after { right: 0; }
.wb-sg__tab:focus-visible,
.wb-sg__unit:focus-visible,
.wb-sg__size:focus-visible,
.wb-sg__guide summary:focus-visible,
.wb-sg__table-wrap:focus-visible {
	outline: 2px solid var(--wb-sg-dark);
	outline-offset: 2px;
	border-radius: 4px;
}

.wb-sg__panel[hidden] { display: none; }
.wb-sg__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.wb-sg__lead { color: var(--wb-sg-text); }
.wb-sg__panel > .wb-sg__lead { margin-bottom: 16px !important; }

/* CM / IN switch, like the product size buttons */
.wb-sg__units {
	display: inline-flex;
	flex: none;
	padding: 3px;
	border: 1px solid var(--wb-sg-border);
	border-radius: var(--wb-sg-radius);
}
.wb-sg__unit {
	min-width: 48px;
	padding: 6px 12px;
	border: 0;
	border-radius: calc(var(--wb-sg-radius) - 3px);
	background: none;
	color: var(--wb-sg-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.wb-sg__unit.is-active {
	background: var(--wb-sg-dark);
	color: #fff;
}

/* Tables: the theme's .glozin-size-guide__table, plus centring, sticky first column and selection */
.wb-sg__table-wrap {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	border-radius: var(--wb-sg-radius);
}
.wb-size-guide .wb-sg__table {
	margin: 0;
	width: 100%;
	font-size: 15px;
	white-space: nowrap;
}
.wb-size-guide .wb-sg__table th,
.wb-size-guide .wb-sg__table td {
	padding: 11px 14px;
	text-align: center;
}
.wb-size-guide .wb-sg__table thead th {
	background: var(--wb-sg-soft);
	font-size: 14px;
}
.wb-sg__u {
	color: var(--wb-sg-muted);
	font-weight: 400;
	font-size: 12px;
}
.wb-size-guide .wb-sg__table tbody th {
	padding: 4px 8px;
	background: #fff;
}
.wb-size-guide .wb-sg__table--convert th:first-child,
.wb-size-guide .wb-sg__table--convert td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	box-shadow: 1px 0 0 var(--wb-sg-border);
}
.wb-size-guide .wb-sg__table--convert thead th:first-child { background: var(--wb-sg-soft); }
.wb-sg__size {
	min-width: 40px;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: calc(var(--wb-sg-radius) - 2px);
	background: none;
	color: var(--wb-sg-dark);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
}
.wb-sg__size:hover { border-color: var(--wb-sg-dark); }
.wb-sg__size[aria-pressed="true"] {
	background: var(--wb-sg-dark);
	border-color: var(--wb-sg-dark);
	color: #fff;
}
.wb-size-guide .wb-sg__table tr.is-picked td,
.wb-size-guide .wb-sg__table tr.is-picked th { background: var(--wb-sg-pick); }
.wb-size-guide .wb-sg__table tr.is-picked td { color: var(--wb-sg-dark); font-weight: 600; }
.wb-sg__note {
	margin-top: 12px !important;
	color: var(--wb-sg-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* How to measure */
.wb-sg__guide { border-top: 1px solid var(--wb-sg-border); }
.wb-sg__guide:last-child { border-bottom: 1px solid var(--wb-sg-border); }
.wb-sg__guide summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 0;
	color: var(--wb-sg-dark);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.wb-sg__guide summary::-webkit-details-marker { display: none; }
.wb-sg__plus {
	position: relative;
	flex: none;
	width: 12px;
	height: 12px;
}
.wb-sg__plus::before,
.wb-sg__plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 1.5px;
	margin-top: -.75px;
	background: currentColor;
	transition: transform .25s;
}
.wb-sg__plus::after { transform: rotate(90deg); }
.wb-sg__guide[open] .wb-sg__plus::after { transform: rotate(0); }
.wb-sg__guide-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
	gap: 24px;
	align-items: center;
	padding: 0 0 22px;
}
.wb-sg__steps p { margin-bottom: 10px !important; }
.wb-sg__steps ol {
	margin: 0;
	padding-left: 20px;
}
.wb-sg__steps li { margin-bottom: 6px; }
.wb-sg__steps li::marker { color: var(--wb-sg-muted); }
.wb-sg__steps strong { color: var(--wb-sg-dark); font-weight: 600; }
.wb-sg__art { margin: 0; }
.wb-sg__art img {
	display: block;
	width: 100%;
	max-height: 300px;
	height: auto;
	object-fit: contain;
}

@media (max-width: 600px) {
	.wb-size-guide { font-size: 14px; }
	.wb-sg__tabs { gap: 14px; }
	.wb-size-guide button.wb-sg__tab { font-size: 12px; letter-spacing: 0; }
	.wb-sg__panel-head { flex-wrap: wrap; }
	.wb-size-guide .wb-sg__table th,
	.wb-size-guide .wb-sg__table td { padding: 10px 10px; }
	.wb-sg__guide-body { grid-template-columns: 1fr; gap: 14px; }
	.wb-sg__art { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
	.wb-sg__tab::after,
	.wb-sg__plus::before,
	.wb-sg__plus::after,
	.wb-sg__unit,
	.wb-sg__size { transition: none; }
}

/* The theme styles every <button> on hover and focus (dark fill). Keep the guide's own controls as designed. */
.wb-size-guide button.wb-sg__tab,
.wb-size-guide button.wb-sg__tab:hover,
.wb-size-guide button.wb-sg__tab:focus,
.wb-size-guide button.wb-sg__tab:active {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	height: auto;
	min-height: 0;
}
.wb-size-guide button.wb-sg__tab:hover,
.wb-size-guide button.wb-sg__tab.is-active { color: var(--wb-sg-dark) !important; }
.wb-size-guide button.wb-sg__tab:not(.is-active):not(:hover) { color: var(--wb-sg-muted) !important; }
.wb-size-guide button.wb-sg__unit,
.wb-size-guide button.wb-sg__unit:hover,
.wb-size-guide button.wb-sg__unit:focus,
.wb-size-guide button.wb-sg__unit:active {
	border: 0 !important;
	box-shadow: none !important;
	height: auto;
	min-height: 0;
}
.wb-size-guide button.wb-sg__unit:not(.is-active),
.wb-size-guide button.wb-sg__unit:not(.is-active):hover,
.wb-size-guide button.wb-sg__unit:not(.is-active):focus {
	background: transparent !important;
	color: var(--wb-sg-muted) !important;
}
.wb-size-guide button.wb-sg__unit:not(.is-active):hover { color: var(--wb-sg-dark) !important; }
.wb-size-guide button.wb-sg__unit.is-active,
.wb-size-guide button.wb-sg__unit.is-active:hover,
.wb-size-guide button.wb-sg__unit.is-active:focus {
	background: var(--wb-sg-dark) !important;
	color: #fff !important;
}
.wb-size-guide button.wb-sg__size,
.wb-size-guide button.wb-sg__size:hover,
.wb-size-guide button.wb-sg__size:focus,
.wb-size-guide button.wb-sg__size:active {
	box-shadow: none !important;
	height: auto;
	min-height: 0;
}
.wb-size-guide button.wb-sg__size[aria-pressed="false"],
.wb-size-guide button.wb-sg__size[aria-pressed="false"]:focus {
	background: transparent !important;
	color: var(--wb-sg-dark) !important;
	border-color: transparent !important;
}
.wb-size-guide button.wb-sg__size[aria-pressed="false"]:hover {
	background: transparent !important;
	color: var(--wb-sg-dark) !important;
	border-color: var(--wb-sg-dark) !important;
}
.wb-size-guide button.wb-sg__size[aria-pressed="true"],
.wb-size-guide button.wb-sg__size[aria-pressed="true"]:hover,
.wb-size-guide button.wb-sg__size[aria-pressed="true"]:focus {
	background: var(--wb-sg-dark) !important;
	border-color: var(--wb-sg-dark) !important;
	color: #fff !important;
}

/* The product's brand chart (inc/size-charts.php), above the general guide */
.wb-sg-brand {
	margin: 0 0 28px;
	padding: 0 0 28px;
	border-bottom: 1px solid var(--wb-sg-border);
}
.wb-sg-brand .wb-sg__panel-head { margin-bottom: 8px; }
.wb-size-guide .wb-sg-brand__title,
.wb-size-guide .wb-sg__general-title {
	margin: 0;
	color: var(--wb-sg-dark);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}
.wb-size-guide .wb-sg__general-title { margin: 0 0 8px; }
.wb-sg-brand > .wb-sg__lead { margin-bottom: 16px !important; }
.wb-sg-brand__notes {
	margin: 16px 0 0;
	padding: 0 0 0 18px;
	color: var(--wb-sg-text);
	font-size: 14px;
	line-height: 1.55;
}
.wb-sg-brand__notes li + li { margin-top: 6px; }
@media (max-width: 575px) {
	.wb-sg-brand .wb-sg__panel-head { align-items: flex-start; }
	.wb-size-guide .wb-sg-brand__title,
	.wb-size-guide .wb-sg__general-title { font-size: 16px; }
}

/* The "Size guide" row above Add to cart, for products without a size choice (inc/size-guide.php, 2026-11-25):
   the same link as beside a size choice, with "Size: One size" on the left when the product has one size. */
.single-product div.product .entry-summary .wb-sg-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
}
.single-product div.product .entry-summary .wb-sg-row .product-size-guide {
	margin: 0 0 0 auto;
	line-height: inherit;
}
.single-product div.product .entry-summary .wb-sg-row .size-guide-button {
	text-decoration: underline;
	text-underline-offset: 4px;
	color: var(--gz-color-base);
}
.single-product div.product .entry-summary .wb-sg-row .size-guide-button:hover {
	color: var(--gz-color-dark);
}
.single-product div.product .entry-summary .wb-sg-row__label {
	color: var(--gz-color-dark);
}
