/*
 * The consultation card («Запитайте Лисю»), one line tall.
 *
 * A quiet card in the trust zone: it insures the hesitant, it must never
 * outshine the buy button. The fox supplies the warmth; the chrome stays
 * neutral — white ground, hairline border, brand-coloured pills for the
 * three channels, and one small honesty line under them.
 */
.gsl-consult {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
	margin-block: 0;
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
}

.gsl-consult__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--gold);
}

.gsl-consult__avatar svg {
	display: block;
}

.gsl-consult__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	min-width: 0;
}

/* The question and «Наша команда завжди відповість» read as one sentence. */
.gsl-consult__ask {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.gsl-consult__lead {
	color: var(--wp--preset--color--muted);
}

.gsl-consult__heading {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.gsl-consult__channels {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

.gsl-consult__channel {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	color: var(--wp--preset--color--brand-text);
	background: var(--wp--preset--color--surface-soft);
	border: 1.5px solid var(--wp--preset--color--brand-action);
	border-radius: var(--wp--custom--radius--pill);
	text-decoration: none;
	white-space: nowrap;
}

.gsl-consult__channel:hover {
	background: var(--wp--preset--color--brand-wash);
}

.gsl-consult__body {
	font-size: var(--wp--preset--font-size--label);
	color: var(--wp--preset--color--muted);
}

/* One line on the product page (template className `is-style-line`,
   owner 30.09.2026): the fox, the question and the three channels as
   links, inside the same quiet frame as the assurances — one box where
   there were five. The honesty line goes; the manager asks the article. */
.gsl-consult.is-style-line {
	gap: var(--wp--preset--spacing--20);
	padding: 0;
	background: none;
	border: 0;
}

.gsl-consult.is-style-line .gsl-consult__avatar {
	width: 36px;
	height: 36px;
}

.gsl-consult.is-style-line .gsl-consult__avatar svg {
	width: 30px;
	height: 30px;
}

.gsl-consult.is-style-line .gsl-consult__text {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--wp--preset--spacing--30);
	row-gap: 0;
}

.gsl-consult.is-style-line .gsl-consult__channels {
	gap: var(--wp--preset--spacing--30);
}

.gsl-consult.is-style-line .gsl-consult__channel {
	position: relative;
	min-height: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The finger still gets 44px: the zone grows, the word stays small. */
.gsl-consult.is-style-line .gsl-consult__channel::after {
	content: "";
	position: absolute;
	left: -6px;
	right: -6px;
	top: 50%;
	height: 44px;
	transform: translateY(-50%);
}

.gsl-consult.is-style-line .gsl-consult__body {
	display: none;
}

/* «Замовити дзвінок» opens the call-back under the line (owner, 16.10.2026):
   «+380 __» with the round gold arrow, as in the contact button, and the
   note that turns into the countdown. The whole row, on its own line. */
.gsl-consult__call {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--wp--preset--spacing--20);
	flex-basis: 100%;
	min-width: 0;
	margin-top: var(--wp--preset--spacing--20);
}

/* Open, the card is taller than the fox: she stays by the question. */
.gsl-consult:has(.gsl-consult__call:not([hidden])) {
	align-items: flex-start;
}

/* The text column takes what is left beside the fox, so the form fits it
   rather than pushing the arrow past the card's edge. */
.gsl-consult.is-style-line .gsl-consult__text {
	flex: 1 1 0;
}

.gsl-consult__call[hidden] {
	display: none;
}

.gsl-consult__form {
	display: flex;
	flex-basis: 100%;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 320px;
}

.gsl-consult__form[hidden] {
	display: none;
}

.gsl-consult__prefix {
	flex: none;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

.gsl-consult__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 40px;
	padding: 0 var(--wp--preset--spacing--20);
	border: 0;
	border-bottom: 1.5px solid var(--wp--preset--color--border-strong);
	border-radius: 0;
	background: none;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0.02em;
}

.gsl-consult__input:focus {
	outline: 0;
	border-bottom-color: var(--wp--preset--color--brand-action);
}

.gsl-consult__send {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--gold);
	cursor: pointer;
}

.gsl-consult__send svg {
	display: block;
}

.gsl-consult__send:hover,
.gsl-consult__send:focus-visible {
	background: var(--wp--preset--color--gold-hover);
}

.gsl-consult__send:disabled {
	opacity: 0.6;
}

.gsl-consult__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.gsl-consult__note {
	margin: 6px 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
	color: var(--wp--preset--color--muted);
}

.gsl-consult__note.is-ok {
	color: var(--wp--preset--color--in-stock);
}

.gsl-consult__note.is-error {
	color: var(--wp--preset--color--sale);
}

.gsl-consult__again {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--brand-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.gsl-consult__again[hidden] {
	display: none;
}
