.snwr-lesson-feedback {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 20px 0;
	padding: 20px 24px;
	border: 1px solid var(--snwr-border, #e2e8f0);
	border-radius: 12px;
	background: var(--snwr-surface, #f8fafc);
}

.snwr-lesson-feedback__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--snwr-accent-soft, #e8f7f0);
	color: var(--snwr-accent, #047857);
}

.snwr-lesson-feedback__body {
	flex: 1 1 auto;
	min-width: 0;
}

.snwr-lesson-feedback h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--snwr-text, #1f2933);
}

.snwr-lesson-feedback__signin {
	margin: 4px 0 0;
	color: #b91c1c;
	font-size: 14px;
}

.snwr-lesson-feedback__thanks {
	margin: 4px 0 0;
	color: var(--snwr-accent, #047857);
	font-size: 13px;
}

.snwr-lesson-feedback__thanks.snwr-is-error {
	color: #b91c1c;
}

.snwr-lesson-feedback__report-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--snwr-accent, #047857);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.snwr-lesson-feedback__report-link svg {
	flex: none;
}

.snwr-lesson-feedback__actions {
	display: flex;
	gap: 10px;
	flex: none;
}

.snwr-lesson-feedback__actions button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--snwr-border, #d7dde4);
	border-radius: 8px;
	background: #ffffff;
	color: var(--snwr-text, #1f2933);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.snwr-lesson-feedback__actions button:hover,
.snwr-lesson-feedback__actions button:focus-visible,
.snwr-lesson-feedback__actions button.snwr-is-selected {
	border-color: var(--snwr-accent, #047857);
	background: var(--snwr-accent-soft, #ecfdf5);
	color: #065f46;
}

.snwr-lesson-feedback button:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Report an issue modal - same overlay/dialog/focus-trap pattern as the
 * site's login modal (.snwr-auth-modal in snwr-tutorial.css), kept as its
 * own component since it has nothing else in common with that modal. */
.snwr-report-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: grid;
	place-items: center;
	padding: 18px;
}

.snwr-report-modal[hidden] {
	display: none;
}

.snwr-report-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
}

.snwr-report-modal__dialog {
	position: relative;
	width: min(520px, calc(100vw - 32px));
	max-height: min(600px, calc(100vh - 32px));
	overflow-y: auto;
	padding: 28px;
	border: 1px solid #d8e2ed;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.34);
}

.snwr-report-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.snwr-report-modal__close:hover,
.snwr-report-modal__close:focus-visible {
	background: #e2e8f0;
}

.snwr-report-modal__header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 32px 18px 0;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--snwr-border, #e2e8f0);
}

.snwr-report-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: #eef1f4;
	color: #52606d;
}

.snwr-report-modal__header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--snwr-text, #1f2933);
}

.snwr-report-modal__header p {
	margin: 4px 0 0;
	color: var(--snwr-muted, #52606d);
	font-size: 14px;
	line-height: 1.5;
}

.snwr-lesson-report {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.snwr-lesson-report label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--snwr-text, #1f2933);
}

.snwr-lesson-report__required {
	color: #dc2626;
}

.snwr-lesson-report select,
.snwr-lesson-report textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--snwr-border, #cbd5e1);
	border-radius: 8px;
	background: #ffffff;
	font: inherit;
	font-size: 14px;
	color: var(--snwr-text, #1f2933);
}

.snwr-lesson-report textarea {
	resize: vertical;
}

.snwr-lesson-report__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 4px;
}

.snwr-lesson-report__footer span {
	margin-right: auto;
	color: var(--snwr-accent, #047857);
	font-size: 13px;
}

.snwr-lesson-report__footer .snwr-is-error {
	color: #b91c1c;
}

.snwr-lesson-report button[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--snwr-accent, #047857);
	border-radius: 8px;
	background: var(--snwr-accent, #047857);
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.snwr-lesson-report button[type="submit"]:disabled {
	opacity: 0.6;
	cursor: default;
}

.snwr-lesson-report__cancel {
	padding: 10px 14px;
	border: 1px solid var(--snwr-border, #cbd5e1);
	border-radius: 8px;
	background: #ffffff;
	color: var(--snwr-muted, #52606d);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.snwr-lesson-report__cancel:hover,
.snwr-lesson-report__cancel:focus-visible {
	background: #f1f5f9;
}

.snwr-lesson-report__cancel:disabled {
	opacity: 0.6;
	cursor: default;
}

.snwr-lesson-report__cancel-hint {
	margin: 6px 0 0;
	color: var(--snwr-muted, #52606d);
	font-size: 12px;
	text-align: right;
}

@media (max-width: 640px) {
	.snwr-lesson-feedback {
		flex-direction: column;
	}

	.snwr-lesson-feedback__actions {
		width: 100%;
	}

	.snwr-lesson-feedback__actions button {
		flex: 1 1 0;
		justify-content: center;
	}

	.snwr-report-modal__dialog {
		padding: 22px;
	}

	.snwr-lesson-report__footer {
		align-items: flex-start;
		flex-direction: column;
	}
}
