/**
 * Flow Editorial Workflow — editor sidebar styles.
 */

/* Main Review panel — stays at the bottom of the sidebar panels list */
.interface-complementary-area .components-panel {
	display: flex;
	flex-direction: column;
}

.interface-complementary-area .components-panel__body.flow-ew-review-panel {
	order: 100;
}

/* ----------------------------------------------------------------
 * Status badge (used in panel title and inline)
 * ---------------------------------------------------------------- */

.flow-ew-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--flow-badge-color, #666);
	padding: 2px 8px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--flow-badge-color, #666) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--flow-badge-color, #666) 33%, transparent);
}

.flow-ew-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--flow-badge-color, #666);
	display: inline-block;
}

/* Panel title badge — smaller variant */
.flow-ew-panel-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.4;
}

.flow-ew-panel-title__badge {
	font-size: 10px;
	font-weight: 500;
	color: var(--flow-badge-color, #999);
	background: color-mix(in srgb, var(--flow-badge-color, #999) 15%, transparent);
	border: 1px solid color-mix(in srgb, var(--flow-badge-color, #999) 47%, transparent);
	padding: 1px 6px;
	border-radius: 10px;
	vertical-align: middle;
}

/* ----------------------------------------------------------------
 * Reviewer field
 * ---------------------------------------------------------------- */

.flow-ew-label-row {
	margin-bottom: 6px;
}

.flow-ew-link-btn {
	font-size: 11px;
	min-height: unset;
	height: auto;
	padding: 0;
}

.flow-ew-reviewer-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	border-radius: 3px;
	background: var(--wp-components-color-gray-100, #f0f0f0);
}

.flow-ew-avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.flow-ew-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.flow-ew-remove-btn {
	flex-shrink: 0;
	margin-left: 4px;
	color: #cc1818;
}

.flow-ew-spinner-overlay {
	position: absolute;
	right: 32px;
	top: 50%;
	transform: translateY(-50%);
}

/* ----------------------------------------------------------------
 * Action buttons
 * ---------------------------------------------------------------- */

.flow-ew-actions {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.flow-ew-actions__btn {
	justify-content: center;
	width: 100%;
}

.flow-ew-actions__btn--approve {
	background: #43a047;
	border-color: #43a047;
}

/* ----------------------------------------------------------------
 * Revision share bar
 * ---------------------------------------------------------------- */

.flow-ew-share-bar {
	margin-top: 4px;
}

.flow-ew-share-bar__label {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #757575;
}

.flow-ew-share-bar__row {
	display: flex;
	align-items: center;
	border: 1px solid #949494;
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
}

.flow-ew-share-bar__link {
	flex: 1;
	padding: 5px 8px;
	font-size: 11px;
	color: #1e1e1e;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}

.flow-ew-share-bar__copy {
	flex-shrink: 0;
	border-left: 1px solid #949494;
	border-radius: 0;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1e1e1e;
}

.flow-ew-share-bar__copy--done {
	color: #46b450;
}
