/**
 * PLP Mobile Portrait Quick Add — Measurements (Figma 426:5182) + the shared
 * visibility/scroll-lock rules. Mobile only; nothing renders >=768px.
 *
 * The size sheet is the PDP's own (.ksp-* markup, styled by
 * css/pdp-size-summary.css) and "Added to your shopping bag" is the shared PDP
 * popup (css/added-to-cart-popup.css), so neither is styled here.
 * Measurements is a full page (z-index above the size sheet), not an overlay.
 */

.vataly-qa[hidden],
.vataly-qa [hidden],
.vataly-qm[hidden],
.vataly-qm [hidden] {
	display: none !important;
}

html.vataly-qa-lock,
html.vataly-qa-lock body {
	overflow: hidden;
}

@media (min-width: 768px) {
	.vataly-qa,
	.vataly-qm {
		display: none !important;
	}
}

/* Add-to-cart error, shown in the PDP sheet's fit line (same emphasis as before). */
.vataly-qa .ksp-fit.is-error {
	font-weight: 700;
}

/* Size the card's colour can't be bought in (e.g. an out-of-stock colour, where
   every row is unavailable): Taupe and struck through; available rows stay Ink
   (pdp-size-summary.css's mobile `.woocommerce … __name` rule, which is
   !important, hence !important here at higher specificity). Plain arrow cursor
   instead of the PDP sheet's not-allowed sign. */
.vataly-qa .ksp-sizes .kss-oos .wcboost-variation-swatches__name {
	color: var(--h_clr) !important;
	text-decoration: line-through;
}

.vataly-qa .ksp-sizes .wcboost-variation-swatches__item.kss-oos {
	cursor: default;
}

/* Waiting for WooCommerce: the rows can't be tapped twice. */
.vataly-qa .ksp-sizes[aria-busy="true"] .wcboost-variation-swatches__item {
	pointer-events: none;
	opacity: 0.5;
}

/* ------------------------------------------------- Measurements 426:5182 */
.vataly-qm {
	position: fixed;
	inset: 0;
	z-index: 100020;
	box-sizing: border-box;
	overflow-y: auto;
	padding: 76px 24px 48px;
	background: var(--bg_clr1);
	color: var(--ink_text);
	font-family: var(--font2);
	font-size: 12px;
	line-height: normal;
	letter-spacing: 0;
	outline: 0;
}

.vataly-qm__close {
	position: absolute;
	top: 65px;
	right: 31px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: 300 16px/normal var(--font2);
	color: var(--ink_text);
	cursor: pointer;
}

.vataly-qm .vataly-qm__title,
.vataly-qm__article,
.vataly-qm .vataly-qm__howto {
	margin: 0;
	font: 700 14px/normal var(--font2) !important;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink_text);
}

.vataly-qm .vataly-qm__title {
	text-transform: uppercase;
}

.vataly-qm__article {
	margin: 34px 0 0 1px;
}

.vataly-qm__system {
	display: flex;
	justify-content: space-between;
	margin: 34px 3px 0 0;
	font-weight: 700;
	font-size: 14px;
}

.vataly-qm__units {
	display: flex;
	gap: 20px;
}

.vataly-qm__unit {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: 700 14px/normal var(--font2);
	color: var(--h_clr);
	opacity: 0.8;
	cursor: pointer;
}

.vataly-qm__unit.is-active {
	color: var(--ink_text);
	opacity: 1;
}

.vataly-qm__boxes {
	display: flex;
	margin-top: 15px;
}

.vataly-qm__box {
	box-sizing: border-box;
	flex: 0 0 59.54px;
	height: 55px;
	margin: 0 0 0 -0.85px;
	padding: 11px 0 0 11px;
	border: 1px solid var(--b_clr);
	border-radius: 0;
	background: none;
	font: 700 12px/normal var(--font2);
	text-align: left;
	color: var(--h_clr);
	cursor: pointer;
}

.vataly-qm__box:first-child {
	margin-left: 0;
}

.vataly-qm__box.is-active {
	position: relative;
	border-color: var(--ink_text);
	color: var(--ink_text);
}

.vataly-qm__table {
	margin: 26px 0 0 2px;
}

.vataly-qm__row {
	display: grid;
	grid-template-columns: 137px 98px 99px 1fr;
	height: 46px;
	font: 700 14px/normal var(--font2);
}

.vataly-qm__row--head {
	height: 47px;
}

.vataly-qm__cell {
	color: var(--h_clr);
	opacity: 0.8;
}

.vataly-qm__cell.is-active,
.vataly-qm__cell--label {
	color: var(--ink_text);
	opacity: 1;
}

.vataly-qm__desc {
	min-height: 104px;
	margin: 19px -7px 0 0;
	font-weight: 300;
}

.vataly-qm__desc p {
	margin: 0;
}

.vataly-qm .vataly-qm__howto {
	margin-top: 41px;
}

.vataly-qm__image {
	box-sizing: border-box;
	height: 492px;
	margin: 17px 0 0;
	border: 1px solid var(--ink_text);
}

.vataly-qm__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vataly-qm__steps {
	margin-top: 36px;
	font-weight: 300;
}

.vataly-qm__steps ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: vataly-step;
}

.vataly-qm__steps li {
	position: relative;
	margin: 0 0 20px;
	padding-left: 24px;
	counter-increment: vataly-step;
}

.vataly-qm__steps li::before {
	content: counter(vataly-step);
	position: absolute;
	left: 0;
	top: 0;
	font: 700 14px/normal var(--font2);
}

.vataly-qm__steps li strong {
	display: block;
	margin-bottom: 5px;
	font: 700 14px/normal var(--font2);
}

.vataly-qm__steps p {
	margin: 0 0 20px;
}
