/*
 * The reviewer portal's newer parts, on top of portal.css: scoring by criteria, photo
 * previews and details, the editor's save bar, products, earnings and the handbook.
 */

/* Messages, with its word beside the icon. */
.bud-p-icon-link.has-label {
	width: auto;
	gap: 0.4rem;
	padding: 0 0.85rem 0 0.6rem;
	border-radius: 999px;
	grid-auto-flow: column;
}

.bud-p-icon-label {
	font-size: 0.92rem;
	font-weight: 600;
}

.bud-p-icon-link.has-label .bud-p-count {
	position: static;
}

@media (max-width: 760px) {
	.bud-p-icon-label {
		display: none;
	}

	.bud-p-icon-link.has-label {
		width: 40px;
		padding: 0;
	}

	.bud-p-icon-link.has-label .bud-p-count {
		position: absolute;
	}
}

/* Scoring: a slider and a number per criterion, and the overall worked out beside them. */
.bud-rv-scoring {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 11rem;
	gap: 1rem;
	align-items: start;
	margin: 0.5rem 0 0.75rem;
}

.bud-rv-criteria-list {
	display: grid;
	gap: 0.55rem;
}

.bud-p-form .bud-rv-crit {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr) 4.5rem;
	gap: 0.75rem;
	align-items: center;
	margin: 0;
}

.bud-p-form .bud-rv-crit > span {
	font-weight: 600;
}

.bud-p-form .bud-rv-crit input[type="range"] {
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	accent-color: #1f7a35;
}

.bud-p-form .bud-rv-crit input[type="number"] {
	padding: 0.4rem 0.5rem;
	text-align: center;
}

.bud-rv-crit.is-unset input[type="range"] {
	opacity: 0.45;
}

.bud-rv-overall {
	display: grid;
	justify-items: center;
	gap: 0.15rem;
	padding: 1rem 0.75rem;
	border-radius: 12px;
	background: #0d0f0e;
	text-align: center;
	color: #f4f2eb;
}

.bud-rv-overall span {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9aa19a;
}

.bud-rv-overall strong {
	font-family: "League Gothic", "Arial Narrow", Impact, sans-serif;
	font-size: 3.2rem;
	font-weight: 400;
	line-height: 1;
	color: #3ef06e;
}

.bud-rv-overall em {
	font-style: normal;
	font-weight: 600;
}

.bud-rv-rubric {
	margin: 0 0 1rem;
	font-size: 0.92rem;
}

.bud-rv-rubric summary {
	font-weight: 700;
	cursor: pointer;
}

.bud-rv-rubric ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0.5rem 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 700px) {
	.bud-rv-scoring {
		grid-template-columns: 1fr;
	}

	.bud-p-form .bud-rv-crit {
		grid-template-columns: minmax(0, 1fr) 4.5rem;
	}

	.bud-p-form .bud-rv-crit > span {
		grid-column: 1 / -1;
	}
}

/* Photos: previews before upload, and alt text and captions after. */
.bud-rv-previews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.5rem;
	margin: 0.6rem 0;
	padding: 0;
	list-style: none;
}

.bud-rv-previews:empty {
	display: none;
}

.bud-rv-previews li {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #f4f2eb;
}

.bud-rv-previews img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bud-rv-previews span {
	display: block;
	padding: 0.25rem 0.4rem;
	font-size: 0.72rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bud-rv-previews .is-small span {
	background: #fdf0c8;
	color: #7a5a00;
}

.bud-rv-photo-field {
	display: grid;
	gap: 0.2rem;
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	font-weight: 600;
}

.bud-rv-photo-field input {
	width: 100%;
	padding: 0.4rem 0.55rem;
	border: 1.5px solid #d9d6c8;
	border-radius: 7px;
	font: inherit;
	font-weight: 400;
}

.bud-rv-photo-field i {
	font-weight: 400;
	color: #5b605a;
}

.bud-rv-photo-save {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	align-items: center;
	margin-top: 1rem;
}

/* The editor's save bar: full-size buttons, and the autosave line. */
.bud-rv-actions {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin: 1.25rem calc(-1 * clamp(1rem, 2.5vw, 1.5rem)) calc(-1 * clamp(1rem, 2.5vw, 1.5rem));
	padding: 0.9rem clamp(1rem, 2.5vw, 1.5rem);
	border-top: 1px solid #e6e3d7;
	border-radius: 0 0 14px 14px;
	background: #fff;
}

.bud-p-form.is-wide > .bud-rv-actions {
	margin-inline: 0;
	border-radius: 12px;
	box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.bud-rv-actions .bud-p-button {
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
}

.bud-rv-actions .bud-p-button.is-quiet {
	border-color: transparent;
	background: none;
	text-decoration: underline;
}

.bud-rv-autosave {
	margin-left: auto;
	font-size: 0.85rem;
	color: #5b605a;
}

.bud-rv-restore {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #fdf0c8;
}

/* Products: each request as a card with its progress. */
.bud-rv-requests {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.bud-rv-requests .bud-p-card {
	margin: 0;
}

.bud-rv-requests.is-closed .bud-p-card {
	opacity: 0.8;
}

.bud-rv-request-head {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	justify-content: space-between;
}

.bud-rv-request h3 {
	margin: 0;
	font-size: 1.1rem;
}

.bud-rv-request-head .bud-p-muted {
	margin: 0.15rem 0 0;
}

.bud-rv-state {
	flex: none;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: #f4f2eb;
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}

.bud-rv-state.is-approved,
.bud-rv-state.is-shipped {
	background: #dcebfb;
	color: #1d4f86;
}

.bud-rv-state.is-received {
	background: #fdf0c8;
	color: #7a5a00;
}

.bud-rv-state.is-reviewed {
	background: #e3f4e6;
	color: #1f5f2a;
}

.bud-rv-state.is-declined {
	background: #f7e3e3;
	color: #a33434;
}

.bud-rv-steps {
	display: flex;
	gap: 4px;
	margin: 0.85rem 0 0.6rem;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.bud-rv-steps li {
	flex: 1;
	padding-top: 0.45rem;
	border-top: 4px solid #e6e3d7;
	font-size: 0.72rem;
	font-weight: 600;
	color: #8a8f88;
}

.bud-rv-steps li.is-done {
	border-color: #1f7a35;
	color: #1f5f2a;
}

.bud-rv-steps li.is-now {
	border-color: #3ef06e;
	color: #0d0f0e;
}

.bud-rv-request .bud-p-facts {
	margin: 0.5rem 0;
}

.bud-rv-request .is-late {
	font-weight: 700;
	color: #a33434;
}

.bud-rv-request .bud-p-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.bud-rv-request .bud-p-row-actions form {
	margin: 0;
}

.bud-rv-request-form {
	margin-bottom: 1.5rem;
}

.bud-rv-request-form h2 {
	margin-top: 0;
}

/* Handbook: contents, then the sections. */
.bud-rv-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.bud-rv-toc a {
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	color: #161916;
	text-decoration: none;
}

.bud-rv-toc a:hover,
.bud-rv-toc a:focus-visible {
	background: #0d0f0e;
	color: #fff;
}

.bud-rv-handbook {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 0.75rem;
	align-items: start;
}

.bud-rv-handbook .bud-p-card {
	margin: 0;
	scroll-margin-top: 1rem;
}

.bud-rv-handbook h2 {
	margin-top: 0;
}

.bud-rv-handbook li {
	margin-bottom: 0.4rem;
}

.bud-rv-criteria p {
	margin: 0 0 0.3rem;
	font-size: 0.94rem;
}

.bud-rv-bands {
	margin-top: 0.75rem;
}

/* Earnings. */
.bud-rv-pay-how p:last-child {
	margin-bottom: 0;
}

/* Account: what they'd like to review, full width like the cannabis questions. */
.bud-p-account .bud-rv-prefs {
	grid-column: 1 / -1;
}

.bud-rv-prefs fieldset {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.bud-rv-prefs legend {
	margin: 0 0 0.5rem;
	padding: 0;
	font-weight: 700;
}

.bud-rv-prefs legend span {
	margin-left: 0.35rem;
	font-size: 0.88rem;
	font-weight: 400;
	color: #5b605a;
}

.bud-rv-prefs .bud-p-fields i {
	font-style: normal;
	font-weight: 400;
	color: #5b605a;
}

/* Products: passing on an assignment. */
.bud-rv-pass summary {
	list-style: none;
	cursor: pointer;
}

.bud-rv-pass summary::-webkit-details-marker {
	display: none;
}

.bud-rv-pass form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.bud-rv-pass input {
	flex: 1;
	min-width: 12rem;
	padding: 0.5rem 0.7rem;
	border: 1.5px solid #d9d6c8;
	border-radius: 8px;
	font: inherit;
}

/* Reports: which reviews are counted. */
.bud-rv-report-scope {
	margin: 0.5rem 0 1rem;
	font-size: 0.9rem;
	color: #5b605a;
}

.bud-rv-report-scope:empty {
	display: none;
}
