/* SJ Upload — front-end form.
   Deliberately minimal: inherits the host theme's fonts and colours. */

.sj-upload {
	margin: 1.5em 0;
}

.sj-upload__form {
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 6px;
	padding: 1.25em 1.4em 1em;
	max-width: 34em;
}

.sj-upload__title {
	margin: 0 0 0.4em;
	font-size: 1.15em;
	line-height: 1.3;
}

.sj-upload__intro {
	margin: 0 0 1em;
	opacity: 0.85;
}

.sj-upload__field {
	margin: 0 0 1.1em;
	display: flex;
	flex-direction: column;
}

.sj-upload__label {
	font-weight: 600;
	margin-bottom: 0.35em;
}

.sj-upload__required {
	color: #b32d2e;
	margin-left: 0.15em;
}

.sj-upload__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55em 0.65em;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.sj-upload__input--file {
	padding: 0.5em;
	background: rgba(0, 0, 0, 0.02);
}

.sj-upload__input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.sj-upload__hint {
	margin-top: 0.35em;
	font-size: 0.85em;
	opacity: 0.75;
}

.sj-upload__actions {
	margin: 0;
}

.sj-upload__button {
	font: inherit;
	cursor: pointer;
	padding: 0.6em 1.4em;
	border-radius: 4px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-weight: 600;
}

.sj-upload__button[disabled] {
	opacity: 0.55;
	cursor: progress;
}

/* Honeypot: hidden from people, reachable by bots that ignore CSS. */
.sj-upload__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sj-upload__notice {
	margin: 0 0 1.2em;
	padding: 0.85em 1em;
	border-radius: 4px;
	border-left: 4px solid;
	max-width: 34em;
}

.sj-upload__notice p {
	margin: 0;
}

.sj-upload__notice--success {
	border-color: #1d7a44;
	background: rgba(29, 122, 68, 0.08);
}

.sj-upload__notice--error {
	border-color: #b32d2e;
	background: rgba(179, 45, 46, 0.08);
}

.sj-upload__notice--info {
	border-color: #2b6cb0;
	background: rgba(43, 108, 176, 0.08);
}

.sj-upload__error {
	margin: 0.8em 0 0;
	color: #b32d2e;
	font-size: 0.9em;
}

/* Note field */

.sj-upload__input--note {
	resize: vertical;
	min-height: 3.2em;
	line-height: 1.45;
	font-family: inherit;
}

.sj-upload__note-footer {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	margin-top: 0.35em;
}

.sj-upload__note-footer .sj-upload__hint {
	margin-top: 0;
	flex: 1 1 auto;
}

.sj-upload__counter {
	flex: 0 0 auto;
	font-size: 0.8em;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sj-upload__counter--low {
	opacity: 1;
	color: #8a5a00;
	font-weight: 600;
}
