.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-status-text, var(--flow-badge-color, #5e777b));
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--flow-status-bg, #e6f3f5);
	border: 1px solid var(--flow-status-border, #cde3e7);
}

.flow-ew-classic__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
	flex-shrink: 0;
}

/* 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;
	margin-bottom: 4px;
}

/* Classic Editor metabox only — WP post screen label styles override shared uppercase. */
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__label,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-label,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-pro-multi-reviewer__label {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.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;
}

.flow-ew-review-notice[hidden] {
	display: none;
}

.flow-ew-review-notice {
	background: var(--flow-status-bg, #fcf0ce);
	border: 0;
	border-left: 3px solid var(--flow-status-border, #f2dda4);
	border-radius: 0;
	color: var(--flow-status-text, #957500);
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 10px;
	padding: 8px 12px;
}

.flow-ew-review-notice--in-review {
	--flow-status-bg: #fcf0ce;
	--flow-status-text: #957500;
	--flow-status-border: #f2dda4;
}

.flow-ew-review-notice--changes-requested {
	--flow-status-bg: #ffebea;
	--flow-status-text: #c92122;
	--flow-status-border: #ffd1d0;
}

.flow-ew-review-notice__title {
	font-weight: 600;
	margin: 0 0 2px;
}

.flow-ew-review-notice__desc {
	font-weight: 400;
	margin: 0;
}

.flow-ew-review-notice__link {
	color: var(--wp-admin-theme-color, #2271b1);
	text-decoration: underline;
}

.flow-ew-review-notice__link:hover,
.flow-ew-review-notice__link:focus {
	color: var(--wp-admin-theme-color-darker-10, #135e96);
}

/* 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 8px;
}

.flow-ew-classic__share-row {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--flow-ew-wp-charcoal-5, #979aa0);
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
	height: var(--flow-ew-share-row-height, 40px);
	min-height: var(--flow-ew-share-row-height, 40px);
	max-height: var(--flow-ew-share-row-height, 40px);
}

.flow-ew-classic__share-link {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 var(--flow-ew-share-link-padding-x, 8px);
	box-sizing: border-box;
	border-right: 1px solid var(--flow-ew-wp-charcoal-5, #979aa0);
	color: var(--flow-ew-wp-charcoal-3, #40464c);
	text-decoration: none;
	overflow: hidden;
}

.flow-ew-classic__share-link-text {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	font-size: var(--flow-ew-share-font-size, 13px);
	font-weight: 400;
	line-height: 20px;
	letter-spacing: -0.195px;
	color: inherit;
	text-decoration: underline;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.flow-ew-classic__share-copy {
	flex-shrink: 0;
	align-self: stretch;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	width: var(--flow-ew-share-action-width, 40px);
	min-width: var(--flow-ew-share-action-width, 40px);
	height: 100% !important;
	min-height: 0 !important;
	max-height: 100%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: var(--flow-ew-wp-charcoal-3, #40464c);
	box-sizing: border-box;
}

.flow-ew-classic__share-copy--done {
	color: #46b450;
}

.flow-ew-classic__share-goto {
	flex-shrink: 0;
	align-self: stretch;
	align-items: center;
	background: var(--flow-ew-wp-nero, #1c2024);
	border-radius: 0;
	color: #fff;
	display: flex;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	justify-content: center;
	min-width: var(--flow-ew-share-action-width, 40px);
	padding: var(--flow-ew-share-action-padding-x, 8px);
	text-decoration: none;
	width: var(--flow-ew-share-action-width, 40px);
	box-sizing: border-box;
}

.flow-ew-classic__share-goto:hover,
.flow-ew-classic__share-goto:focus {
	background: var(--flow-ew-wp-nero, #1c2024);
	color: #fff;
}

/* Classic Editor metabox only — WP .button styles skew icon sizing in the share bar. */
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-row {
	--flow-ew-share-icon-size: 24px;
}

#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy.button,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy.button:hover,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy.button:focus {
	line-height: 1 !important;
	min-height: var(--flow-ew-share-row-height, 40px) !important;
	padding: var(--flow-ew-share-action-padding-x, 8px) !important;
	vertical-align: top;
	color: var(--flow-ew-wp-charcoal-3, #40464c) !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy .flow-ew-share-icon,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy svg {
	width: var(--flow-ew-share-icon-size, 24px) !important;
	height: var(--flow-ew-share-icon-size, 24px) !important;
	min-width: var(--flow-ew-share-icon-size, 24px);
	min-height: var(--flow-ew-share-icon-size, 24px);
	flex-shrink: 0;
	color: var(--flow-ew-wp-charcoal-3, #40464c);
}

#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy--done.button,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-copy--done svg {
	color: #46b450 !important;
}

#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-goto .flow-ew-share-icon,
#flow-ew-classic.flow-ew-classic:not(.flow-ew-classic--elementor):not(.flow-ew-classic--bricks):not(.flow-ew-classic--breakdance):not(.flow-ew-classic--avada):not(.flow-ew-classic--beaver) .flow-ew-classic__share-goto svg {
	width: var(--flow-ew-share-icon-size, 24px) !important;
	height: var(--flow-ew-share-icon-size, 24px) !important;
	min-width: var(--flow-ew-share-icon-size, 24px);
	min-height: var(--flow-ew-share-icon-size, 24px);
}

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