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

/* -----------------------------------------------------------------
   Elementor Review: floating chip below Publish + dark drawer
   ----------------------------------------------------------------- */

/* Base: fixed chip below Publish (JS) or fallback under top bar */
.flow-ew-elementor-toggle {
	position: fixed;
	/* Below MUI Popover/Menu (~1300); above editor canvas */
	z-index: 1250;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	box-sizing: border-box;
	min-height: 28px;
	padding: 4px 6px;
	margin: 0;
	/* MUI Outlined + dark toolbar (matches Publish group neighbor) */
	border: 1px solid rgba(255, 255, 255, 0.23);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.75;
	letter-spacing: 0.02857em;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.flow-ew-elementor-toggle:hover {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
}

.flow-ew-elementor-toggle.is-active {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
}

/* Chip skin for the floating fallback (Publish not found yet) */
.flow-ew-elementor-toggle.flow-ew-elementor-toggle--fallback {
	background-color: rgba(31, 33, 36, 0.94);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	top: calc(var(--editor-v2-top-bar-height, 48px) + 8px);
	inset-inline-end: 16px;
}

/* Inline next to Publish inside the top bar. Match Elementor search /
   other MUI IconButton controls: circular hover ripple area. */
.flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex-shrink: 0;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	min-height: 40px;
	min-width: 40px;
	padding: 0;
	margin: 0 4px 0 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #fff;
	font-size: 0;
	line-height: 0;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: middle;
	transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

#elementor-editor-wrapper-v2 .flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline,
#elementor-editor-wrapper .flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline {
	align-self: center;
}

.flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline:hover,
.flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline:focus-visible {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: transparent;
	color: #fff;
	outline: none;
}

.flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline.is-active {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: transparent;
	color: #fff;
}

.flow-ew-elementor-toggle__icon {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	line-height: 0;
}

.flow-ew-elementor-toggle__icon svg {
	display: block;
	flex-shrink: 0;
	height: 24px;
	margin: 0;
	vertical-align: middle;
	width: 24px;
}

.flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline .flow-ew-elementor-toggle__icon {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.flow-ew-elementor-toggle.flow-ew-elementor-toggle--inline .flow-ew-elementor-toggle__icon svg {
	height: 24px;
	width: 24px;
}

/* Head and limbs match neighboring MUI toolbar icons; torso carries status. */
.flow-ew-elementor-toggle .flow-ew-jumplink-icon__head,
.flow-ew-elementor-toggle .flow-ew-jumplink-icon__limbs {
	color: currentColor;
}

.flow-ew-elementor-toggle .flow-ew-jumplink-icon__torso {
	color: var(--flow-ew-el-muted, #9da5ae);
}

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

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

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

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

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

/* Brighten the full icon on hover/active like other top-bar controls. */
.flow-ew-elementor-toggle:hover .flow-ew-jumplink-icon__torso,
.flow-ew-elementor-toggle:focus-visible .flow-ew-jumplink-icon__torso,
.flow-ew-elementor-toggle.is-active .flow-ew-jumplink-icon__torso,
.flow-ew-elementor-toggle:hover .flow-ew-jumplink-icon__limbs,
.flow-ew-elementor-toggle:focus-visible .flow-ew-jumplink-icon__limbs,
.flow-ew-elementor-toggle.is-active .flow-ew-jumplink-icon__limbs,
.flow-ew-elementor-toggle:hover .flow-ew-jumplink-icon__head,
.flow-ew-elementor-toggle:focus-visible .flow-ew-jumplink-icon__head,
.flow-ew-elementor-toggle.is-active .flow-ew-jumplink-icon__head {
	color: currentColor;
}

/* ---- Drawer (Elementor dark panel) ---- */

.flow-ew-elementor-drawer {
	--flow-ew-el-bg: #1f2124;
	--flow-ew-el-bg-elevated: #2b2c31;
	--flow-ew-el-border: #333438;
	--flow-ew-el-txt: #d5d8dc;
	--flow-ew-el-muted: #9da5ae;
	--flow-ew-el-accent: var(--e-a-color-accent, #93003f);
	--flow-ew-el-btn-secondary: #515962;

	position: fixed;
	width: 320px;
	max-width: calc(100vw - 16px);
	max-height: 70vh;
	z-index: 1270;
	background: var(--flow-ew-el-bg);
	border: 1px solid var(--flow-ew-el-border);
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: var(--flow-ew-el-txt);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	pointer-events: none;
}

.flow-ew-elementor-drawer.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.flow-ew-elementor-drawer__header {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 14px;
	border-bottom: 1px solid var(--flow-ew-el-border);
	flex-shrink: 0;
	background: var(--flow-ew-el-bg);
}

.flow-ew-elementor-drawer__header .flow-ew-drawer-status {
	align-items: center;
	background: var(--flow-ew-el-bg-elevated);
	border-radius: 999px;
	color: #fff;
	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-elementor-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-elementor-drawer__header .flow-ew-drawer-status[hidden] {
	display: none;
}

.flow-ew-elementor-drawer__title {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.01em;
}

.flow-ew-elementor-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 3px;
	background: transparent;
	color: var(--flow-ew-el-muted);
	cursor: pointer;
	padding: 0;
}

.flow-ew-elementor-drawer__close:hover {
	background: var(--flow-ew-el-bg-elevated);
	color: #fff;
}

.flow-ew-elementor-drawer__close .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

.flow-ew-elementor-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 14px;
	background: var(--flow-ew-el-bg);
}

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

.flow-ew-elementor-drawer .flow-ew-classic__value {
	color: var(--flow-ew-el-txt);
}

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

.flow-ew-elementor-drawer .flow-ew-classic__badge {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--flow-ew-el-border);
	color: var(--flow-ew-el-txt);
}

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox {
	position: relative;
}

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

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox__input {
	width: 100%;
	box-sizing: border-box;
	height: 36px;
	padding: 0 32px 0 10px;
	border: 1px solid var(--flow-ew-el-border);
	border-radius: 3px;
	background: var(--flow-ew-el-bg-elevated);
	color: #fff;
	font-size: 13px;
	font-family: inherit;
	outline: none;
}

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

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

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

.flow-ew-elementor-drawer .flow-ew-pro-reviewers-list .flow-ew-reviewer-card__remove {
	color: var(--flow-ew-el-muted);
}

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

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox__input:focus {
	border-color: #69727d;
	box-shadow: 0 0 0 1px #69727d;
}

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox__input::placeholder {
	color: var(--flow-ew-el-muted);
}

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox__input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.flow-ew-elementor-drawer .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: var(--flow-ew-el-bg-elevated);
	border: 1px solid var(--flow-ew-el-border);
	border-radius: 3px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox__option {
	padding: 8px 12px;
	cursor: pointer;
	color: var(--flow-ew-el-txt);
	font-size: 13px;
}

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

.flow-ew-elementor-drawer .flow-ew-reviewer-combobox__option[aria-selected="true"] {
	background: rgba(147, 0, 63, 0.2);
}

.flow-ew-elementor-drawer .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;
	opacity: 0;
	pointer-events: none;
}

.flow-ew-elementor-drawer .flow-ew-classic__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.flow-ew-elementor-drawer .flow-ew-classic__actions .button,
.flow-ew-elementor-drawer .flow-ew-classic__actions .flow-ew-classic__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	line-height: 1.75;
	box-shadow: none;
	text-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.flow-ew-elementor-drawer .flow-ew-classic__actions .button.button-primary,
.flow-ew-elementor-drawer
	.flow-ew-classic__actions
	.flow-ew-classic__btn.button-primary {
	background: var(--flow-ew-el-accent);
	border: 1px solid var(--flow-ew-el-accent);
	color: #fff;
}

.flow-ew-elementor-drawer .flow-ew-classic__actions .button.button-primary:hover:not(:disabled),
.flow-ew-elementor-drawer
	.flow-ew-classic__actions
	.flow-ew-classic__btn.button-primary:hover:not(:disabled) {
	filter: brightness(1.08);
}

.flow-ew-elementor-drawer
	.flow-ew-classic__actions
	.flow-ew-classic__btn.flow-ew-classic__btn--changes,
.flow-ew-elementor-drawer
	.flow-ew-classic__actions
	.button.flow-ew-classic__btn:not(.button-primary) {
	background: var(--flow-ew-el-btn-secondary);
	border: 1px solid var(--flow-ew-el-btn-secondary);
	color: #fff;
}

.flow-ew-elementor-drawer
	.flow-ew-classic__actions
	.flow-ew-classic__btn.flow-ew-classic__btn--changes:hover:not(:disabled),
.flow-ew-elementor-drawer
	.flow-ew-classic__actions
	.button.flow-ew-classic__btn:not(.button-primary):hover:not(:disabled) {
	filter: brightness(1.1);
}

.flow-ew-elementor-drawer .flow-ew-classic__actions .button:disabled,
.flow-ew-elementor-drawer .flow-ew-classic__actions .flow-ew-classic__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Current review share bar — Bricks layout, Elementor tokens */
.flow-ew-elementor-drawer .flow-ew-classic__share {
	margin-top: 12px;
}

.flow-ew-elementor-drawer .flow-ew-classic__share-row {
	--flow-ew-el-share-field-border: var(--flow-ew-el-border);
	align-items: stretch;
	background-color: var(--flow-ew-el-bg-elevated);
	border: 1px solid var(--flow-ew-el-share-field-border);
	border-radius: 3px;
	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%;
	min-width: 0;
	--flow-ew-share-icon-size: 16px;
	--flow-ew-share-action-width: 32px;
}

.flow-ew-elementor-drawer .flow-ew-classic__share-link {
	align-items: center;
	background-color: transparent;
	border-right: none;
	box-sizing: border-box;
	color: var(--e-a-color-primary-bold, var(--flow-ew-el-accent, #93003f));
	display: flex;
	flex: 1 1 auto;
	font-size: var(--flow-ew-share-font-size, 13px);
	line-height: 1.2;
	min-height: var(--flow-ew-share-row-height, 40px);
	min-width: 0;
	overflow: hidden;
	padding: 0 var(--flow-ew-share-link-padding-x, 12px);
	text-decoration: none;
}

.flow-ew-elementor-drawer .flow-ew-classic__share-link:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--e-a-color-primary-bold, var(--flow-ew-el-accent, #93003f));
}

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

.flow-ew-elementor-drawer .flow-ew-classic__share-copy,
.flow-ew-elementor-drawer .flow-ew-classic__share-copy.button,
.flow-ew-elementor-drawer .flow-ew-classic__share-copy.button:hover,
.flow-ew-elementor-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 var(--flow-ew-el-share-field-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: var(--flow-ew-el-txt) !important;
	cursor: pointer;
	display: inline-flex !important;
	flex: 0 0 auto;
	justify-content: center;
	line-height: 1 !important;
	margin: 0 !important;
	min-height: var(--flow-ew-share-row-height, 40px) !important;
	min-width: var(--flow-ew-share-action-width, 32px);
	padding: 0 !important;
	text-shadow: none !important;
	vertical-align: top;
	width: var(--flow-ew-share-action-width, 32px);
}

.flow-ew-elementor-drawer .flow-ew-classic__share-copy:hover,
.flow-ew-elementor-drawer .flow-ew-classic__share-copy.button:hover,
.flow-ew-elementor-drawer .flow-ew-classic__share-copy.button:focus {
	background: rgba(255, 255, 255, 0.06) !important;
	border-inline-start: 1px solid var(--flow-ew-el-share-field-border) !important;
	color: #fff !important;
	filter: none;
}

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

.flow-ew-elementor-drawer .flow-ew-classic__share-copy--done,
.flow-ew-elementor-drawer .flow-ew-classic__share-copy--done svg {
	color: #39b54a !important;
}

.flow-ew-elementor-drawer .flow-ew-classic__share-goto {
	align-items: center;
	align-self: stretch;
	background: #1e1e1e !important;
	box-sizing: border-box;
	color: #fff !important;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	min-height: var(--flow-ew-share-row-height, 40px);
	min-width: var(--flow-ew-share-action-width, 32px);
	padding: 0 !important;
	text-decoration: none;
	width: var(--flow-ew-share-action-width, 32px);
}

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

.flow-ew-elementor-drawer .flow-ew-classic__share-goto .flow-ew-share-icon,
.flow-ew-elementor-drawer .flow-ew-classic__share-goto svg {
	color: #fff;
	flex-shrink: 0;
	height: var(--flow-ew-share-icon-size, 16px) !important;
	min-height: var(--flow-ew-share-icon-size, 16px);
	min-width: var(--flow-ew-share-icon-size, 16px);
	width: var(--flow-ew-share-icon-size, 16px) !important;
}

.flow-ew-elementor-drawer .spinner {
	float: none;
	margin: 12px auto 0;
}

.flow-ew-elementor-drawer .spinner.is-active {
	visibility: visible;
}

.flow-ew-elementor-drawer .flow-ew-classic-open__desc {
	margin-left: 0;
}

.flow-ew-elementor-drawer #flow-ew-classic-open-slot {
	color: var(--flow-ew-el-txt);
}

.flow-ew-elementor-drawer #flow-ew-classic-open-slot label {
	color: var(--flow-ew-el-txt);
	font-size: 13px;
}

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