.proposal-page {
	min-height: 70vh;
	padding-block: 38px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 52px);
}

.proposal-page__inner {
	display: grid;
	min-width: 0;
}

.proposal-page__header {
	display: grid;
	max-width: 720px;
	gap: 11px;
	padding-bottom: 32px;
}

.proposal-page__header > span {
	color: var(--color-action);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.proposal-page__header h1,
.proposal-page__header p,
.proposal-feedback h2,
.proposal-feedback p {
	margin: 0;
}

.proposal-page__header h1 {
	font-size: 2.15rem;
	line-height: 1.08;
}

.proposal-page__header p {
	color: var(--color-muted);
}

.proposal-page__header .proposal-page__query {
	justify-self: start;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--color-surface-soft);
	color: var(--color-ink);
	font-size: 0.8125rem;
}

.proposal-detected-ean {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	max-width: 820px;
	align-items: center;
	gap: 4px 14px;
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1px solid #cdebd8;
	border-radius: var(--radius-md);
	background: #edf8f1;
}

.proposal-detected-ean span {
	grid-column: 1;
	font-size: 0.75rem;
	font-weight: 750;
}

.proposal-detected-ean strong {
	grid-column: 1;
	font-size: clamp(1.2rem, 5vw, 1.65rem);
	color: var(--color-action);
}

.proposal-detected-ean > .icon {
	grid-column: 2;
	grid-row: 1 / 3;
	width: 26px;
	height: 26px;
	color: var(--color-action);
}

.proposal-form {
	position: relative;
	display: grid;
	max-width: 820px;
	gap: 22px;
	padding: 22px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.proposal-form__field {
	display: grid;
	gap: 7px;
}

.proposal-form__field label,
.proposal-upload strong {
	font-size: 0.8125rem;
	font-weight: 750;
}

.proposal-form__field label small {
	color: var(--color-muted);
	font-weight: 500;
}

.proposal-form__field > small {
	color: var(--color-muted);
	font-size: 0.75rem;
}

.proposal-form__field input {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	padding-inline: 13px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
}

.proposal-form__uploads {
	display: grid;
	gap: 12px;
}

.proposal-upload {
	display: grid;
	min-width: 0;
	gap: 7px;
	padding: 18px;
	border: 1px dashed #b9c4bd;
	border-radius: var(--radius-md);
	background: var(--color-surface-soft);
}

.proposal-upload > .icon {
	width: 28px;
	height: 28px;
	color: var(--color-action);
}

.proposal-upload small {
	color: var(--color-muted);
}

.proposal-upload input {
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
	font-size: 0.75rem;
}

.proposal-upload--barcode {
	max-width: 100%;
}

.proposal-barcode-status {
	display: block;
	margin-top: 4px;
	color: var(--color-muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.proposal-barcode-status[data-state="success"] {
	color: var(--color-action);
}

.proposal-barcode-status[data-state="error"] {
	color: #b42318;
}

.proposal-barcode-candidates {
	display: grid;
	gap: 9px;
	margin-top: 10px;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
}

.proposal-barcode-candidates[hidden] {
	display: none;
}

.proposal-barcode-candidates strong {
	font-size: 0.75rem;
}

.proposal-barcode-candidates label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 750;
}

.proposal-barcode-candidates input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--color-action);
}

.has-js .proposal-page--search .proposal-ean-manual:not(.is-visible) {
	display: none;
}

.proposal-form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.8125rem;
}

.proposal-form__check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--color-action);
}

.proposal-form__submit {
	justify-self: start;
}

.proposal-form__error {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #f3c1c1;
	border-radius: var(--radius-sm);
	background: #fff7f7;
	color: #8a1c1c;
	font-size: 0.8125rem;
}

.proposal-form__error[hidden] {
	display: none;
}

.proposal-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.proposal-feedback {
	display: grid;
	max-width: 720px;
	justify-items: start;
	gap: 12px;
	padding: 24px;
	border-radius: var(--radius-md);
}

.proposal-feedback--success {
	background: #edf8f1;
}

.proposal-feedback--success > .icon {
	width: 34px;
	height: 34px;
	color: var(--color-action);
}

.proposal-feedback--error {
	margin-bottom: 18px;
	border: 1px solid #f3c1c1;
	background: #fff7f7;
}

@media (min-width: 700px) {
	.proposal-form__uploads {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 800px) {
	.proposal-page {
		padding-block: 64px 88px;
	}

	.proposal-page__header h1 {
		font-size: 3rem;
	}

	.proposal-form {
		padding: 30px;
	}
}
