.ai-gen-survey {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.ai-gen-survey[hidden] {
	display: none !important;
}

.ai-gen-survey__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 28, 0.55);
}

.ai-gen-survey__panel {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	min-width: 0;
	max-width: calc(100vw - 32px);
	max-height: min(90vh, 640px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	padding: 22px 22px 18px;
	box-sizing: border-box;
}

.ai-gen-survey__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #50575e;
	padding: 4px 8px;
}

.ai-gen-survey__title {
	margin: 0 28px 10px 0;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #1d2327;
}

.ai-gen-survey__body {
	margin: 0 0 16px;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #3c434a;
	white-space: pre-wrap;
}

.ai-gen-survey__comment-label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.9rem;
	color: #1d2327;
}

.ai-gen-survey__comment {
	width: 100%;
	min-height: 88px;
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	resize: vertical;
	font: inherit;
	box-sizing: border-box;
}

.ai-gen-survey__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ai-gen-survey__btn {
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 11px 16px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	min-width: 96px;
}

.ai-gen-survey__body--thanks {
	margin: 8px 0 18px;
	font-size: 1.05rem;
}

.ai-gen-survey__btn--close {
	background: #2271b1;
	color: #fff;
}

.ai-gen-survey__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (min-width: 481px) {
	.ai-gen-survey__actions {
		flex-wrap: nowrap;
		width: max-content;
	}

	.ai-gen-survey__btn {
		white-space: nowrap;
		flex: 0 0 auto;
	}
}

@media (max-width: 480px) {
	.ai-gen-survey__actions {
		flex-direction: column;
	}

	.ai-gen-survey__btn {
		width: 100%;
	}
}
