@import '../shared/builder-review-notice-dark.css';

.flow-ew-oxygen-toggle[hidden] {
	display: none !important;
}

/*
 * Match Oxygen top-bar icon buttons:
 * `.is-oxygen .breakdance-topbar .breakdance-toolbar-icon-button`
 * (28×28, gray100 chip, 14px glyph). Mounted as a direct `.topbar-section` child.
 */
.flow-ew-oxygen-toggle.flow-ew-oxygen-toggle {
	align-items: center;
	align-self: center;
	background-color: var(--gray100, #f5f5f5) !important;
	border: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	color: var(--gray700, #616161) !important;
	cursor: pointer;
	display: inline-flex !important;
	flex: 0 0 auto !important;
	font: inherit;
	height: var(--oxy-topbar-control-height, 28px) !important;
	justify-content: center;
	line-height: 0 !important;
	margin: 0 !important;
	min-height: var(--oxy-topbar-control-height, 28px) !important;
	min-width: var(--oxy-topbar-control-height, 28px) !important;
	padding: 0 !important;
	text-transform: none;
	vertical-align: middle;
	width: var(--oxy-topbar-control-height, 28px) !important;
}

.flow-ew-oxygen-toggle.flow-ew-oxygen-toggle:hover:not(:disabled),
.flow-ew-oxygen-toggle.flow-ew-oxygen-toggle.is-active,
.flow-ew-oxygen-toggle.flow-ew-oxygen-toggle.breakdance-toolbar-icon-button-active {
	background-color: var(--gray300, #e0e0e0) !important;
	color: var(--black, #000) !important;
}

.flow-ew-oxygen-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	height: 18px;
	width: 18px;
	pointer-events: none;
}

.flow-ew-oxygen-toggle__icon svg,
.flow-ew-oxygen-toggle .flow-ew-jumplink-icon {
	display: block;
	flex-shrink: 0;
	height: 18px !important;
	width: 18px !important;
	margin: 0 !important;
	max-height: 18px !important;
	max-width: 18px !important;
}

/* Head/limbs follow toolbar icon color; torso reflects review status. */
.flow-ew-oxygen-toggle .flow-ew-jumplink-icon__head,
.flow-ew-oxygen-toggle .flow-ew-jumplink-icon__limbs {
	color: currentColor;
}

.flow-ew-oxygen-toggle .flow-ew-jumplink-icon__torso {
	color: var(--gray600, #595959);
}

.flow-ew-oxygen-toggle[data-status='pending'] .flow-ew-jumplink-icon__torso {
	color: #5e777b;
}

.flow-ew-oxygen-toggle[data-status='in_review'] .flow-ew-jumplink-icon__torso {
	color: #957500;
}

.flow-ew-oxygen-toggle[data-status='approved'] .flow-ew-jumplink-icon__torso {
	color: #458037;
}

.flow-ew-oxygen-toggle[data-status='changes_requested'] .flow-ew-jumplink-icon__torso {
	color: #c92122;
}

.flow-ew-oxygen-toggle[data-status='open_review'] .flow-ew-jumplink-icon__torso {
	color: #1579a5;
}

.flow-ew-oxygen-toggle:hover .flow-ew-jumplink-icon__torso,
.flow-ew-oxygen-toggle:focus-visible .flow-ew-jumplink-icon__torso,
.flow-ew-oxygen-toggle.is-active .flow-ew-jumplink-icon__torso {
	color: currentColor;
}

.flow-ew-oxygen-drawer {
	position: fixed;
	top: calc(38px + var(--wp-admin--admin-bar--height, 0px));
	right: 12px;
	width: 380px;
	max-width: min(380px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	background: #000;
	border: 1px solid #333;
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: Inter, system-ui, sans-serif;
	overflow: hidden;
	z-index: 2147483000;
}

body.admin-bar .flow-ew-oxygen-drawer {
	top: calc(38px + var(--wp-admin--admin-bar--height, 32px));
}

.flow-ew-oxygen-drawer__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #333;
	background: #000;
}

.flow-ew-oxygen-drawer__title {
	font-size: 14px;
	font-weight: 600;
}

.flow-ew-oxygen-drawer__close {
	margin-left: auto;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #a1a1a1;
	padding: 4px;
	line-height: 1;
}

.flow-ew-oxygen-drawer__close .breakdance-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
}

.flow-ew-oxygen-drawer__close .breakdance-icon svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.flow-ew-oxygen-drawer__body {
	background: #000;
	padding: 14px 16px 16px;
	max-height: calc(100vh - 100px);
	overflow: auto;
}

.flow-ew-oxygen-drawer__header .flow-ew-drawer-status {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 11px;
	font-weight: 500;
	gap: 6px;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 4px 10px;
	text-transform: uppercase;
	white-space: nowrap;
}

.flow-ew-oxygen-drawer__header .flow-ew-drawer-status .flow-ew-classic__badge-dot {
	background: var(--flow-badge-color, currentColor);
	border-radius: 50%;
	display: inline-block;
	height: 8px;
	width: 8px;
}

.flow-ew-oxygen-drawer__header .flow-ew-drawer-status[hidden] {
	display: none;
}

.flow-ew-classic--oxygen {
	--flow-ew-bd-field-height: 40px;
	--flow-ew-dark-text: #fff;
	--flow-ew-dark-muted: #a1a1a1;
	--flow-ew-dark-border: #333;
	--flow-ew-dark-card-bg: #262626;
	--flow-ew-dark-card-text: #fff;
}

.flow-ew-oxygen-drawer .flow-ew-classic {
	margin: 0;
	max-width: 100%;
	padding: 0;
}

.flow-ew-oxygen-drawer .flow-ew-classic__field {
	margin-bottom: 14px;
}

.flow-ew-oxygen-drawer .flow-ew-review-notice {
	display: block;
	margin-bottom: 14px;
}

.flow-ew-classic--oxygen .flow-ew-classic__value {
	color: var(--flow-ew-dark-text, #fff);
}

.flow-ew-classic--oxygen .flow-ew-classic__badge {
	background: #262626;
	border: 1px solid #333;
	color: #fff;
}

.flow-ew-classic--oxygen .flow-ew-classic__notice--success {
	background: #153827;
	border: 1px solid #2a6b47;
	color: #d9f7e8;
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox {
	position: relative;
	width: 100%;
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__wrap {
	position: relative;
	width: 100%;
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__input {
	background: transparent;
	border: 1px solid #333;
	border-radius: 4px;
	box-sizing: border-box;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	height: var(--flow-ew-bd-field-height, 40px);
	line-height: 1.2;
	max-height: var(--flow-ew-bd-field-height, 40px);
	min-height: var(--flow-ew-bd-field-height, 40px);
	padding: 0 28px 0 10px;
	width: 100%;
}

.flow-ew-classic--oxygen .flow-ew-pro-multi-reviewer__add .flow-ew-reviewer-combobox__input {
	height: var(--flow-ew-bd-field-height, 40px);
	max-height: var(--flow-ew-bd-field-height, 40px);
	min-height: var(--flow-ew-bd-field-height, 40px);
}

.flow-ew-classic--oxygen .flow-ew-pro-reviewers-list > .flow-ew-reviewer-card {
	height: var(--flow-ew-bd-field-height, 40px);
	min-height: var(--flow-ew-bd-field-height, 40px);
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__input::placeholder {
	color: #a1a1a1;
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__input:focus {
	border-color: #fff;
	box-shadow: none;
	outline: none;
}

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

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__clear:hover,
.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__clear:focus {
	color: #fff;
	outline: none;
}

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

.flow-ew-classic--oxygen .flow-ew-pro-reviewers-list .flow-ew-reviewer-card__remove {
	color: #a1a1a1;
}

.flow-ew-classic--oxygen .flow-ew-pro-reviewers-list .flow-ew-reviewer-card__remove:hover,
.flow-ew-classic--oxygen .flow-ew-pro-reviewers-list .flow-ew-reviewer-card__remove:focus-visible {
	color: #fff;
	outline: none;
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__list {
	background: #262626;
	border: 1px solid #333;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
	color: #fff;
	font-size: 13px;
	left: 0;
	list-style: none;
	margin: 4px 0 0;
	max-height: min(420px, 55vh);
	overflow-y: auto;
	padding: 4px 0;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 20;
}

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__option {
	color: #fff;
	cursor: pointer;
	padding: 10px 12px;
}

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

.flow-ew-classic--oxygen .flow-ew-reviewer-combobox__option[aria-selected='true'] {
	background: #333;
	color: #fff;
}

.flow-ew-classic--oxygen .flow-ew-classic-open__desc {
	color: var(--flow-ew-dark-muted, #a1a1a1);
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-row {
	--flow-ew-share-action-width: 36px;
	--flow-ew-share-icon-size: 14px;
	--flow-ew-share-row-height: var(--flow-ew-bd-field-height, 40px);
	align-items: stretch;
	background: transparent;
	border: 1px solid #333;
	border-radius: 4px;
	box-sizing: border-box;
	display: flex;
	height: var(--flow-ew-share-row-height, 40px);
	max-height: var(--flow-ew-share-row-height, 40px);
	min-height: var(--flow-ew-share-row-height, 40px);
	overflow: hidden;
	width: 100%;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-link {
	align-items: center;
	background: transparent;
	border-right: none;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 500;
	height: 100%;
	line-height: 1.2;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0 10px;
	text-decoration: none;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-link:hover,
.flow-ew-oxygen-drawer .flow-ew-classic__share-link:focus-visible {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-link-text {
	color: inherit;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-decoration: underline;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-copy,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy.button,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy.button:hover,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy.button:focus {
	align-items: center;
	align-self: stretch;
	background: transparent !important;
	border: 0 !important;
	border-inline-start: 1px solid #333 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	flex: 0 0 auto;
	height: 100%;
	justify-content: center;
	line-height: 1 !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: var(--flow-ew-share-action-width, 36px);
	padding: 0 !important;
	text-shadow: none !important;
	width: var(--flow-ew-share-action-width, 36px);
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-copy:hover,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy.button:hover,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy.button:focus {
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-copy.button {
	font-size: 0 !important;
	line-height: 1 !important;
	vertical-align: top;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-copy .flow-ew-share-icon,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy svg {
	color: inherit;
	display: block;
	flex-shrink: 0;
	height: var(--flow-ew-share-icon-size, 14px) !important;
	line-height: 1;
	max-height: var(--flow-ew-share-icon-size, 14px);
	max-width: var(--flow-ew-share-icon-size, 14px);
	min-height: var(--flow-ew-share-icon-size, 14px);
	min-width: var(--flow-ew-share-icon-size, 14px);
	width: var(--flow-ew-share-icon-size, 14px) !important;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-copy svg path {
	fill: currentColor;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-copy--done,
.flow-ew-oxygen-drawer .flow-ew-classic__share-copy--done svg {
	color: #22c55e !important;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-goto {
	align-items: center;
	align-self: stretch;
	background: #000 !important;
	border-inline-start: 1px solid #333;
	box-sizing: border-box;
	color: #fff !important;
	display: inline-flex;
	flex: 0 0 auto;
	height: 100%;
	justify-content: center;
	min-height: 0;
	min-width: var(--flow-ew-share-action-width, 36px);
	text-decoration: none;
	width: var(--flow-ew-share-action-width, 36px);
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-goto:hover,
.flow-ew-oxygen-drawer .flow-ew-classic__share-goto:focus-visible {
	background: #000 !important;
	color: #fff !important;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-goto .flow-ew-share-icon,
.flow-ew-oxygen-drawer .flow-ew-classic__share-goto svg {
	color: #fff;
	display: block;
	flex-shrink: 0;
	height: var(--flow-ew-share-icon-size, 14px) !important;
	line-height: 1;
	max-height: var(--flow-ew-share-icon-size, 14px);
	max-width: var(--flow-ew-share-icon-size, 14px);
	min-height: var(--flow-ew-share-icon-size, 14px);
	min-width: var(--flow-ew-share-icon-size, 14px);
	width: var(--flow-ew-share-icon-size, 14px) !important;
}

.flow-ew-oxygen-drawer .flow-ew-classic__share-goto svg path {
	fill: currentColor;
}

.flow-ew-classic--oxygen .flow-ew-classic__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn {
	width: auto;
	height: 37px;
	padding: 0 16px;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 3px;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	box-shadow: none;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn.button-primary {
	background-color: transparent !important;
	border: 1px solid #fff !important;
	border-color: #fff !important;
	color: #fff !important;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn[data-action='send'],
.flow-ew-classic--oxygen .flow-ew-classic__btn[data-action='resubmit'] {
	background-color: transparent !important;
	border: 1px solid #fff !important;
	border-color: #fff !important;
	color: #fff !important;
	box-shadow: none !important;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn.button-primary:hover,
.flow-ew-classic--oxygen .flow-ew-classic__btn.button-primary:focus-visible {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border-color: #fff !important;
	color: #fff !important;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn[data-action='send']:hover,
.flow-ew-classic--oxygen .flow-ew-classic__btn[data-action='send']:focus-visible,
.flow-ew-classic--oxygen .flow-ew-classic__btn[data-action='resubmit']:hover,
.flow-ew-classic--oxygen .flow-ew-classic__btn[data-action='resubmit']:focus-visible {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border-color: #fff !important;
	color: #fff !important;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn--approve {
	background-color: transparent !important;
	border: 1px solid #22c55e !important;
	border-color: #22c55e !important;
	color: #22c55e !important;
}

.flow-ew-classic--oxygen .flow-ew-classic__btn--changes {
	background-color: transparent !important;
	border: 1px solid #ef4444 !important;
	border-color: #ef4444 !important;
	color: #ef4444 !important;
}

.flow-ew-classic--oxygen #flow-ew-classic-spinner {
	display: none !important;
}

.flow-ew-oxygen-drawer .flow-ew-classic,
.flow-ew-oxygen-drawer .flow-ew-pro-multi-reviewer,
.flow-ew-oxygen-drawer .flow-ew-pro-multi-reviewer__label,
.flow-ew-oxygen-drawer .flow-ew-pro-multi-reviewer__empty,
.flow-ew-oxygen-drawer .flow-ew-pro-reviewers-list,
.flow-ew-oxygen-drawer .flow-ew-pro-reviewer-row,
.flow-ew-oxygen-drawer .flow-ew-pro-reviewer-row__name {
	color: #fff;
}

.flow-ew-oxygen-drawer .flow-ew-classic-open__row input[type='checkbox'] {
	accent-color: #fff;
}

.flow-ew-oxygen-drawer .flow-ew-classic-open__row,
.flow-ew-oxygen-drawer .flow-ew-classic-open__desc {
	color: #fff;
}

/* Match Free upsell link sizes (Oxygen link resets can enlarge them). */
.flow-ew-oxygen-drawer .flow-ew-upsell-open-review a,
.flow-ew-oxygen-drawer .flow-ew-upsell-reviewer a {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
}
