/* „Kas sul on küsimusi?" nupp */
.wh-help {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 95;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .75rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.wh-help.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Mobiilis on all juba kleepuv CTA-riba: nupp tõuseb selle kohale. */
@media (max-width: 767px) {
	.wh-help {
		bottom: calc(5.25rem + env(safe-area-inset-bottom));
	}

	.wh-help__label {
		display: none;
	}
}

.wh-help__toggle {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 52px;
	padding: .75rem 1.125rem;
	border: 1px solid var(--wh-border, #E3DACB);
	border-radius: 999px;
	background: var(--wh-ink, #0B1220);
	color: var(--wh-bg, #F7F3EC);
	font: 600 .9375rem/1 var(--wh-font-body, system-ui, sans-serif);
	box-shadow: 0 12px 30px -10px rgb(11 18 32 / .45);
	cursor: pointer;
}

.wh-help__toggle:focus-visible {
	outline: 3px solid var(--wh-focus, #B23A10);
	outline-offset: 3px;
}

.wh-help__close {
	display: none;
	transform: rotate(45deg);
}

.wh-help__toggle[aria-expanded="true"] .wh-help__open {
	display: none;
}

.wh-help__toggle[aria-expanded="true"] .wh-help__close {
	display: inline-flex;
}

.wh-help__open,
.wh-help__close {
	display: inline-flex;
}

.wh-help__panel {
	width: min(320px, calc(100vw - 2rem));
	padding: 1.25rem;
	border: 1px solid var(--wh-border, #E3DACB);
	border-radius: 20px;
	background: var(--wh-surface, #fff);
	color: var(--wh-text, #1F2738);
	box-shadow: 0 24px 60px -20px rgb(11 18 32 / .4);
}

.wh-help__panel[hidden] {
	display: none !important;
}

.wh-help__title {
	margin: 0;
	font: 700 1.125rem/1.2 var(--wh-font-display, system-ui, sans-serif);
	color: var(--wh-ink, #0B1220);
}

.wh-help__text {
	margin: .25rem 0 1rem;
	color: var(--wh-muted, #4A5468);
	font-size: .875rem;
}

.wh-help__list {
	display: grid;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wh-help__list a {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 48px;
	padding: .625rem .875rem;
	border: 1px solid var(--wh-border, #E3DACB);
	border-radius: 14px;
	color: var(--wh-ink, #0B1220);
	font-weight: 500;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease;
}

.wh-help__list a:hover {
	border-color: var(--wh-accent, #FF5B2E);
	background: var(--wh-accent-soft, #FFE6DC);
}

.wh-help__list .wh-icon {
	flex-shrink: 0;
	color: var(--wh-accent-ink, #B23A10);
}

@media (prefers-reduced-motion: reduce) {
	.wh-help {
		transition: none;
	}
}

@media print {
	.wh-help {
		display: none;
	}
}
