/* Hinnapäring v2 – scoped to .hp2 so the rest of the site is untouched. */

.hp2 {
	--hp2-blue: #3b7dc4;
	--hp2-blue-d: #2c67a6;
	--hp2-blue-50: #eef4fb;
	--hp2-blue-100: #dce9f7;
	--hp2-navy: #0b293e;
	--hp2-ink: #1d2b36;
	--hp2-muted: #5d6b78;
	--hp2-line: #e2e7ec;
	--hp2-line-d: #cdd5dd;
	--hp2-bg: #f7f5f3;
	--hp2-card: #ffffff;
	--hp2-ok: #2f8a4a;
	--hp2-warn: #b26a00;
	--hp2-err: #c62828;
	--hp2-r: 14px;
	--hp2-r-sm: 10px;
	--hp2-shadow: 0 1px 2px rgba(11, 41, 62, .06), 0 6px 24px rgba(11, 41, 62, .06);
	--hp2-font: "MonaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--hp2-font-b: "MonaSansBold", "MonaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	font-family: var(--hp2-font);
	color: var(--hp2-ink);
	background: var(--hp2-bg);
	font-size: 16px;
	line-height: 1.5;
	padding-bottom: 72px;
	-webkit-font-smoothing: antialiased;
}
.hp2 *, .hp2 *::before, .hp2 *::after { box-sizing: border-box; }
.hp2 [hidden] { display: none !important; }
.hp2 svg { display: block; }

/* The theme forces regular weight on every <p>; bold paragraphs need !important. */
.hp2 p.hp2-eyebrow,
.hp2 p.hp2-item-title,
.hp2 p.hp2-label { font-family: var(--hp2-font-b) !important; }
.hp2 p.hp2-opts-title { font-family: var(--hp2-font-b) !important; }

/* The footer "Esita hinnapäring" teaser is redundant on this page. */
.page-template-price_request_v2 .price-request { display: none !important; }
/* The theme wrapper clips with overflow:hidden, which stops the sticky basket.
   "clip" cuts overflow the same way without breaking position: sticky. */
html body.page-template-price_request_v2,
.page-template-price_request_v2 .eltd-wrapper .eltd-wrapper-inner { overflow-x: clip !important; overflow-y: visible !important; }

.hp2-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Test notice ---------- */
.hp2-testbar {
	background: #fff4d6;
	color: #6b4a00;
	border-bottom: 1px solid #f1dc9c;
	font-size: 14px;
	padding: 10px 16px;
	text-align: center;
}

/* ---------- Hero ---------- */
.hp2-hero { background: #fff; border-bottom: 1px solid var(--hp2-line); padding: 28px 0 0; }
.hp2 .hp2-eyebrow {
	margin: 0 0 6px;
	font-family: var(--hp2-font-b);
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hp2-blue);
}
.hp2 .hp2-title {
	margin: 0 0 10px;
	font-family: var(--hp2-font-b);
	font-size: clamp(30px, 6vw, 46px);
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--hp2-navy);
	text-align: left;
}
.hp2 .hp2-lead { margin: 0 0 14px; max-width: 640px; color: var(--hp2-muted); font-size: 17px; }
.hp2 .hp2-tip { margin: 0 0 20px; }
.hp2 .hp2-tip .useful-info,
.hp2 .hp2-tip > div {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-align: left;
	background: var(--hp2-blue-50);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 14px;
}
.hp2 .hp2-tip p { margin: 0; color: var(--hp2-navy); }
.hp2 .hp2-tip a { color: var(--hp2-blue-d); }

/* Stepper */
.hp2-steps {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
.hp2-steps::-webkit-scrollbar { display: none; }
.hp2 .hp2-step {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	border-bottom: 3px solid transparent;
	color: var(--hp2-muted);
	font-size: 15px;
	white-space: nowrap;
}
.hp2 .hp2-step-btn {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 12px 4px 14px;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.hp2 .hp2-step-btn[disabled] { cursor: default; }
.hp2 .hp2-step-btn:not([disabled]):hover .hp2-step-text { text-decoration: underline; text-underline-offset: 3px; }
.hp2 .hp2-step-btn:focus-visible { outline: 3px solid var(--hp2-blue-100); border-radius: 6px; }
.hp2 .hp2-step::before { display: none; }
.hp2-step-num {
	flex: none;
	width: 28px; height: 28px;
	border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--hp2-font-b);
	font-size: 14px;
	background: var(--hp2-line);
	color: var(--hp2-muted);
	transition: background .2s, color .2s;
}
.hp2-step-text { overflow: hidden; text-overflow: ellipsis; }
.hp2 .hp2-step.is-active { color: var(--hp2-navy); border-bottom-color: var(--hp2-blue); font-family: var(--hp2-font-b); }
.hp2 .hp2-step.is-done { color: var(--hp2-ink); }
.hp2-step.is-active .hp2-step-num { background: var(--hp2-blue); color: #fff; }
.hp2-step.is-done .hp2-step-num { background: var(--hp2-ok); color: #fff; font-size: 0; }
.hp2-step.is-done .hp2-step-num::after {
	content: "";
	width: 10px; height: 6px;
	border-left: 2px solid #fff; border-bottom: 2px solid #fff;
	transform: translateY(-1px) rotate(-45deg);
}

/* ---------- Layout ---------- */
.hp2-layout { display: block; padding-top: 24px; padding-bottom: 32px; }
.hp2-main { min-width: 0; }

.hp2 .hp2-h2 {
	margin: 0 0 16px;
	font-family: var(--hp2-font-b);
	font-size: clamp(22px, 4vw, 28px);
	line-height: 1.2;
	color: var(--hp2-navy);
	text-align: left;
	outline: none;
}
.hp2 .hp2-h3 { margin: 0; font-family: var(--hp2-font-b); font-size: 18px; line-height: 1.3; color: var(--hp2-navy); text-align: left; }
.hp2 .hp2-group {
	margin: 18px 0 10px;
	font-family: var(--hp2-font-b);
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hp2-muted);
	text-align: left;
}
.hp2 .hp2-group:first-of-type { margin-top: 0; }
.hp2 .hp2-help { margin: 4px 0 0; color: var(--hp2-muted); font-size: 14px; }
.hp2 .hp2-help-sm { font-size: 13px; margin-top: 6px; }
.hp2 .hp2-help.is-warn { color: var(--hp2-warn); }

/* ---------- Type cards ---------- */
.hp2-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hp2 .hp2-type {
	all: unset;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 12px 10px 12px;
	background: var(--hp2-card);
	border: 1.5px solid var(--hp2-line);
	border-radius: var(--hp2-r);
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, box-shadow .15s, transform .15s;
	-webkit-tap-highlight-color: transparent;
}
.hp2 .hp2-type:hover { border-color: var(--hp2-blue); box-shadow: var(--hp2-shadow); }
.hp2 .hp2-type:active { transform: scale(.98); }
.hp2 .hp2-type:focus-visible { outline: 3px solid var(--hp2-blue-100); outline-offset: 2px; border-color: var(--hp2-blue); }
.hp2 .hp2-type.is-selected { border-color: var(--hp2-blue); background: var(--hp2-blue-50); }
.hp2-type-art { display: block; aspect-ratio: 4 / 3; background: var(--hp2-bg); border-radius: var(--hp2-r-sm); padding: 6px; }
.hp2-type-art svg { width: 100%; height: 100%; }
.hp2-type-name { font-family: var(--hp2-font-b); font-size: 14px; line-height: 1.3; color: var(--hp2-navy); min-height: 2.6em; display: flex; align-items: center; justify-content: center; }

/* ---------- Drawing ---------- */
.hp2-svg { width: 100%; height: auto; overflow: visible; }
.hp2-svg-frame { fill: #fff; stroke: var(--hp2-navy); stroke-width: 1.4; }
.hp2-svg-glass { fill: url(#hp2g); stroke: #9fb9d3; stroke-width: 1; }
.hp2-svg-solid { fill: #e6ebf0; stroke: #9fb0c0; stroke-width: 1; }
.hp2-svg-split { stroke: var(--hp2-navy); stroke-width: 1.2; }
.hp2-svg-open { fill: none; stroke: var(--hp2-blue-d); stroke-width: 1.3; stroke-linecap: round; }
.hp2-svg-handle { fill: var(--hp2-navy); }
.hp2-svg-arrow { fill: none; stroke: var(--hp2-blue-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp2-svg-dim line { stroke: var(--hp2-muted); stroke-width: 1; }
.hp2-svg-dim .hp2-svg-tag { fill: #fff; stroke: var(--hp2-line-d); stroke-width: 1; }
.hp2-svg-dim text { font: 600 11.5px var(--hp2-font-b); fill: var(--hp2-navy); }
.hp2-svg-dim.is-active line { stroke: var(--hp2-blue); stroke-width: 1.6; }
.hp2-svg-dim.is-active .hp2-svg-tag { fill: var(--hp2-blue); stroke: var(--hp2-blue); }
.hp2-svg-dim.is-active text { fill: #fff; }

/* ---------- Panels & cards ---------- */
.hp2-panel { animation: hp2-in .25s ease-out; }
@keyframes hp2-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hp2-panel-head { margin-bottom: 4px; }
.hp2 .hp2-back {
	all: unset;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 8px -4px;
	padding: 6px 8px 6px 4px;
	border-radius: 8px;
	color: var(--hp2-blue-d);
	font-size: 15px;
	cursor: pointer;
}
.hp2 .hp2-back:hover { background: var(--hp2-blue-50); }
.hp2 .hp2-back:focus-visible { outline: 3px solid var(--hp2-blue-100); }
.hp2-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hp2-card {
	background: var(--hp2-card);
	border: 1px solid var(--hp2-line);
	border-radius: var(--hp2-r);
	padding: 18px 16px;
	margin-bottom: 14px;
	box-shadow: 0 1px 2px rgba(11, 41, 62, .04);
}
.hp2-card-head { margin-bottom: 14px; }

/* Measurements */
.hp2-measure { display: grid; gap: 16px; }
.hp2-preview { background: var(--hp2-bg); border-radius: var(--hp2-r-sm); padding: 10px; }
.hp2-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.hp2-letter {
	display: inline-grid;
	place-items: center;
	width: 20px; height: 20px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--hp2-navy);
	color: #fff;
	font-family: var(--hp2-font-b);
	font-size: 11px;
	vertical-align: 1px;
}
.hp2-dim:focus-within .hp2-letter { background: var(--hp2-blue); }

/* ---------- Form controls ---------- */
.hp2-field { min-width: 0; }
.hp2-field-full { margin-top: 16px; }
.hp2 .hp2-label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--hp2-font-b);
	font-size: 14px;
	line-height: 1.35;
	color: var(--hp2-navy);
	text-transform: none;
	letter-spacing: 0;
	text-align: left;
	float: none;
	width: auto;
}
.hp2 .hp2-req { color: var(--hp2-err); }

.hp2 .hp2-input,
.hp2 input.hp2-input,
.hp2 select.hp2-input,
.hp2 textarea.hp2-input {
	display: block;
	width: 100%;
	max-width: none;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font: 16px/1.3 var(--hp2-font);
	color: var(--hp2-ink);
	background: #fff;
	border: 1.5px solid var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.hp2 .hp2-input::placeholder { color: #9aa6b1; }
.hp2 .hp2-input:hover { border-color: #aab6c1; }
.hp2 .hp2-input:focus { border-color: var(--hp2-blue); box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2 textarea.hp2-textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.hp2 .has-error .hp2-input, .hp2 .hp2-input[aria-invalid="true"] { border-color: var(--hp2-err); }
.hp2 .has-error .hp2-input:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }

.hp2-select-wrap { position: relative; }
.hp2-select-wrap::after {
	content: "";
	position: absolute;
	right: 16px; top: 50%;
	width: 8px; height: 8px;
	border-right: 2px solid var(--hp2-muted);
	border-bottom: 2px solid var(--hp2-muted);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.hp2 .hp2-select-wrap select.hp2-input { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }

.hp2-mm { position: relative; }
.hp2 .hp2-mm .hp2-input { padding-right: 46px; }
.hp2-mm > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--hp2-muted); font-size: 14px; pointer-events: none; }

.hp2 .hp2-error { display: none; margin: 6px 0 0; color: var(--hp2-err); font-size: 13px; line-height: 1.35; }
.hp2 .hp2-error.is-on { display: block; }

.hp2-fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.hp2-fieldset:last-child { margin-bottom: 0; }
.hp2 .hp2-fieldset legend { padding: 0; float: left; width: 100%; }
.hp2-fieldset legend + * { clear: both; }

.hp2-grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }

/* Segmented control */
.hp2-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.hp2 .hp2-seg-opt { position: relative; flex: 1 1 auto; margin: 0; cursor: pointer; }
.hp2-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hp2-seg-opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border: 1.5px solid var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	background: #fff;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	color: var(--hp2-ink);
	transition: all .15s;
}
.hp2-seg-opt:hover span { border-color: var(--hp2-blue); }
.hp2-seg-opt input:checked + span { border-color: var(--hp2-blue); background: var(--hp2-blue-50); color: var(--hp2-navy); font-family: var(--hp2-font-b); box-shadow: inset 0 0 0 1px var(--hp2-blue); }
.hp2-seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2-seg-sm .hp2-seg-opt span { min-height: 40px; font-size: 14px; padding: 6px 12px; }

/* Opening chips */
.hp2-opening + .hp2-opening { padding-top: 16px; border-top: 1px solid var(--hp2-line); }
.hp2-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hp2 .hp2-chip { position: relative; margin: 0; cursor: pointer; }
.hp2-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hp2-chip > svg,
.hp2-chip > span { pointer-events: none; }
.hp2-chip .hp2-open-icon {
	width: 30px;
	height: 38px;
	margin: 10px auto 6px;
	position: relative;
	z-index: 1;
}
.hp2-chip > span {
	display: block;
	padding: 0 6px 10px;
	font-size: 13px;
	line-height: 1.25;
	text-align: center;
	color: var(--hp2-ink);
	position: relative;
	z-index: 1;
}
.hp2-chip::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1.5px solid var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	background: #fff;
	transition: all .15s;
}
.hp2-chip:hover::before { border-color: var(--hp2-blue); }
.hp2-chip:has(input:checked)::before { border-color: var(--hp2-blue); background: var(--hp2-blue-50); box-shadow: inset 0 0 0 1px var(--hp2-blue); }
.hp2-chip:has(input:checked) > span { font-family: var(--hp2-font-b); color: var(--hp2-navy); }
.hp2-chip:has(input:focus-visible)::before { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.has-error .hp2-chip::before { border-color: #e7a4a4; }

/* Quantity stepper */
.hp2-stepper { display: flex; align-items: center; gap: 6px; }
.hp2 .hp2-stepper .hp2-input { width: 80px; text-align: center; padding: 0 8px; }
.hp2 .hp2-stepper-btn {
	all: unset;
	box-sizing: border-box;
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border: 1.5px solid var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	background: #fff;
	font-size: 22px;
	color: var(--hp2-navy);
	cursor: pointer;
	user-select: none;
}
.hp2 .hp2-stepper-btn:hover { border-color: var(--hp2-blue); color: var(--hp2-blue-d); }
.hp2 .hp2-stepper-btn:focus-visible { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2-unit { color: var(--hp2-muted); margin-left: 4px; }

/* Services */
.hp2-services { display: grid; grid-template-columns: 1fr; }
.hp2-service { padding: 12px 0; border-top: 1px solid var(--hp2-line); }
.hp2-service:first-child { border-top: 0; padding-top: 0; }
.hp2 .hp2-switch { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; position: relative; min-height: 32px; }
.hp2-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp2-switch-track {
	flex: none;
	position: relative;
	width: 44px; height: 26px;
	border-radius: 999px;
	background: #cfd7df;
	transition: background .2s;
}
.hp2-switch-thumb {
	position: absolute;
	top: 3px; left: 3px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.hp2-switch-input:checked + .hp2-switch-track { background: var(--hp2-blue); }
.hp2-switch-input:checked + .hp2-switch-track .hp2-switch-thumb { transform: translateX(18px); }
.hp2-switch-input:focus-visible + .hp2-switch-track { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2-switch-label { font-size: 15px; line-height: 1.35; color: var(--hp2-ink); }
.hp2-reveal { margin-top: 12px; padding-left: 56px; max-width: 480px; animation: hp2-in .2s ease-out; }
.hp2-reveal-flat { padding-left: 0; max-width: 420px; }
.hp2-reveal .hp2-seg { max-width: 420px; }
.hp2-reveal-width { margin-top: 12px; }
.hp2-reveal .hp2-mm { max-width: 200px; }

/* ---------- Buttons ---------- */
.hp2 .hp2-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 22px;
	border-radius: var(--hp2-r-sm);
	font-family: var(--hp2-font-b);
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background .15s, box-shadow .15s, transform .1s, color .15s;
	-webkit-tap-highlight-color: transparent;
}
.hp2 .hp2-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hp2 .hp2-btn:active { transform: translateY(1px); }
.hp2 .hp2-btn:focus-visible { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2 .hp2-btn-primary { background: var(--hp2-blue); color: #fff; }
.hp2 .hp2-btn-primary:hover { background: var(--hp2-blue-d); color: #fff; }
.hp2 .hp2-btn-secondary { background: #fff; color: var(--hp2-blue-d); border: 1.5px solid var(--hp2-blue); }
.hp2 .hp2-btn-secondary:hover { background: var(--hp2-blue-50); }
.hp2 .hp2-btn-ghost { color: var(--hp2-muted); }
.hp2 .hp2-btn-ghost:hover { color: var(--hp2-navy); background: rgba(11, 41, 62, .05); }
.hp2 .hp2-btn-block { display: flex; width: 100%; }
.hp2 .hp2-btn-lg { min-height: 56px; font-size: 17px; padding: 0 28px; }
.hp2 .hp2-btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hp2 .hp2-btn[disabled] { opacity: .7; cursor: progress; }

.hp2-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: hp2-spin .7s linear infinite; }
.hp2-btn.is-loading .hp2-spinner { display: inline-block; }
@keyframes hp2-spin { to { transform: rotate(360deg); } }

.hp2 .hp2-link {
	all: unset;
	cursor: pointer;
	color: var(--hp2-blue-d);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.hp2 .hp2-link:hover { color: var(--hp2-navy); }
.hp2 .hp2-link:focus-visible { outline: 2px solid var(--hp2-blue); outline-offset: 2px; border-radius: 3px; }
.hp2 .hp2-link-danger { color: var(--hp2-muted); }
.hp2 .hp2-link-danger:hover { color: var(--hp2-err); }

.hp2-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hp2-actions .hp2-btn { width: 100%; }
.hp2 .hp2-form-error { margin: 0 0 4px; padding: 10px 14px; border-radius: var(--hp2-r-sm); background: #fdecec; color: var(--hp2-err); font-size: 14px; }

/* ---------- Added confirmation ---------- */
.hp2-added { background: #fff; border: 1px solid var(--hp2-line); border-radius: var(--hp2-r); padding: 32px 20px; text-align: center; }
.hp2-added .hp2-h2 { text-align: center; margin-bottom: 6px; }
.hp2 .hp2-lead-sm { margin: 0 auto 22px; max-width: 420px; color: var(--hp2-muted); }
.hp2-added-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #e6f4ea; display: grid; place-items: center; animation: hp2-pop .35s cubic-bezier(.2, 1.4, .5, 1); }
.hp2-added-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--hp2-ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hp2-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.hp2-added-actions { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }

/* ---------- Basket ---------- */
.hp2-basket {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 100001;
	max-height: 80vh;
	transform: translateY(105%);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	visibility: hidden;
}
.hp2.basket-open .hp2-basket { transform: none; visibility: visible; }
.hp2-basket-inner {
	background: #fff;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -8px 30px rgba(11, 41, 62, .18);
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	max-height: 80vh;
	overflow-y: auto;
}
.hp2-basket-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hp2 .hp2-basket-title { margin: 0; font-family: var(--hp2-font-b); font-size: 18px; color: var(--hp2-navy); text-align: left; }
.hp2-badge {
	display: inline-grid;
	place-items: center;
	min-width: 24px; height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--hp2-blue);
	color: #fff;
	font-family: var(--hp2-font-b);
	font-size: 13px;
}
.hp2 .hp2-basket-close { all: unset; margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--hp2-muted); }
.hp2 .hp2-basket-close:hover { background: var(--hp2-bg); }
.hp2-basket-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hp2 .hp2-basket-empty { margin: 0; padding: 14px; border: 1.5px dashed var(--hp2-line-d); border-radius: var(--hp2-r-sm); color: var(--hp2-muted); font-size: 14px; text-align: center; }

.hp2 .hp2-items { list-style: none; margin: 0; padding: 0; }
.hp2 .hp2-item { display: flex; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--hp2-line); }
.hp2 .hp2-item:first-child { border-top: 0; padding-top: 4px; }
.hp2 .hp2-item::before { display: none; }
.hp2-item.is-new { animation: hp2-flash 1.6s ease-out; }
@keyframes hp2-flash { 0%, 30% { background: var(--hp2-blue-50); } 100% { background: transparent; } }
.hp2-item-art { flex: none; width: 64px; height: 58px; background: var(--hp2-bg); border-radius: 8px; padding: 4px; }
.hp2-item-art svg { width: 100%; height: 100%; }
.hp2-item-body { min-width: 0; flex: 1; }
.hp2 .hp2-item-title { margin: 0; font-family: var(--hp2-font-b); font-size: 15px; line-height: 1.3; color: var(--hp2-navy); }
.hp2 .hp2-item-dims { margin: 2px 0 0; font-size: 14px; color: var(--hp2-ink); }
.hp2-item-qty { color: var(--hp2-muted); }
.hp2 .hp2-item-meta { margin: 2px 0 0; font-size: 13px; color: var(--hp2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp2-item-actions { display: flex; gap: 16px; margin-top: 6px; }
.hp2-basket-foot { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Mobile bar */
.hp2-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--hp2-line);
	box-shadow: 0 -4px 20px rgba(11, 41, 62, .08);
	backdrop-filter: blur(8px);
}
.hp2 .hp2-bar-summary {
	all: unset;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	cursor: pointer;
	font-size: 15px;
	color: var(--hp2-navy);
}
.hp2-bar-summary svg { width: 18px; height: 18px; fill: none; stroke: var(--hp2-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp2[data-step="3"] #hp2-bar-continue,
.hp2[data-step="3"] #hp2-basket-continue { display: none; }
.hp2-scrim { position: fixed; inset: 0; z-index: 100000; background: rgba(11, 41, 62, .4); animation: hp2-fade .2s; }
@keyframes hp2-fade { from { opacity: 0; } }
html.hp2-lock, html.hp2-lock body { overflow: hidden; }

@media (max-width: 599px) {
	.hp2-reveal { padding-left: 0; }
	.hp2 .hp2-step { flex: 0 0 auto; padding-right: 10px; }
	.hp2 .hp2-step.is-active { flex: 1 1 auto; }
	.hp2 .hp2-step:not(.is-active) .hp2-step-text { display: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
	.hp2-wrap { padding: 0 24px; }
	.hp2-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.hp2-card { padding: 24px; }
	.hp2-grid-2 { grid-template-columns: 1fr 1fr; }
	.hp2-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.hp2-chips-slide { grid-template-columns: repeat(2, minmax(0, 180px)); }
	.hp2-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.hp2-grid-2 .hp2-field-wide { grid-column: 1 / -1; }
	.hp2-actions { flex-direction: row-reverse; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
	.hp2-actions .hp2-btn { width: auto; }
	.hp2-actions .hp2-form-error { flex-basis: 100%; }
	.hp2-added-actions { flex-direction: row-reverse; max-width: none; justify-content: center; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
	.hp2 { padding-bottom: 0; }
	.hp2-hero { padding-top: 44px; }
	.hp2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
	.hp2-types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.hp2-types-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hp2-measure { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; }
	.hp2-preview { position: sticky; top: 140px; }
	.hp2-fields { grid-template-columns: 1fr; }

	.hp2-basket {
		position: sticky;
		top: 140px;
		left: auto; right: auto; bottom: auto;
		z-index: 1;
		max-height: none;
		transform: none;
		visibility: visible;
		transition: none;
	}
	.hp2-basket-inner { border-radius: var(--hp2-r); border: 1px solid var(--hp2-line); box-shadow: var(--hp2-shadow); padding: 20px; max-height: calc(100vh - 160px); }
	.hp2 .hp2-basket-close { display: none; }
	.hp2-bar, .hp2-scrim { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.hp2 *, .hp2 *::before, .hp2 *::after { animation: none !important; transition: none !important; }
}


/* ---------- v2.1 additions ---------- */
.hp2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp2 .hp2-panel-lead { margin: -8px 0 16px; max-width: 640px; }
.hp2 .hp2-optional { font-family: var(--hp2-font); color: var(--hp2-muted); font-size: 13px; }

/* Sliding door chips */
.hp2-chips-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp2-chip .hp2-open-icon-wide { width: 52px; }

/* Quantity next to the measurements */
.hp2-qty { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hp2-line); }
.hp2-erikuju + .hp2-qty { margin-top: 18px; }

/* Custom shape note and upload */
.hp2-note { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--hp2-r-sm); background: var(--hp2-blue-50); }
.hp2 .hp2-note p { margin: 0 0 6px; font-size: 14px; color: var(--hp2-navy); }
.hp2 .hp2-note p:last-child { margin-bottom: 0; }
.hp2-upload { margin-top: 16px; }
.hp2 .hp2-dropzone {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 64px;
	margin: 0;
	padding: 12px 16px;
	border: 1.5px dashed var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	background: #fff;
	color: var(--hp2-muted);
	font-size: 15px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.hp2 .hp2-dropzone:hover, .hp2 .hp2-dropzone.is-over { border-color: var(--hp2-blue); background: var(--hp2-blue-50); }
.hp2 .hp2-dropzone:focus-within { box-shadow: 0 0 0 4px var(--hp2-blue-100); border-color: var(--hp2-blue); }
.hp2-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.hp2-dropzone svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--hp2-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp2-dropzone strong { color: var(--hp2-blue-d); font-family: var(--hp2-font-b); font-weight: normal; }
.hp2 .hp2-files { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.hp2 .hp2-file { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px; border: 1px solid var(--hp2-line); border-radius: var(--hp2-r-sm); background: #fff; }
.hp2 .hp2-file::before { display: none; }
.hp2-file-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--hp2-bg) center / cover no-repeat; display: grid; place-items: center; font: 11px var(--hp2-font-b); color: var(--hp2-muted); }
.hp2-file-thumb .hp2-spinner { display: inline-block; border-color: var(--hp2-line-d); border-top-color: var(--hp2-blue); }
.hp2-file-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp2-file-name small { display: block; color: var(--hp2-muted); font-size: 12px; }
.hp2 .hp2-file-remove { all: unset; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--hp2-muted); cursor: pointer; }
.hp2 .hp2-file-remove:hover { background: var(--hp2-bg); color: var(--hp2-err); }
.hp2 .hp2-file-remove:focus-visible { box-shadow: 0 0 0 3px var(--hp2-blue-100); }
.hp2-file-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Profile and glass cards */
.hp2-cards { display: grid; gap: 10px; }
.hp2-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp2-pick-wrap { position: relative; }
.hp2 .hp2-pick { position: relative; display: block; height: 100%; margin: 0; cursor: pointer; }
.hp2-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hp2-pick-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	background: #fff;
	transition: all .15s;
}
.hp2-pick-wrap .hp2-pick-body { padding-right: 46px; }
.hp2-pick:hover .hp2-pick-body { border-color: var(--hp2-blue); }
.hp2-pick input:checked + .hp2-pick-body { border-color: var(--hp2-blue); background: var(--hp2-blue-50); box-shadow: inset 0 0 0 1px var(--hp2-blue); }
.hp2-pick input:focus-visible + .hp2-pick-body { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2-pick-title { font-family: var(--hp2-font-b); font-size: 16px; line-height: 1.25; color: var(--hp2-navy); }
.hp2-pick-sub { font-size: 14px; color: var(--hp2-muted); }
.hp2-pick-note { font-size: 13px; color: var(--hp2-muted); }
.hp2-glass-icon { display: flex; gap: 4px; height: 26px; margin-bottom: 6px; }
.hp2-glass-icon span { width: 5px; border-radius: 2px; background: linear-gradient(#bcd6f0, #e3eefa); border: 1px solid #8fb0d2; }

.hp2 .hp2-info {
	all: unset;
	position: absolute;
	top: 10px; right: 10px;
	z-index: 2;
	width: 28px; height: 28px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1.5px solid var(--hp2-line-d);
	background: #fff;
	color: var(--hp2-blue-d);
	font: 15px/1 Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: bold;
	cursor: pointer;
}
.hp2 .hp2-info:hover, .hp2 .hp2-info[aria-expanded="true"] { border-color: var(--hp2-blue); background: var(--hp2-blue); color: #fff; }
.hp2 .hp2-info:focus-visible { box-shadow: 0 0 0 4px var(--hp2-blue-100); }
.hp2-pop {
	position: absolute;
	z-index: 20;
	top: 46px;
	right: 0;
	width: min(300px, calc(100vw - 48px));
	padding: 12px 14px;
	border-radius: var(--hp2-r-sm);
	background: var(--hp2-navy);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 10px 30px rgba(11, 41, 62, .25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
	pointer-events: none;
}
.hp2-pop::before { content: ""; position: absolute; top: -6px; right: 18px; width: 12px; height: 12px; background: var(--hp2-navy); transform: rotate(45deg); }
.hp2-pick-wrap.is-open .hp2-pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (hover: hover) {
	.hp2 .hp2-info:hover + .hp2-pop { opacity: 1; visibility: visible; transform: none; }
}

/* Colour swatches */
.hp2-colours + .hp2-colours { padding-top: 16px; border-top: 1px solid var(--hp2-line); }
.hp2-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.hp2 .hp2-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; cursor: pointer; text-align: center; }
.hp2-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp2-swatch-dot {
	position: relative;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: #ccc center / cover no-repeat;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 4.5px transparent;
	transition: box-shadow .15s, transform .15s;
}
.hp2-swatch-dot.is-white { background: linear-gradient(145deg, #ffffff, #eef0f2); box-shadow: inset 0 0 0 1px var(--hp2-line-d), 0 0 0 3px #fff, 0 0 0 4.5px transparent; }
.hp2-swatch-dot.is-custom { background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.hp2-swatch-dot.is-custom::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #fff; }
.hp2-swatch:hover .hp2-swatch-dot { transform: scale(1.05); }
.hp2-swatch input:checked + .hp2-swatch-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--hp2-blue); }
.hp2-swatch input:checked + .hp2-swatch-dot::before {
	content: "";
	position: absolute;
	z-index: 1;
	right: -4px; bottom: -4px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--hp2-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	box-shadow: 0 0 0 2px #fff;
}
.hp2-swatch input:focus-visible + .hp2-swatch-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 7px var(--hp2-blue-100); }
.hp2-swatch-name { font-size: 13px; line-height: 1.25; color: var(--hp2-ink); }
.hp2-swatch input:checked ~ .hp2-swatch-name { font-family: var(--hp2-font-b); color: var(--hp2-navy); }
.hp2-colours .hp2-reveal { margin-top: 16px; }

/* Settlement picker */
.hp2-combo { position: relative; }
.hp2 .hp2-input[disabled] { background: var(--hp2-bg); cursor: not-allowed; }
.hp2 .hp2-combo-list {
	position: absolute;
	z-index: 30;
	left: 0; right: 0; top: calc(100% + 4px);
	max-height: 280px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--hp2-line-d);
	border-radius: var(--hp2-r-sm);
	box-shadow: 0 12px 30px rgba(11, 41, 62, .16);
}
.hp2 .hp2-combo-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 15px; }
.hp2 .hp2-combo-list li::before { display: none; }
.hp2 .hp2-combo-list li small { color: var(--hp2-muted); font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp2 .hp2-combo-list li:hover, .hp2 .hp2-combo-list li[aria-selected="true"] { background: var(--hp2-blue-50); }

/* Basket: chosen options */
.hp2-basket-opts { margin-top: 10px; padding: 12px; border-radius: var(--hp2-r-sm); background: var(--hp2-bg); }
.hp2 .hp2-opts-title { margin: 0 0 2px; font-family: var(--hp2-font-b); font-size: 14px; color: var(--hp2-navy); }
.hp2 .hp2-opts-line { margin: 0 0 2px; font-size: 13px; color: var(--hp2-muted); }
.hp2-basket-opts .hp2-link { margin-top: 4px; font-size: 13px; }
@media (min-width: 600px) {
	.hp2-swatch-dot { width: 56px; height: 56px; }
}
@media (max-width: 380px) {
	.hp2-cards-2 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
	.hp2-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.hp2-chips-slide { grid-template-columns: repeat(2, minmax(0, 200px)); }
}

/* Step 2 link to the Kasulik teada page */
.hp2 .hp2-panel-link { margin: 2px 0 8px; font-size: 15px; }
.hp2 .hp2-panel-link a { color: var(--hp2-blue); font-family: var(--hp2-font-b); text-decoration: underline; text-underline-offset: 3px; }
.hp2 .hp2-panel-link a:hover { color: var(--hp2-blue-d); }

/* Välisuks: optional description and photo */
.hp2-extra .hp2-textarea { margin-top: 6px; }
.hp2-extra .hp2-upload { margin-top: 16px; }

/* Colour magnifier (2026-11-23). The dialog is appended to <body>, outside .hp2. */
.hp2-swatch-cell { position: relative; min-width: 0; }
.hp2-swatch-cell .hp2-swatch { width: 100%; }
.hp2 .hp2-zoom {
	position: absolute;
	z-index: 2;
	top: -8px; left: calc(50% + 12px);
	display: grid; place-items: center;
	width: 26px; height: 26px;
	margin: 0; padding: 0;
	border: 1px solid var(--hp2-line-d);
	border-radius: 50%;
	background: #fff;
	color: var(--hp2-navy);
	box-shadow: 0 1px 4px rgba(11, 41, 62, .18);
	cursor: zoom-in;
	transition: background .15s, color .15s, border-color .15s;
}
.hp2 .hp2-zoom::after { content: ""; position: absolute; inset: -8px; } /* bigger tap area */
.hp2 .hp2-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hp2 .hp2-zoom:hover { background: var(--hp2-blue); border-color: var(--hp2-blue); color: #fff; }
.hp2 .hp2-zoom:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hp2-blue-100); }
@media (min-width: 600px) {
	.hp2 .hp2-zoom { left: calc(50% + 14px); }
}

html.hp2-modal-open, html.hp2-modal-open body { overflow: hidden; }
.hp2-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	background: rgba(11, 41, 62, .72);
	cursor: zoom-out;
	animation: hp2-fade .15s ease-out;
}
.hp2-modal[hidden] { display: none; }
.hp2-modal-box {
	position: relative;
	width: min(420px, 100%);
	padding: 12px 12px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	cursor: default;
	font-family: "MonaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}
.hp2-modal-img { display: block; width: 100%; height: auto; border-radius: 8px; background: #eee; }
.hp2-modal .hp2-modal-title { margin: 12px 0 0; font-family: "MonaSansBold", "MonaSans", sans-serif; font-size: 17px; line-height: 1.3; color: #0b293e; }
.hp2-modal .hp2-modal-note { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #5d6b78; }
.hp2-modal .hp2-modal-x {
	position: absolute;
	z-index: 1;
	top: -14px; right: -14px;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	margin: 0; padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0b293e;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	cursor: pointer;
}
.hp2-modal .hp2-modal-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hp2-modal .hp2-modal-x:hover { background: #3b7dc4; color: #fff; }
.hp2-modal .hp2-modal-x:focus-visible { outline: none; box-shadow: 0 0 0 4px #dce9f7, 0 2px 10px rgba(0, 0, 0, .3); }
@media (max-width: 540px) {
	.hp2-modal .hp2-modal-x { top: 6px; right: 6px; }
}
