.at-docs .post-feedback {
	position: relative;
	padding: 36px;
	border-radius: var(--at-docs-radius);
	background: #f3f4f6;
}

.at-docs .post-feedback *,
.at-docs .post-feedback *::before,
.at-docs .post-feedback *::after {
	box-sizing: border-box;
}

.at-docs .post-feedback.hidden,
.at-docs .post-feedback .hidden {
	display: none;
}

.at-docs .post-feedback-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.at-docs .post-feedback-form h3,
.at-docs .post-feedback-confirm h3 {
	margin: 0;
	color: #1f2937;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
}

.at-docs .post-feedback-voting {
	display: flex;
	gap: 12px;
}

.at-docs .post-feedback-voting a {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 44px;
	border-radius: 4px;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	text-decoration: none;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.at-docs .post-feedback-voting .upvote,
.at-docs .post-feedback-voting .downvote {
	background-position: center;
	background-repeat: no-repeat;
}

.at-docs .post-feedback-voting .upvote {
	background-color: #22c55e;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.024 15.524.791 8.291l1.983-1.983 5.25 5.25L19.195.387l1.983 1.983L8.024 15.524Z' fill='%23fff'/%3E%3C/svg%3E");
	background-size: 20px;
}

.at-docs .post-feedback-voting .downvote {
	background-color: #ef4444;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.262 17.663.337 15.738 7.074 9 .337 2.263 2.262.338l6.737 6.737L15.737.338l1.925 1.925L10.924 9l6.738 6.738-1.925 1.925-6.738-6.738Z' fill='%23fff'/%3E%3C/svg%3E");
	background-size: 17px;
}

.at-docs .post-feedback-voting a:hover,
.at-docs .post-feedback-voting a:focus-visible {
	filter: brightness(0.94);
}

.at-docs .post-feedback-voting a.checked {
	opacity: 0.8;
}

.at-docs .post-feedback-voting.disabled a {
	opacity: 0.1;
	cursor: default;
	pointer-events: none;
}

.at-docs .post-feedback-recaptcha {
	order: 3;
	width: 100%;
	text-align: center;
}

.at-docs .post-feedback-recaptcha:empty {
	display: none;
}

.at-docs .post-feedback-comment {
	display: none;
	order: 4;
	width: 100%;
	min-width: 0;
}

.at-docs .post-feedback-comment.open {
	display: block;
}

.at-docs .post-feedback-comment textarea,
.at-docs .post-feedback-comment input[type="email"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--at-docs-line);
	border-radius: 5px;
	background: var(--at-docs-white);
	color: var(--at-docs-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.at-docs .post-feedback-comment textarea {
	min-height: 120px;
	resize: vertical;
}

.at-docs .post-feedback-comment textarea:focus,
.at-docs .post-feedback-comment input:focus {
	border-color: var(--at-docs-primary);
	outline: 3px solid color-mix(in srgb, var(--at-docs-primary) 14%, transparent);
	outline-offset: 0;
}

.at-docs .post-feedback-comment-error {
	display: none;
	margin-top: 10px;
	color: var(--at-docs-danger);
	font-size: 13px;
	line-height: 1.5;
}

.at-docs .post-feedback-comment.error .post-feedback-comment-error {
	display: block;
}

.at-docs .post-feedback-comment.error textarea {
	border-color: var(--at-docs-danger);
}

.at-docs .post-feedback-comment a.button {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 16px;
	padding: 10px 22px;
	border: 1px solid var(--at-docs-primary);
	border-radius: 5px;
	background: var(--at-docs-primary);
	color: var(--at-docs-white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.at-docs .post-feedback-comment a.button:hover,
.at-docs .post-feedback-comment a.button:focus-visible {
	background: var(--at-docs-primary-hover);
	color: var(--at-docs-white);
}

.at-docs .post-feedback-comment.waiting a.button {
	pointer-events: none;
	cursor: wait;
}

.at-docs .post-feedback-comment.waiting a.button span {
	opacity: 0;
}

.at-docs .post-feedback-confirm {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border-radius: inherit;
	background: #f3f4f6;
	text-align: center;
	opacity: 1;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.at-docs .post-feedback-confirm.invisible {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.at-docs .post-feedback .lds-ripple {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.at-docs .post-feedback .waiting .lds-ripple {
	display: block;
}

.at-docs .post-feedback .lds-ripple div {
	position: absolute;
	inset: 3px;
	border: 2px solid currentcolor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: at-docs-feedback-spin 0.75s linear infinite;
}

.at-docs .post-feedback .lds-ripple div + div {
	display: none;
}

@keyframes at-docs-feedback-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.at-docs .post-feedback {
		padding: 22px 18px;
	}

	.at-docs .post-feedback-form {
		flex-direction: column;
		gap: 16px;
	}

	.at-docs .post-feedback-form h3 {
		text-align: center;
	}

	.at-docs .post-feedback-comment textarea,
	.at-docs .post-feedback-comment input[type="email"] {
		font-size: 16px;
	}

	.at-docs .post-feedback-recaptcha {
		max-width: 100%;
		overflow-x: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.at-docs .post-feedback-voting a,
	.at-docs .post-feedback-confirm {
		transition: none;
	}

	.at-docs .post-feedback .lds-ripple div {
		animation-duration: 2s;
	}
}

@media print {
	.at-docs .post-feedback {
		display: none;
	}
}
