.editor-xml-upload {
	display: grid;
	gap: 0.55rem;
}

.editor-privacy-notice {
	margin: 0;
	padding: 0.65rem 0.7rem;
	border-left: 0.2rem solid var(--editor-brand);
	background: #f1f6f3;
	color: #455149;
	font-size: 0.65rem;
	line-height: 1.5;
}

.editor-logo-upload {
	display: grid;
	gap: 0.55rem;
}

.editor-upload-card--xml {
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.editor-upload-card--logo {
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.editor-upload-card--xml:hover:not(:disabled) {
	border-color: #aebfb3;
	box-shadow: 0 0.65rem 1.55rem rgba(43, 64, 51, 0.08);
	transform: translateY(-0.06rem);
}

.editor-upload-card--logo:hover:not(:disabled) {
	border-color: #c8ae9d;
	box-shadow: 0 0.65rem 1.55rem rgba(78, 50, 32, 0.08);
	transform: translateY(-0.06rem);
}

.editor-upload-card--xml:focus-visible {
	border-color: var(--editor-brand-dark);
	outline: 0.18rem solid rgba(36, 54, 42, 0.45);
	outline-offset: 0.12rem;
}

.editor-upload-card--logo:focus-visible {
	border-color: #6e4932;
	outline: 0.18rem solid rgba(141, 102, 77, 0.4);
	outline-offset: 0.12rem;
}

.editor-upload-card--xml[data-drag-active="true"] {
	border-color: var(--editor-brand);
	background: #f1f6f3;
	box-shadow: 0 0 0 0.18rem rgba(111, 143, 121, 0.18);
}

.editor-upload-card--logo[data-drag-active="true"] {
	border-color: #8d664d;
	background: #fbf6f2;
	box-shadow: 0 0 0 0.18rem rgba(141, 102, 77, 0.16);
}

.editor-xml-upload[data-state="valid"] .editor-upload-card--xml {
	border-color: var(--editor-brand);
	background: #f7faf8;
}

.editor-xml-upload[data-state="sending"] .editor-upload-card--xml {
	cursor: wait;
	opacity: 0.78;
}

.editor-logo-upload[data-state="processing"] .editor-upload-card--logo {
	cursor: wait;
	opacity: 0.78;
}

.editor-logo-upload[data-state="ready"] .editor-upload-card--logo {
	border-color: #8d664d;
	background: #fcf9f7;
}

.editor-logo-upload[data-state="rejected"] .editor-upload-card--logo {
	border-color: #c77a70;
	background: #fffafa;
}

.editor-xml-upload[data-state="rejected"] .editor-upload-card--xml {
	border-color: #c77a70;
	background: #fffafa;
}

.editor-upload-feedback {
	min-height: 1.9rem;
	padding-inline: 0.15rem;
}

.editor-upload-feedback p {
	min-width: 0;
	margin: 0;
	color: #657068;
	font-size: 0.64rem;
	line-height: 1.35;
}

.editor-logo-upload__feedback {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 0.75rem;
}

.editor-logo-upload__feedback p {
	flex: 1;
}

.editor-logo-upload__remove {
	min-height: 2.75rem;
	flex: 0 0 auto;
	padding: 0.35rem 0.2rem;
	border: 0;
	background: transparent;
	color: #8d4c3f;
	font-size: 0.64rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.14rem;
}

.editor-logo-upload__remove:focus-visible {
	border-radius: 0.15rem;
	outline: 0.15rem solid rgba(141, 76, 63, 0.45);
	outline-offset: 0.12rem;
}

.editor-upload-card__icon--logo {
	overflow: hidden;
}

.editor-upload-card__icon--logo img {
	width: 100%;
	height: 100%;
	display: block;
	padding: 0.22rem;
	object-fit: contain;
}

.editor-logo-upload[data-state="ready"] .editor-upload-card__icon--logo svg {
	display: none;
}

.editor-xml-upload[data-state="rejected"] .editor-upload-feedback p {
	color: #9c4036;
}

.editor-xml-upload[data-state="valid"] .editor-upload-feedback p {
	color: #426c50;
}

.editor-logo-upload[data-state="rejected"] .editor-upload-feedback p {
	color: #9c4036;
}

.editor-logo-upload[data-state="ready"] .editor-upload-feedback p {
	color: #426c50;
}

.editor-document__state[data-state="sending"] .editor-document__indicator {
	background: #c58a35;
	box-shadow: 0 0 0 0.25rem rgba(197, 138, 53, 0.13);
}

.editor-document__state[data-state="valid"] .editor-document__indicator {
	background: #58ad71;
	box-shadow: 0 0 0 0.25rem rgba(88, 173, 113, 0.13);
}

.editor-document__state[data-state="rejected"] .editor-document__indicator {
	background: #bd5f55;
	box-shadow: 0 0 0 0.25rem rgba(189, 95, 85, 0.13);
}

@media (prefers-reduced-motion: reduce) {
	.editor-upload-card--xml {
		transition: none;
	}

	.editor-upload-card--logo {
		transition: none;
	}
}
