.scl-feedback {
	--scl-ink: #1d2327;
	--scl-muted: #646970;
	--scl-line: rgba(29, 35, 39, 0.12);
	--scl-accent: #0a4b78;
	margin: 2.75rem 0 1.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--scl-line);
	max-width: 40rem;
	color: var(--scl-ink);
	scroll-margin-top: 5rem;
}

.scl-feedback.is-spotlight {
	animation: scl-feedback-spotlight 1.4s ease;
}

@keyframes scl-feedback-spotlight {
	0% {
		box-shadow: 0 0 0 0 rgba(10, 75, 120, 0.35);
	}
	40% {
		box-shadow: 0 0 0 6px rgba(10, 75, 120, 0.12);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(10, 75, 120, 0);
	}
}

.scl-feedback-cta {
	margin: 1.25rem 0 1.5rem;
	max-width: 40rem;
	clear: both;
}

.scl-feedback-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(10, 75, 120, 0.18);
	border-left: 3px solid #0a4b78;
	background: #f3f7fa;
}

/* Hide theme/manual duplicate CTA when plugin feedback form is active. */
body.scl-has-feedback-form .scd-feedback-cta {
	display: none !important;
}

.scl-feedback-cta__text {
	margin: 0;
	flex: 1 1 14rem;
	font-size: 1rem;
	line-height: 1.45;
	color: #1d2327;
}

.scl-feedback-cta__title {
	font-weight: 700;
}

.scl-feedback-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 2.55rem;
	padding: 0.55rem 1.15rem;
	border-radius: 3px;
	background: #0a4b78;
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, transform 0.15s ease;
}

.scl-feedback-cta__btn:hover,
.scl-feedback-cta__btn:focus {
	background: #083a5c;
	color: #fff !important;
	outline: none;
}

.scl-feedback-cta__btn:focus-visible {
	outline: 2px solid #0a4b78;
	outline-offset: 2px;
}

.scl-feedback-cta__btn:active {
	transform: translateY(1px);
}

@media (max-width: 560px) {
	.scl-feedback-cta__inner {
		padding: 0.95rem 1rem;
	}

	.scl-feedback-cta__btn {
		width: 100%;
	}
}

.scl-feedback__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1.15rem;
}

.scl-feedback__heading-block {
	display: grid;
	gap: 0.4rem;
	min-width: 0;
}

.scl-feedback__title {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.25;
}

.scl-feedback__avg {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
}

.scl-feedback__avg-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--scl-ink);
	line-height: 1;
}

.scl-feedback__avg-meta {
	font-size: 0.85rem;
	color: var(--scl-muted);
}

.scl-feedback__count {
	margin: 0;
	font-size: 0.85rem;
	color: var(--scl-muted);
}

.scl-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.05rem;
	line-height: 1;
	letter-spacing: 0.02em;
}

.scl-stars__star {
	font-size: 1.15rem;
	color: #d4d8dc;
}

.scl-stars__star.is-full {
	color: #e6a800;
}

.scl-stars__star.is-half {
	color: #e6a800;
	opacity: 0.55;
}

.scl-stars.is-compact .scl-stars__star {
	font-size: 0.95rem;
}

.scl-feedback__item-title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 650;
	color: var(--scl-ink);
}

.scl-feedback__item-rating {
	display: inline-flex;
	align-items: center;
}

.scl-feedback-cta__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.45rem;
	margin: 0 0 0.55rem;
}

.scl-feedback-cta__avg {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--scl-ink, #1d2327);
}

.scl-feedback-cta__count {
	font-size: 0.82rem;
	color: var(--scl-muted, #646970);
}

.scl-star-input {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 0.15rem;
}

.scl-star-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	clip: rect(0 0 0 0);
	overflow: hidden;
}

.scl-star-input label {
	cursor: pointer;
	padding: 0.1rem;
	line-height: 1;
}

.scl-star-input__icon {
	display: block;
	font-size: 1.75rem;
	color: #d4d8dc;
	transition: color 0.12s ease, transform 0.12s ease;
}

.scl-star-input label:hover .scl-star-input__icon,
.scl-star-input label:hover ~ label .scl-star-input__icon,
.scl-star-input input:checked ~ label .scl-star-input__icon,
.scl-star-input input:focus-visible + label .scl-star-input__icon {
	color: #e6a800;
}

.scl-star-input label:hover .scl-star-input__icon {
	transform: scale(1.08);
}

.scl-feedback__rating-hint {
	margin: 0.4rem 0 0;
	font-size: 0.82rem;
	color: var(--scl-muted);
}

.scl-feedback__top-only[hidden] {
	display: none !important;
}

.scl-feedback__rating-field {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.scl-feedback__rating-field legend {
	padding: 0;
	margin: 0 0 0.4rem;
	font-weight: 600;
	font-size: 0.92rem;
}

.scl-feedback .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.scl-feedback__notice {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.9rem 1rem;
	margin: 0 0 1.25rem;
	border-radius: 3px;
	font-size: 0.95rem;
	line-height: 1.45;
	scroll-margin-top: 5rem;
}

.scl-feedback__notice-icon {
	flex: 0 0 auto;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1;
}

.scl-feedback__notice.is-success .scl-feedback__notice-icon {
	background: #00a32a;
	color: #fff;
}

.scl-feedback__notice.is-error .scl-feedback__notice-icon {
	background: #d63638;
	color: #fff;
}

.scl-feedback__notice-text {
	flex: 1 1 auto;
}

.scl-feedback__notice-close {
	flex: 0 0 auto;
	margin: -0.2rem -0.2rem 0 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}

.scl-feedback__notice-close:hover {
	opacity: 1;
}

.scl-feedback__notice.is-success {
	background: #edfaef;
	color: #0a5c2a;
	border: 1px solid #b8e0c2;
}

.scl-feedback__notice.is-error {
	background: #fcf0f1;
	color: #8a2424;
	border: 1px solid #f0c4c8;
}

.scl-feedback__item.is-highlighted {
	animation: scl-item-highlight 2s ease;
	border-color: rgba(10, 75, 120, 0.45);
	box-shadow: 0 0 0 3px rgba(10, 75, 120, 0.12);
}

.scl-feedback__item.is-replying {
	border-color: rgba(10, 75, 120, 0.28);
}

@keyframes scl-item-highlight {
	0% {
		box-shadow: 0 0 0 0 rgba(10, 75, 120, 0.28);
	}
	40% {
		box-shadow: 0 0 0 6px rgba(10, 75, 120, 0.12);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(10, 75, 120, 0);
	}
}

.scl-feedback-toast {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%) translateY(1rem);
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	width: min(34rem, calc(100vw - 1.5rem));
	padding: 0.9rem 1rem;
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.scl-feedback-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.scl-feedback-toast.is-success {
	background: #0a5c2a;
	color: #fff;
}

.scl-feedback-toast.is-error {
	background: #8a2424;
	color: #fff;
}

.scl-feedback-toast__icon {
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 700;
}

.scl-feedback-toast__text {
	flex: 1 1 auto;
	font-size: 0.95rem;
	line-height: 1.4;
}

.scl-feedback-toast__close {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
}

.scl-feedback__list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.scl-feedback__item {
	display: grid;
	grid-template-columns: 2.4rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	border: 1px solid var(--scl-line);
	background: #fff;
}

.scl-feedback__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: #e8eef3;
	color: var(--scl-accent);
	font-weight: 700;
	font-size: 0.95rem;
}

.scl-feedback__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	margin-bottom: 0.4rem;
	font-size: 0.86rem;
	color: var(--scl-muted);
}

.scl-feedback__author {
	color: var(--scl-ink);
}

.scl-feedback__body {
	line-height: 1.55;
	font-size: 0.98rem;
}

.scl-feedback__body p:last-child {
	margin-bottom: 0;
}

.scl-feedback__actions {
	margin: 0.55rem 0 0;
}

.scl-feedback__reply-toggle {
	padding: 0;
	border: 0;
	background: none;
	color: var(--scl-accent);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.scl-feedback__reply-toggle:hover,
.scl-feedback__reply-toggle:focus {
	color: #083a5c;
	outline: none;
}

.scl-feedback__replies {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	grid-column: 1 / -1;
	display: grid;
	gap: 0.65rem;
}

.scl-feedback__item.is-reply {
	border-left: 3px solid #c5d6e4;
	background: #fafcfd;
}

.scl-feedback__empty {
	color: var(--scl-muted);
	margin: 0 0 1.5rem;
	padding: 0.85rem 1rem;
	background: #f6f7f7;
	border: 1px dashed var(--scl-line);
}

.scl-feedback__form-wrap {
	padding: 1.15rem 1.2rem 1.25rem;
	border: 1px solid var(--scl-line);
	background: linear-gradient(180deg, #fbfbfc 0%, #f5f6f7 100%);
}

.scl-feedback__form-title {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.scl-feedback__hint {
	margin: 0 0 1.1rem;
	color: var(--scl-muted);
	font-size: 0.9rem;
}

.scl-feedback__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1rem;
}

.scl-feedback__field {
	margin: 0 0 0.95rem;
}

.scl-feedback__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.scl-req {
	color: #b32d2e;
}

.scl-feedback__field input,
.scl-feedback__field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	font: inherit;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scl-feedback__field input:focus,
.scl-feedback__field textarea:focus {
	border-color: var(--scl-accent);
	box-shadow: 0 0 0 2px rgba(10, 75, 120, 0.15);
	outline: none;
}

.scl-feedback__captcha-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.scl-feedback__captcha-code {
	display: inline-flex;
	align-items: center;
	min-height: 2.35rem;
	padding: 0.35rem 0.75rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	background: #1d2327;
	color: #f0f0f1;
	border-radius: 3px;
	user-select: none;
}

.scl-feedback__refresh {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 2.35rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: #fff;
	color: var(--scl-ink);
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
}

.scl-feedback__refresh:hover {
	border-color: var(--scl-accent);
	color: var(--scl-accent);
}

.scl-feedback__refresh:disabled {
	opacity: 0.55;
	cursor: wait;
}

.scl-feedback__refresh.is-done {
	border-color: #00a32a;
	color: #007a20;
}

.scl-feedback__captcha-input,
.scl-feedback__field input.scl-feedback__captcha-input {
	width: 6.75rem;
	max-width: 6.75rem;
	min-height: 2.35rem;
	padding: 0.35rem 0.5rem;
	font-size: 0.88rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
}

.scl-feedback__captcha-hint {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	color: var(--scl-muted);
}

.scl-feedback__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.35rem 0 0;
}

.scl-feedback__reply-anchor {
	margin-top: 0.65rem;
}

.scl-feedback__respond.is-reply-mode {
	margin: 0.35rem 0 0.5rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid #d8dde3;
	border-radius: 4px;
	background: #f8fafc;
}

.scl-feedback__reply-context {
	margin: 0 0 0.75rem;
	padding: 0.4rem 0.65rem;
	border-left: 3px solid var(--scl-accent);
	background: #fff;
	color: var(--scl-muted);
	font-size: 0.88rem;
}

.scl-feedback__item.is-replying > .scl-feedback__content {
	outline: 1px solid rgba(34, 113, 177, 0.25);
	outline-offset: 4px;
	border-radius: 4px;
}

.scl-feedback__cancel-reply {
	padding: 0.45rem 0.85rem;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: #fff;
	color: var(--scl-ink);
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	min-height: 2.6rem;
}

.scl-feedback__cancel-reply:hover {
	border-color: var(--scl-accent);
	color: var(--scl-accent);
}

.scl-feedback__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0.55rem 1.25rem;
	border: 0;
	border-radius: 3px;
	background: var(--scl-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.scl-feedback__button:hover {
	background: #083a5c;
}

.scl-feedback__button:focus {
	outline: 2px solid var(--scl-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 560px) {
	.scl-feedback__grid {
		grid-template-columns: 1fr;
	}

	.scl-feedback__item {
		grid-template-columns: 1fr;
	}

	.scl-feedback__avatar {
		display: none;
	}

	.scl-feedback__form-wrap {
		padding: 1rem;
	}
}
