/* Genereeritud failist assets/src/paring.css — ära muuda siin, muuda src-faili ja käivita tools/build-css.py */
/* =====================================================================
   HELIX — hinnapäring (vorm, tootelehe nupp, hõljuv nupp)
   ===================================================================== */

.hx-inq:not(#hx_),
.hx-inq-fab:not(#hx_),
.hx-inq-btn:not(#hx_) {
	--q-accent: var( --helix-plum, #764452 );
	--q-accent-d: var( --helix-plum-dark, #5E3541 );
	--q-ink:    var( --helix-ink, #1C1C1C );
	--q-muted:  #6B6762;
	--q-line:   #ECE5DA;
	--q-tint:   var( --helix-cream, #F6F1EA );
	--q-ease:   cubic-bezier( .2, .8, .2, 1 );
}

.hx-inq:not(#hx_) *,
.hx-inq-fab:not(#hx_) * { box-sizing: border-box; }

.hx-inq:not(#hx_) button,
.hx-inq-fab:not(#hx_),
.hx-inq-btn:not(#hx_) {
	margin: 0;
	min-width: 0;
	min-height: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
	line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
}

.hx-inq-ico:not(#hx_) { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   Raam: paremalt avanev paneel, telefonis alt
   --------------------------------------------------------------------- */

.hx-inq:not(#hx_) {
	position: fixed;
	inset: 0;
	z-index: 10030;
	color: var( --q-ink );
	font-family: inherit;
}

.hx-inq[hidden]:not(#hx_) { display: none; }

.hx-inq__scrim:not(#hx_) {
	position: absolute;
	inset: 0;
	background: rgba( 28, 22, 20, .42 );
	opacity: 0;
	transition: opacity .3s;
}

.hx-inq.is-open:not(#hx_) .hx-inq__scrim { opacity: 1; }

.hx-inq__panel:not(#hx_) {
	position: absolute;
	top: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-direction: column;
	width: min( 560px, calc( 100vw - 24px ) );
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 80px rgba( 0, 0, 0, .25 );
	transform: translateX( calc( 100% + 24px ) );
	transition: transform .45s var( --q-ease );
}

.hx-inq.is-open:not(#hx_) .hx-inq__panel { transform: none; }

html.hx-inq-open:not(#hx_),
html.hx-inq-open:not(#hx_) body { overflow: hidden; }

.hx-inq__head:not(#hx_) {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 26px 26px 18px;
	border-bottom: 1px solid var( --q-line );
}

.hx-inq:not(#hx_) .hx-inq__title { margin: 0 0 6px; color: var( --q-ink ); font-size: 26px; font-weight: 700; line-height: 1.15; }
.hx-inq:not(#hx_) .hx-inq__lead { margin: 0; color: var( --q-muted ); font-size: 14px; line-height: 1.5; }

.hx-inq:not(#hx_) .hx-inq__close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --q-tint );
	color: var( --q-ink );
	cursor: pointer;
	transition: transform .25s var( --q-ease );
}

.hx-inq:not(#hx_) .hx-inq__close:hover { background: var( --q-tint ); color: var( --q-ink ); transform: rotate( 90deg ); }

.hx-inq__form:not(#hx_) { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; margin: 0; }
.hx-inq__form[hidden]:not(#hx_) { display: none; }

.hx-inq__body:not(#hx_) {
	flex: 1 1 auto;
	min-height: 0;
	padding: 18px 26px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.hx-inq:not(#hx_) .hx-inq__note {
	display: flex;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #F4F0F1; background: color-mix( in srgb, var( --q-accent ) 8%, #fff );
	color: var( --q-ink );
	font-size: 13px;
	line-height: 1.5;
}

.hx-inq__note:not(#hx_) .hx-inq-ico { color: var( --q-accent ); margin-top: 1px; }

/* --- Grupid --- */
.hx-inq:not(#hx_) .hx-inq__group {
	min-width: 0;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.hx-inq:not(#hx_) .hx-inq__group legend {
	margin: 0 0 10px;
	padding: 0;
	color: var( --q-ink );
	font-size: 15px;
	font-weight: 700;
}

/* --- Tooted --- */
.hx-inq:not(#hx_) .hx-inq__items { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.hx-inq__items:empty:not(#hx_) { display: none; }

.hx-inq__item:not(#hx_) {
	display: grid;
	grid-template-columns: 52px minmax( 0, 1fr ) auto 32px;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 8px;
	border: 1px solid var( --q-line );
	border-radius: 16px;
	animation: hx-inq-in .35s var( --q-ease ) both;
}

@keyframes hx-inq-in {
	from { opacity: 0; transform: translateY( 6px ); }
	to   { opacity: 1; transform: none; }
}

.hx-inq__thumb:not(#hx_) {
	display: block;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 12px;
	background: var( --q-tint );
}

.hx-inq:not(#hx_) .hx-inq__thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: multiply; }

.hx-inq__name:not(#hx_) { display: grid; gap: 2px; min-width: 0; }
.hx-inq__name:not(#hx_) strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hx-inq__name:not(#hx_) small { overflow: hidden; color: var( --q-muted ); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.hx-inq__qty:not(#hx_) {
	display: flex;
	align-items: center;
	height: 38px;
	border: 1px solid var( --q-line );
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s;
}

.hx-inq__qty:focus-within:not(#hx_) { border-color: var( --q-ink ); }

.hx-inq:not(#hx_) .hx-inq__qty input,
.hx-inq:not(#hx_) .hx-inq__qty select {
	height: 36px;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var( --q-ink );
	font: inherit;
	font-size: 14px;
	outline: 0;
}

.hx-inq:not(#hx_) .hx-inq__qty input { width: 64px; padding: 0 4px 0 10px; text-align: right; }
.hx-inq:not(#hx_) .hx-inq__qty select { width: auto; padding: 0 22px 0 4px; border-left: 1px solid var( --q-line ); border-radius: 0; background-position: right 6px center; }

.hx-inq:not(#hx_) .hx-inq__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var( --q-muted );
	cursor: pointer;
}

.hx-inq:not(#hx_) .hx-inq__remove:hover { background: var( --q-tint ); color: var( --q-ink ); }
.hx-inq__remove:not(#hx_) svg { width: 16px; height: 16px; }

.hx-inq:not(#hx_) .hx-inq__empty {
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1px dashed var( --q-line );
	border-radius: 14px;
	color: var( --q-muted );
	font-size: 13px;
	line-height: 1.5;
}

.hx-inq__empty[hidden]:not(#hx_) { display: none; }

.hx-inq:not(#hx_) .hx-inq__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var( --q-accent );
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.hx-inq:not(#hx_) .hx-inq__more:hover { color: var( --q-accent-d ); }

/* --- Projekti tüüp --- */
.hx-inq__chips:not(#hx_) { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.hx-inq__chip:not(#hx_) { position: relative; cursor: pointer; }

.hx-inq__chip:not(#hx_) input { position: absolute; opacity: 0; pointer-events: none; }

.hx-inq__chip:not(#hx_) span {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var( --q-line );
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	transition: border-color .2s, background-color .2s, color .2s;
}

.hx-inq__chip:hover:not(#hx_) span { border-color: var( --q-ink ); }
.hx-inq__chip:not(#hx_) input:checked + span { border-color: var( --q-accent ); background: var( --q-accent ); color: #fff; }
.hx-inq__chip:not(#hx_) input:focus-visible + span { outline: 2px solid var( --q-accent ); outline-offset: 2px; }

/* --- Väljad --- */
.hx-inq__grid:not(#hx_) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.hx-inq__field:not(#hx_) { display: grid; gap: 6px; min-width: 0; margin: 0; }
.hx-inq__field--wide:not(#hx_) { grid-column: 1 / -1; }

.hx-inq__field:not(#hx_) > span:first-child { color: var( --q-ink ); font-size: 13px; font-weight: 600; }

.hx-inq:not(#hx_) .hx-inq__field input,
.hx-inq:not(#hx_) .hx-inq__field select,
.hx-inq:not(#hx_) .hx-inq__field textarea {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var( --q-line );
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: var( --q-ink );
	font: inherit;
	font-size: 15px;
	transition: border-color .2s, box-shadow .2s;
}

.hx-inq:not(#hx_) .hx-inq__field textarea { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.hx-inq:not(#hx_) .hx-inq__field input:focus,
.hx-inq:not(#hx_) .hx-inq__field select:focus,
.hx-inq:not(#hx_) .hx-inq__field textarea:focus {
	border-color: var( --q-ink );
	box-shadow: 0 0 0 3px rgba( 118, 68, 82, 0.14 ); box-shadow: 0 0 0 3px color-mix( in srgb, var( --q-accent ) 14%, transparent );
	outline: 0;
}

.hx-inq__suffix:not(#hx_) { position: relative; display: block; }
.hx-inq:not(#hx_) .hx-inq__suffix input { padding-right: 44px; }
.hx-inq__suffix:not(#hx_) em { position: absolute; top: 50%; right: 14px; color: var( --q-muted ); font-size: 14px; font-style: normal; transform: translateY( -50% ); }

.hx-inq__err:not(#hx_) { display: none; color: #B42318; font-size: 12px; }
.is-error:not(#hx_) > .hx-inq__err { display: block; }
.hx-inq:not(#hx_) .is-error input,
.hx-inq:not(#hx_) .is-error textarea { border-color: #B42318; }

/* --- Nõusolek --- */
.hx-inq__consent:not(#hx_) {
	display: grid;
	grid-template-columns: 20px minmax( 0, 1fr );
	gap: 4px 10px;
	align-items: start;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}

.hx-inq:not(#hx_) .hx-inq__consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var( --q-accent ); }
.hx-inq__consent:not(#hx_) a { color: var( --q-accent ); }
.hx-inq__consent:not(#hx_) .hx-inq__err { grid-column: 2; }
.hx-inq__consent.is-error:not(#hx_) span { color: #B42318; }

.hx-inq__hp:not(#hx_) { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Jalus --- */
.hx-inq__foot:not(#hx_) {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 26px;
	padding-bottom: calc( 14px + env( safe-area-inset-bottom, 0px ) );
	border-top: 1px solid var( --q-line );
	background: #fff;
}

.hx-inq:not(#hx_) .hx-inq__msg { flex: 1 1 auto; margin: 0; color: #B42318; font-size: 13px; line-height: 1.4; }

.hx-inq:not(#hx_) .hx-inq__submit {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	margin-left: auto;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var( --q-accent );
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}

.hx-inq:not(#hx_) .hx-inq__submit:hover { background: var( --q-accent-d ); color: #fff; transform: translateY( -1px ); }
.hx-inq:not(#hx_) .hx-inq__submit:disabled { cursor: default; opacity: .8; transform: none; }

.hx-inq__submit.is-busy:not(#hx_) span { opacity: 0; }

.hx-inq__submit.is-busy:not(#hx_)::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid rgba( 255, 255, 255, .4 );
	border-top-color: #fff;
	border-radius: 50%;
	animation: hx-inq-spin .7s linear infinite;
}

@keyframes hx-inq-spin { to { transform: rotate( 360deg ); } }

.hx-inq:not(#hx_) .hx-inq__submit--ghost { margin: 8px 0 0; border: 1px solid var( --q-line ); background: #fff; color: var( --q-ink ); }
.hx-inq:not(#hx_) .hx-inq__submit--ghost:hover { border-color: var( --q-ink ); background: #fff; color: var( --q-ink ); }

/* --- Saadetud --- */
.hx-inq__done:not(#hx_) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
	text-align: center;
}

.hx-inq__done[hidden]:not(#hx_) { display: none; }

.hx-inq__done-ico:not(#hx_) {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var( --q-accent );
	color: #fff;
	animation: hx-inq-pop .5s cubic-bezier( .3, 1.6, .5, 1 ) both;
}

.hx-inq__done-ico:not(#hx_) .hx-inq-ico { width: 30px; height: 30px; }

@keyframes hx-inq-pop {
	from { transform: scale( .4 ); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.hx-inq:not(#hx_) .hx-inq__done h3 { margin: 0 0 8px; color: var( --q-ink ); font-size: 24px; font-weight: 700; }
.hx-inq:not(#hx_) .hx-inq__done p { max-width: 36ch; margin: 0 0 22px; color: var( --q-muted ); font-size: 15px; line-height: 1.5; }

.hx-inq__person:not(#hx_) {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px 12px 12px;
	border-radius: 18px;
	background: var( --q-tint );
	text-align: left;
}

.hx-inq:not(#hx_) .hx-inq__person img { width: 52px; height: 52px; max-width: none; border-radius: 50%; object-fit: cover; }
.hx-inq__person:not(#hx_) div { display: grid; gap: 1px; font-size: 13px; }
.hx-inq__person:not(#hx_) .hx-t { font-size: 15px; }
.hx-inq__person:not(#hx_) span:not(.hx-t) { color: var( --q-muted ); }
.hx-inq__person:not(#hx_) a { color: var( --q-accent ); font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------------
   Hõljuv nupp (tooted ootavad päringus)
   --------------------------------------------------------------------- */

.hx-inq-fab:not(#hx_) {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9993;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 8px 0 20px;
	border: 0;
	border-radius: 999px;
	background: var( --q-ink );
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 14px 34px rgba( 0, 0, 0, .25 );
	cursor: pointer;
	animation: hx-inq-in .4s var( --q-ease ) both;
	transition: transform .2s;
}

.hx-inq-fab[hidden]:not(#hx_) { display: none; }
.hx-inq-fab:hover:not(#hx_) { background: var( --q-ink ); color: #fff; transform: translateY( -2px ); }

.hx-inq-fab:not(#hx_) .hx-inq-fab__n {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border-radius: 999px;
	background: var( --q-accent );
	font-size: 14px;
}

/* ---------------------------------------------------------------------
   Tooteleht
   --------------------------------------------------------------------- */

body.hx-inq-product:not(#hx_) form.cart .single_add_to_cart_button,
body.hx-inq-product:not(#hx_) form.cart .quantity,
body.hx-inq-product:not(#hx_) .woocommerce-variation-price,
body.hx-inq-product:not(#hx_) .woocommerce-variation-availability,
body.hx-inq-product:not(#hx_) .elementor-widget-woocommerce-product-price { display: none !important; }

.hx-inq-btn:not(#hx_) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 54px;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	background: var( --q-accent );
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}

.hx-inq-btn:hover:not(#hx_),
.hx-inq-btn:focus:not(#hx_) { background: var( --q-accent-d ); color: #fff; transform: translateY( -1px ); }

/* ---------------------------------------------------------------------
   Telefon
   --------------------------------------------------------------------- */

@media ( max-width: 767px ) {

	.hx-inq__panel:not(#hx_) {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 94vh;
		max-height: 94dvh;
		border-radius: 24px 24px 0 0;
		transform: translateY( 105% );
	}

	.hx-inq__head:not(#hx_) { padding: 20px 18px 14px; }
	.hx-inq:not(#hx_) .hx-inq__title { font-size: 22px; }
	.hx-inq__body:not(#hx_) { padding: 16px 18px 20px; }
	.hx-inq__foot:not(#hx_) { padding: 12px 18px; padding-bottom: calc( 12px + env( safe-area-inset-bottom, 0px ) ); }
	.hx-inq:not(#hx_) .hx-inq__submit { flex: 1 1 auto; }

	.hx-inq__grid:not(#hx_) { grid-template-columns: 1fr; }

	.hx-inq__item:not(#hx_) { grid-template-columns: 44px minmax( 0, 1fr ) 32px; gap: 10px; }
	.hx-inq__thumb:not(#hx_) { width: 44px; height: 44px; }
	.hx-inq__qty:not(#hx_) { grid-column: 2 / 3; grid-row: 2; justify-self: start; }
	.hx-inq:not(#hx_) .hx-inq__remove { grid-column: 3; grid-row: 1; }

	.hx-inq-fab:not(#hx_) { right: 12px; bottom: calc( 16px + env( safe-area-inset-bottom, 0px ) ); height: 48px; }
	body.hx-has-tabbar:not(#hx_) .hx-inq-fab { bottom: calc( 106px + env( safe-area-inset-bottom, 0px ) ); }
	.hx-inq-fab:not(#hx_) .hx-inq-fab__n { min-width: 32px; height: 32px; }

	.hx-inq-btn:not(#hx_) { width: 100%; }
}

@media ( prefers-reduced-motion: reduce ) {
	.hx-inq__panel:not(#hx_),
	.hx-inq__scrim:not(#hx_) { transition: none; }
	.hx-inq__item:not(#hx_),
	.hx-inq__done-ico:not(#hx_),
	.hx-inq-fab:not(#hx_) { animation: none; }
}
