.aqc-widget {
	--aqc-accent: #0073aa;
	--aqc-icon: #fff;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	font-family: inherit;
}

.aqc-widget *,
.aqc-widget *::before,
.aqc-widget *::after {
	box-sizing: border-box;
}

.aqc-widget--submitted {
	display: none;
}

.aqc-widget__trigger,
.aqc-widget__submit {
	border: 0;
	border-radius: 999px;
	background: var(--aqc-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}

.aqc-widget__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 20px;
}

.aqc-widget__trigger--icon {
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
}

.aqc-widget__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--aqc-icon);
}

.aqc-widget__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aqc-widget__panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	width: min(380px, calc(100vw - 32px));
	max-height: calc(100vh - 110px);
	overflow: auto;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	color: #202124;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
}

.aqc-widget__panel[hidden] {
	display: none;
}

.aqc-widget__form[hidden] {
	display: none;
}

.aqc-widget__panel h2 {
	margin: 0 32px 18px 0;
	font-size: 22px;
	line-height: 1.25;
}

.aqc-widget__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	color: #555;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
}

.aqc-widget__field {
	margin: 0 0 14px;
}

.aqc-widget__field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.aqc-widget__field input,
.aqc-widget__field textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #c8ccd0;
	border-radius: 8px;
	background: #fff;
	color: #202124;
	font: inherit;
}

.aqc-widget__schedule {
	display: block;
	margin-top: 6px;
	color: #646970;
	font-size: 12px;
	font-weight: 400;
}

.aqc-widget__time-error {
	display: block;
	margin-top: 7px;
	padding: 8px 10px;
	border-left: 3px solid #b42318;
	border-radius: 4px;
	background: #fff1f0;
	color: #8a1c13;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.aqc-widget__time-error[hidden] {
	display: none;
}

.aqc-widget__field input[aria-invalid="true"] {
	border-color: #b42318;
}

.aqc-widget__field input:focus,
.aqc-widget__field textarea:focus {
	border-color: var(--aqc-accent);
	outline: 2px solid color-mix(in srgb, var(--aqc-accent) 25%, transparent);
}

.aqc-widget__privacy {
	margin: 0 0 14px;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
}

.aqc-widget__turnstile {
	min-height: 65px;
	margin-bottom: 14px;
}

.aqc-widget__submit {
	width: 100%;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
}

.aqc-widget__submit:disabled {
	cursor: wait;
	opacity: .65;
}

.aqc-widget__response {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
}

.aqc-widget__response.is-success {
	color: #147a32;
}

.aqc-widget__response.is-error {
	color: #b42318;
}

.aqc-widget__success {
	padding: 12px 0 4px;
	text-align: center;
}

.aqc-widget__success[hidden] {
	display: none;
}

.aqc-widget__success h2 {
	margin: 12px 0 8px;
}

.aqc-widget__success p {
	margin: 0 0 10px;
	color: #50575e;
	line-height: 1.5;
}

.aqc-widget__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #e7f7ec;
	color: #147a32;
	font-size: 34px;
	font-weight: 700;
}

.aqc-widget__success-close {
	margin-top: 8px;
	padding: 9px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--aqc-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.aqc-widget__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 600px) {
	body.aqc-widget-open {
		overflow: hidden;
	}

	.aqc-widget {
		right: 16px;
		bottom: 16px;
	}

	.aqc-widget__panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		overscroll-behavior: contain;
		padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
		border-radius: 0;
	}

	.aqc-widget__close {
		top: max(10px, env(safe-area-inset-top));
		right: max(12px, env(safe-area-inset-right));
	}
}
