.ttakdap-feedback {
	background: var(--wp--preset--color--accent-5, #fbfaf3);
	border: 1px solid rgba(17, 17, 17, 0.2);
	border-radius: 12px;
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast, #111111);
	margin-block: var(--wp--preset--spacing--60, 3rem) 0;
	padding: var(--wp--preset--spacing--40, 1.875rem);
}

.ttakdap-feedback__interactive[aria-busy='true'] {
	cursor: wait;
}

.ttakdap-feedback__title {
	font-size: var(--wp--preset--font-size--large, 1.35rem);
	line-height: 1.35;
	margin: 0;
}

.ttakdap-feedback__choices,
.ttakdap-feedback__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 1.25rem;
}

.ttakdap-feedback__button {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 8px;
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	justify-content: center;
	line-height: 1.35;
	min-height: 48px;
	padding: 0.7rem 1rem;
	text-align: center;
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.ttakdap-feedback__button:hover {
	background: rgba(17, 17, 17, 0.07);
}

.ttakdap-feedback__button:focus-visible,
.ttakdap-feedback__reason input:focus-visible,
.ttakdap-feedback__textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3, #503aa8);
	outline-offset: 3px;
}

.ttakdap-feedback__button:disabled,
.ttakdap-feedback input:disabled,
.ttakdap-feedback textarea:disabled {
	cursor: wait;
	opacity: 0.65;
}

.ttakdap-feedback__button--primary {
	background: var(--wp--preset--color--contrast, #111111);
	border-color: var(--wp--preset--color--contrast, #111111);
	color: var(--wp--preset--color--base, #ffffff);
}

.ttakdap-feedback__button--primary:hover {
	background: #333333;
	border-color: #333333;
}

.ttakdap-feedback__form {
	border-block-start: 1px solid rgba(17, 17, 17, 0.18);
	margin-block-start: 1.5rem;
	padding-block-start: 1.5rem;
}

.ttakdap-feedback__form[hidden],
.ttakdap-feedback__interactive[hidden] {
	display: none !important;
}

.ttakdap-feedback__fieldset {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.ttakdap-feedback__legend,
.ttakdap-feedback__label {
	display: block;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.45;
}

.ttakdap-feedback__label {
	margin-block-start: 1.5rem;
}

.ttakdap-feedback__label span {
	font-size: 0.9em;
	font-weight: 400;
}

.ttakdap-feedback__hint,
.ttakdap-feedback__notice,
.ttakdap-feedback__counter,
.ttakdap-feedback__status,
.ttakdap-feedback__noscript {
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.55;
}

.ttakdap-feedback__hint {
	margin: 0.35rem 0 0;
}

.ttakdap-feedback__reasons {
	display: grid;
	gap: 0.55rem;
	margin-block-start: 1rem;
}

.ttakdap-feedback__reason {
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(17, 17, 17, 0.16);
	border-radius: 8px;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	font-size: 1rem;
	gap: 0.7rem;
	line-height: 1.45;
	min-height: 48px;
	padding: 0.75rem;
}

.ttakdap-feedback__reason-error {
	color: #8c1d18;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	font-weight: 600;
	line-height: 1.5;
	margin: 0.65rem 0 0;
}

.ttakdap-feedback__reason-error[hidden] {
	display: none;
}

.ttakdap-feedback__reason:hover {
	border-color: rgba(17, 17, 17, 0.45);
}

.ttakdap-feedback__reason:has(input:checked) {
	background: #ffffff;
	border-color: var(--wp--preset--color--contrast, #111111);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--contrast, #111111);
}

.ttakdap-feedback__reason input {
	accent-color: var(--wp--preset--color--accent-3, #503aa8);
	flex: 0 0 auto;
	height: 1.15rem;
	margin: 0.12rem 0 0;
	width: 1.15rem;
}

.ttakdap-feedback__textarea {
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.45);
	border-radius: 8px;
	box-sizing: border-box;
	color: inherit;
	display: block;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	margin-block-start: 0.6rem;
	max-width: 100%;
	min-height: 8rem;
	padding: 0.8rem;
	resize: vertical;
	width: 100%;
}

.ttakdap-feedback__counter {
	margin: 0.35rem 0 0;
	text-align: end;
}

.ttakdap-feedback__notice {
	margin: 0.55rem 0 0;
}

.ttakdap-feedback__status {
	margin: 0;
}

.ttakdap-feedback__status:empty {
	display: none;
}

.ttakdap-feedback__status.is-progress,
.ttakdap-feedback__status.is-error,
.ttakdap-feedback__status.is-success {
	border-radius: 8px;
	font-weight: 600;
	margin-block-start: 1rem;
	padding: 0.85rem 1rem;
}

.ttakdap-feedback__status.is-progress {
	background: rgba(80, 58, 168, 0.08);
}

.ttakdap-feedback__status.is-error {
	background: #fce8e6;
	color: #8c1d18;
}

.ttakdap-feedback__status.is-success {
	background: #e6f4ea;
	color: #145a28;
	font-size: 1rem;
}

.ttakdap-feedback__honeypot {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (max-width: 480px) {
	.ttakdap-feedback {
		padding: var(--wp--preset--spacing--30, 1.25rem);
	}

	.ttakdap-feedback__choices,
	.ttakdap-feedback__actions {
		flex-direction: column;
	}

	.ttakdap-feedback__button {
		width: 100%;
	}
}

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

@media (forced-colors: active) {
	.ttakdap-feedback,
	.ttakdap-feedback__button,
	.ttakdap-feedback__reason,
	.ttakdap-feedback__textarea,
	.ttakdap-feedback__status {
		background: Canvas;
		border-color: CanvasText;
		color: CanvasText;
	}
}

@media print {
	.ttakdap-feedback {
		display: none;
	}
}
