.flow-ew-classic {
	position: relative;
}

/* Status badge */
.flow-ew-classic__status {
	margin-bottom: 10px;
}

.flow-ew-classic__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-classic__badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--flow-badge-color, #666);
	display: inline-block;
}

/* Approved notice */
.flow-ew-classic__notice {
	padding: 6px 10px;
	border-radius: 3px;
	font-size: 13px;
	margin-bottom: 10px;
}

.flow-ew-classic__notice--success {
	background: #ecfdf5;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* Field */
.flow-ew-classic__field {
	margin-bottom: 10px;
}

.flow-ew-classic__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #757575;
	margin-bottom: 4px;
}

.flow-ew-classic__select {
	width: 100%;
}

.flow-ew-classic__select-row {
	align-items: center;
	display: flex;
	gap: 6px;
}

.flow-ew-classic__select-row .flow-ew-classic__select {
	flex: 1 1 auto;
	min-width: 0;
}

.flow-ew-classic__select-row .flow-ew-reviewer-combobox__clear {
	align-items: center;
	background: transparent;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #757575;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 28px;
	justify-content: center;
	padding: 0;
	width: 28px;
}

.flow-ew-classic__select-row .flow-ew-reviewer-combobox__clear:hover,
.flow-ew-classic__select-row .flow-ew-reviewer-combobox__clear:focus {
	border-color: #1e1e1e;
	color: #1e1e1e;
	outline: none;
}

.flow-ew-classic__select-row .flow-ew-reviewer-combobox__clear[hidden] {
	display: none;
}

.flow-ew-classic__value {
	display: block;
	font-size: 13px;
	color: #1e1e1e;
}

/* Open Review checkbox */
#flow-ew-classic-open-slot {
	margin-bottom: 10px;
}

/* Reviewer autocomplete combobox (default Classic Editor admin context).
   Drawer surfaces (Bricks / Elementor) override these with their own
   themed colors, but the layout (full-width input, absolute listbox,
   visually hidden native <select>) stays the same. */
.flow-ew-reviewer-combobox {
	position: relative;
}

.flow-ew-reviewer-combobox__wrap {
	position: relative;
}

.flow-ew-reviewer-combobox__input {
	width: 100%;
	box-sizing: border-box;
	height: 32px;
	padding: 0 32px 0 10px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: #fff;
	color: #1e1e1e;
	font-size: 13px;
	font-family: inherit;
	outline: none;
}

.flow-ew-reviewer-combobox__input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.flow-ew-reviewer-combobox__input::placeholder {
	color: #757575;
}

.flow-ew-reviewer-combobox__input:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.flow-ew-reviewer-combobox__clear {
	align-items: center;
	background: transparent;
	border: 0;
	color: #757575;
	cursor: pointer;
	display: flex;
	height: 24px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
}

.flow-ew-reviewer-combobox__clear:hover,
.flow-ew-reviewer-combobox__clear:focus {
	color: #1e1e1e;
	outline: none;
}

.flow-ew-reviewer-combobox__clear[hidden] {
	display: none;
}

.flow-ew-reviewer-combobox__list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 5;
	max-height: 200px;
	overflow-y: auto;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.flow-ew-reviewer-combobox__option {
	padding: 6px 12px;
	cursor: pointer;
	color: #1e1e1e;
	font-size: 13px;
}

.flow-ew-reviewer-combobox__option:hover,
.flow-ew-reviewer-combobox__option:focus {
	background: #f0f0f1;
	outline: none;
}

.flow-ew-reviewer-combobox__option[aria-selected="true"] {
	background: rgba(34, 113, 177, 0.12);
	color: #1e1e1e;
}

/* Visually-hide the native <select> fallback — the combobox JS keeps it
   in sync as the source of truth for change events. */
.flow-ew-reviewer-combobox__native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#flow-ew-classic-open-slot:empty {
	display: none;
}

.flow-ew-classic-open {
	font-size: 13px;
}

.flow-ew-classic-open__row {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 6px;
}

.flow-ew-classic-open__desc {
	color: #757575;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 4px;
}

/* Extension slot — empty in Free, filled by add-ons (e.g. Pro's Open to public). */
.flow-ew-open-review-extras:empty {
	display: none;
}

.flow-ew-open-review-extras {
	margin-top: 8px;
}

/* Actions */
.flow-ew-classic__actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}

.flow-ew-classic__actions:empty {
	display: none;
}

.flow-ew-classic__btn {
	width: 100%;
	text-align: center;
}

.flow-ew-classic__btn--approve {
	background: #43a047 !important;
	border-color: #43a047 !important;
	color: #fff !important;
}

.flow-ew-classic__btn--approve:hover {
	background: #388e3c !important;
	border-color: #388e3c !important;
}

.flow-ew-classic__btn--changes {
	color: #d63638 !important;
	border-color: #d63638 !important;
}

.flow-ew-classic__btn--changes:hover {
	background: #fcf0f1 !important;
}

/* Share bar */
.flow-ew-classic__share {
	margin-bottom: 10px;
}

.flow-ew-classic__share-label {
	display: block;
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #757575;
}

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

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

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

/* Spinner */
#flow-ew-classic-spinner {
	float: none;
}
