/**
 * plugins/generic/editorialRecord/css/frontend.css
 *
 * Public tracking page (.er-track) and sidebar block (.er-track-block).
 * Deliberately minimal and scoped, so it inherits the journal theme's fonts
 * and colours and does not override anything else.
 */

/* Sidebar block */
.er-track-block label {
	display: block;
	margin-bottom: 0.25em;
	font-size: 0.9em;
}

.er-track-block input[type="text"] {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-bottom: 0.5em;
	padding: 0.4em 0.5em;
	text-transform: uppercase;
}

.er-track-block button {
	cursor: pointer;
}

/* Tracking page */
.er-track {
	max-width: 640px;
}

.er-track__box {
	padding: 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
}

.er-track__heading {
	margin-top: 0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.er-track__form label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: bold;
}

.er-track__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.er-track__row input[type="text"] {
	flex: 1 1 200px;
	min-width: 0;
	box-sizing: border-box;
	padding: 0.5em 0.6em;
	font-size: 1.05em;
	text-transform: uppercase;
}

.er-track__row button {
	flex: 0 0 auto;
	cursor: pointer;
}

.er-track__message {
	margin: 1em 0;
	padding: 0.75em 1em;
	border-radius: 4px;
}

.er-track__message--error {
	border: 1px solid #e4a3a3;
	background: #fdf0f0;
	color: #8a1c1c;
}

.er-track__result {
	margin-top: 1.25em;
	padding: 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
}

.er-track__result h2 {
	margin-top: 0;
}

.er-track__details {
	margin: 0 0 1em;
}

.er-track__details dt {
	margin-top: 0.5em;
	font-size: 0.85em;
	opacity: 0.75;
}

.er-track__details dd {
	margin: 0;
}

.er-track__title {
	font-weight: bold;
}

.er-track__steps {
	margin: 1em 0;
	padding: 0;
	list-style: none;
}

.er-track__step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.35em 0;
	opacity: 0.55;
}

.er-track__step + .er-track__step::before {
	content: "";
	position: absolute;
	top: -0.55em;
	left: 0.5em;
	height: 0.9em;
	border-left: 2px solid currentColor;
	opacity: 0.4;
}

.er-track__step.is-done {
	opacity: 1;
}

.er-track__step.is-current .er-track__label {
	font-weight: bold;
}

.er-track__dot {
	display: inline-block;
	width: 1.1em;
	font-size: 1.1em;
	line-height: 1;
	text-align: center;
	color: #1d9b50;
}

.er-track__step:not(.is-done) .er-track__dot {
	color: inherit;
}

.er-track__status {
	display: inline-block;
	margin-left: 0.25em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.er-track__button {
	display: inline-block;
	padding: 0.5em 1em;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
}

.er-track__button--letter {
	border-color: #6b3fa0;
	color: #6b3fa0;
}
