/**
 * Kalkulio — «Нашли ошибку?»
 */

.kalkulio-report-error {
	--kre-accent: #f07316;
	--kre-accent-deep: #c2410c;
	--kre-soft: #fff7ed;
	--kre-line: #fdba74;
	--kre-ink: #1c1917;
	--kre-muted: #78716c;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.kalkulio-report-error *,
.kalkulio-report-error *::before,
.kalkulio-report-error *::after,
.kalkulio-report-error-modal *,
.kalkulio-report-error-modal *::before,
.kalkulio-report-error-modal *::after {
	box-sizing: border-box;
}

.kalkulio-report-error--content {
	margin: 1.35rem 0 1.75rem;
	padding: 1rem 1.15rem;
	border: 1.5px solid var(--kre-line);
	border-radius: 18px;
	background: linear-gradient(180deg, var(--kre-soft) 0%, #fff 70%);
}

.kalkulio-report-error--footer {
	margin: 1.1rem 0 0.85rem;
	padding: 0;
	text-align: center;
}

.kalkulio-report-error__trigger {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--kre-accent-deep);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	line-height: 1.3;
}

.kalkulio-report-error__trigger:hover,
.kalkulio-report-error__trigger:focus-visible {
	color: #9a3412;
	outline: none;
}

.kalkulio-report-error__trigger--footer {
	font-size: 0.95rem;
}

.kalkulio-report-error__hint {
	margin: 0.45rem 0 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--kre-muted);
	line-height: 1.45;
}

.kalkulio-report-error--footer .kalkulio-report-error__hint {
	display: none;
}

.kalkulio-report-error-modal[hidden] {
	display: none !important;
}

.kalkulio-report-error-modal:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.kalkulio-report-error-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 25, 23, 0.45);
}

.kalkulio-report-error-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, 440px);
	max-height: min(92vh, 640px);
	overflow: hidden;
	padding: 1.15rem 1.1rem 1rem;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #e7e5e4;
	box-shadow: 0 18px 50px rgba(28, 25, 23, 0.18);
}

.kalkulio-report-error-modal__form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
	margin: 0;
}

.kalkulio-report-error-modal__fields {
	min-height: 0;
	flex: 1 1 auto;
	overflow: auto;
	padding-right: 0.1rem;
}

.kalkulio-report-error-modal__actions {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 0.55rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e7e5e4;
}

.kalkulio-report-error-modal__btn {
	appearance: none !important;
	border: 0;
	cursor: pointer;
	border-radius: 14px;
	padding: 0.8rem 1.05rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.2;
	width: 100%;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: #f07316;
	color: #fff;
}

.kalkulio-report-error-modal__btn--send {
	order: -1;
	background: #f07316 !important;
	color: #fff !important;
}

.kalkulio-report-error-modal__btn:disabled {
	opacity: 0.65 !important;
	cursor: wait;
}

.kalkulio-report-error-modal__btn--ghost {
	background: #fff !important;
	color: #c2410c !important;
	border: 1.5px solid #d6d3d1 !important;
}

@media (min-width: 641px) {
	.kalkulio-report-error-modal__actions {
		flex-direction: row-reverse;
		justify-content: flex-start;
	}
	.kalkulio-report-error-modal__btn {
		width: auto;
		min-width: 8.5rem;
	}
}

@media (max-width: 640px) {
	.kalkulio-report-error--content {
		margin: 1.1rem 0 1.4rem;
		padding: 0.9rem 0.95rem;
	}
	.kalkulio-report-error__trigger {
		font-size: 1rem;
	}
}

.kalkulio-report-error-modal__x {
	position: absolute;
	top: 0.55rem;
	right: 0.65rem;
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	color: #a8a29e;
	cursor: pointer;
	padding: 0.2rem 0.45rem;
}

.kalkulio-report-error-modal__title {
	margin: 0 1.5rem 0.4rem 0;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--kre-ink);
}

.kalkulio-report-error-modal__lead {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--kre-muted);
}

.kalkulio-report-error-modal__label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 800;
	color: #57534e;
}

.kalkulio-report-error-modal__textarea,
.kalkulio-report-error-modal__input {
	width: 100%;
	margin: 0 0 0.85rem;
	padding: 0.7rem 0.8rem;
	border: 1.5px solid #d6d3d1;
	border-radius: 12px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--kre-ink);
	background: #fff;
}

.kalkulio-report-error-modal__textarea:focus,
.kalkulio-report-error-modal__input:focus {
	outline: none;
	border-color: var(--kre-accent);
	box-shadow: 0 0 0 3px rgba(240, 115, 22, 0.18);
}

.kalkulio-report-error-modal__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.kalkulio-report-error-modal__status {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.4;
}

.kalkulio-report-error-modal__status.is-ok {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.kalkulio-report-error-modal__status.is-err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
