/*
 * Help panel.
 *
 * Every rule that touches a button declares padding, background, border and
 * colour outright. Astra's own button styles apply to anything shaped like a
 * button and win wherever ours forget to — which is how a previous control
 * ended up 30px wider than its box.
 */

.laeq-sup-launcher {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

.laeq-sup-launcher:hover,
.laeq-sup-launcher:focus {
	background: #333;
	color: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .34);
}

.laeq-sup-launcher:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.laeq-sup-launcher__icon {
	font-size: 17px;
}

.laeq-sup-panel {
	position: fixed;
	right: 18px;
	bottom: 84px;
	z-index: 9991;
	width: min(380px, calc(100vw - 36px));
	max-height: min(76vh, 680px);
	overflow-y: auto;
	padding: 0 0 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

.laeq-sup-panel[hidden] {
	display: none;
}

.laeq-sup-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #eee;
	background: #111;
	color: #fff;
	border-radius: 14px 14px 0 0;
	font-size: 16px;
}

.laeq-sup-close {
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.laeq-sup-close:hover,
.laeq-sup-close:focus {
	background: none;
	color: #bbb;
}

.laeq-sup-form {
	padding: 16px 18px 0;
}

.laeq-sup-inline .laeq-sup-form {
	max-width: 520px;
	padding: 0;
}

.laeq-sup-intro {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.45;
	color: #444;
}

.laeq-sup-form label {
	display: block;
	margin: 12px 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #222;
}

.laeq-sup-form input[type="text"],
.laeq-sup-form input[type="email"],
.laeq-sup-form select,
.laeq-sup-form textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 7px;
	background: #fff;
	color: #111;
	font-size: 15px;
	line-height: 1.35;
}

.laeq-sup-form textarea {
	resize: vertical;
}

.laeq-sup-form input:focus,
.laeq-sup-form select:focus,
.laeq-sup-form textarea:focus {
	border-color: #111;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .12);
}

.laeq-sup-req {
	color: #c00;
}

.laeq-sup-hint {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #666;
}

.laeq-sup-submit {
	width: 100%;
	margin: 16px 0 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.laeq-sup-submit:hover,
.laeq-sup-submit:focus {
	background: #333;
	color: #fff;
}

.laeq-sup-submit[disabled] {
	background: #999;
	color: #fff;
	cursor: default;
}

.laeq-sup-result {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.45;
	/* The reply can be two paragraphs — what happened to the order, then the
	   answer to what they asked. It is set with textContent, deliberately, so
	   the break has to come from here rather than from a <br> in the payload. */
	white-space: pre-line;
}

.laeq-sup-result--ok {
	color: #1a6b32;
}

.laeq-sup-result--bad {
	color: #b3261e;
}

/* Off-screen rather than display:none — a bot reading the DOM sees a normal
   field, and no sighted or screen-reader user ever meets it. */
.laeq-sup-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.laeq-sup-panel {
		right: 10px;
		left: 10px;
		bottom: 78px;
		width: auto;
	}

	.laeq-sup-launcher {
		right: 10px;
		bottom: 10px;
	}

	.laeq-sup-launcher__text {
		display: none;
	}
}
