/*
 * The sovlix.com sale bar, in ZooMeet's own admin screens (includes/Admin/Zmeet_Campaign_Bar.php).
 *
 * GENERATED by sovlix-theme `npm run campaign:export` from
 * scripts/campaign-bar/campaign-bar.css and react-app/src/data/campaignLook.js.
 * Do not edit it in the plugin: change the theme template, export, and every
 * plugin's bar keeps matching the sovlix.com bar (colours, clock, words, layout).
 *
 * The website bar's ember look, made calm for the admin: no cursor glow, no
 * sheen, no rotating words; only the seconds move. Every rule is scoped under
 * .zmeet-cbar and the link qualifies its element, (0,2,1), so wp-admin's own
 * a:hover / a:focus colours, (0,1,1), never win.
 */

.zmeet-cbar {
	--cbar-edge: #120c12;
	--cbar-shoulder: #24101c;
	--cbar-mid: #46122a;
	--cbar-text: #f5f5f7;
	--cbar-unit: #d9c2cc;
	--cbar-accent: #ffb224;
	--cbar-tick-unit: #ffc870;
	--cbar-cta: #ffffff;
	--cbar-cta-text: #1d1d1f;
	--cbar-cta-hover: #ffe8d6;
	--cbar-cta-press: #ffd2b0;

	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	min-height: 48px;
	margin: 0 0 0 -20px;
	padding: 6px 8px 6px 20px;
	background: linear-gradient(90deg, var(--cbar-edge) 0%, var(--cbar-shoulder) 26%, var(--cbar-mid) 50%, var(--cbar-shoulder) 74%, var(--cbar-edge) 100%);
	color: var(--cbar-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.3;
}

@supports (background: linear-gradient(90deg in oklab, #000, #fff)) {
	.zmeet-cbar {
		background: linear-gradient(90deg in oklab, var(--cbar-edge) 0%, var(--cbar-shoulder) 26%, var(--cbar-mid) 50%, var(--cbar-shoulder) 74%, var(--cbar-edge) 100%);
	}
}

.zmeet-cbar--ember {
	--cbar-edge: #120c12;
	--cbar-shoulder: #24101c;
	--cbar-mid: #46122a;
	--cbar-text: #f5f5f7;
	--cbar-unit: #d9c2cc;
	--cbar-accent: #ffb224;
	--cbar-tick-unit: #ffc870;
	--cbar-cta: #ffffff;
	--cbar-cta-text: #1d1d1f;
	--cbar-cta-hover: #ffe8d6;
	--cbar-cta-press: #ffd2b0;
}

.zmeet-cbar *,
.zmeet-cbar *::before,
.zmeet-cbar *::after {
	box-sizing: border-box;
}

/* The website bar's warm 1px highlight on the top edge. */
.zmeet-cbar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 190, 120, 0.24), transparent);
	pointer-events: none;
}

.zmeet-cbar .zmeet-cbar__offer {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--cbar-text);
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
}

.zmeet-cbar .zmeet-cbar__flame {
	display: block;
	flex: none;
	color: var(--cbar-accent);
}

.zmeet-cbar .zmeet-cbar__name {
	color: var(--cbar-accent);
	font-weight: 700;
}

.zmeet-cbar .zmeet-cbar__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 215, 225, 0.42);
}

.zmeet-cbar .zmeet-cbar__deal {
	color: var(--cbar-text);
	opacity: 0.92;
}

.zmeet-cbar .zmeet-cbar__deal b {
	color: #ffffff;
	font-weight: 700;
}

.zmeet-cbar .zmeet-cbar__when {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.zmeet-cbar .zmeet-cbar__on {
	color: var(--cbar-unit);
	font-size: 13px;
}

.zmeet-cbar .zmeet-cbar__clock {
	display: inline-flex;
	gap: 3px;
	min-width: 150px;
	min-height: 30px;
	padding: 3px;
	border-radius: 9px;
	background: linear-gradient(180deg, rgba(255, 220, 190, 0.13), rgba(255, 220, 190, 0.05));
	box-shadow: inset 0 1px 0 rgba(255, 230, 200, 0.16);
}

.zmeet-cbar .zmeet-cbar__seg {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 1px;
	min-width: 34px;
	padding: 4px 6px;
	border-radius: 6px;
	background: rgba(20, 10, 4, 0.42);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
	font-variant-numeric: tabular-nums;
}

.zmeet-cbar .zmeet-cbar__seg b {
	color: var(--cbar-text);
	font-size: 13px;
	font-weight: 700;
}

.zmeet-cbar .zmeet-cbar__seg i {
	color: var(--cbar-unit);
	font-size: 10.5px;
	font-style: normal;
}

.zmeet-cbar .zmeet-cbar__seg.is-s {
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 159, 10, 0.28);
}

.zmeet-cbar .zmeet-cbar__seg.is-s b {
	color: var(--cbar-accent);
}

.zmeet-cbar .zmeet-cbar__seg.is-s i {
	color: var(--cbar-tick-unit);
}

.zmeet-cbar .zmeet-cbar__end {
	display: flex;
	align-items: center;
	gap: 4px;
}

.zmeet-cbar a.zmeet-cbar__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 15px;
	border-radius: 999px;
	background: var(--cbar-cta);
	color: var(--cbar-cta-text);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 10px -2px rgba(0, 0, 0, 0.45);
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zmeet-cbar a.zmeet-cbar__cta svg {
	display: block;
	transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zmeet-cbar a.zmeet-cbar__cta:hover,
.zmeet-cbar a.zmeet-cbar__cta:focus {
	background: var(--cbar-cta-hover);
	color: var(--cbar-cta-text);
	box-shadow: 0 3px 16px -2px rgba(255, 120, 120, 0.35);
}

.zmeet-cbar a.zmeet-cbar__cta:hover svg {
	transform: translateX(2px);
}

.zmeet-cbar a.zmeet-cbar__cta:active {
	background: var(--cbar-cta-press);
	color: var(--cbar-cta-text);
	transform: scale(0.97);
}

.zmeet-cbar a.zmeet-cbar__cta:focus-visible {
	outline: 2px solid var(--cbar-accent);
	outline-offset: 2px;
}

.zmeet-cbar .zmeet-cbar__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -4px 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cbar-unit);
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.zmeet-cbar .zmeet-cbar__close svg {
	display: block;
}

.zmeet-cbar .zmeet-cbar__close:hover {
	background: rgba(255, 220, 190, 0.12);
	color: #ffffff;
}

.zmeet-cbar .zmeet-cbar__close:active {
	background: rgba(255, 220, 190, 0.2);
	color: #ffffff;
}

.zmeet-cbar .zmeet-cbar__close:focus-visible {
	outline: 2px solid var(--cbar-accent);
	outline-offset: -2px;
}

/* A laptop with the admin menu open: the clock speaks without its words. */
@media screen and (max-width: 1180px) {
	.zmeet-cbar .zmeet-cbar__on {
		display: none;
	}
}

@media screen and (max-width: 782px) {
	.zmeet-cbar {
		margin-left: -10px;
		padding-left: 12px;
	}
}

/* A phone: the offer on its own line, the clock and the button under it. */
@media screen and (max-width: 600px) {
	.zmeet-cbar {
		justify-content: space-between;
		gap: 8px;
		padding: 8px 48px 8px 12px;
	}

	.zmeet-cbar .zmeet-cbar__offer {
		flex: 1 1 100%;
		flex-wrap: wrap;
		row-gap: 2px;
		white-space: normal;
	}

	.zmeet-cbar .zmeet-cbar__long {
		display: none;
	}

	.zmeet-cbar .zmeet-cbar__close {
		position: absolute;
		top: 2px;
		right: 2px;
		margin: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zmeet-cbar a.zmeet-cbar__cta,
	.zmeet-cbar a.zmeet-cbar__cta svg,
	.zmeet-cbar .zmeet-cbar__close {
		transition: none;
	}
}

/* RTL: the bar's negative margin mirrors with the admin's padding. */
.rtl .zmeet-cbar {
	margin: 0 -20px 0 0;
	padding: 6px 20px 6px 8px;
}

.rtl .zmeet-cbar a.zmeet-cbar__cta svg {
	transform: scaleX(-1);
}

.rtl .zmeet-cbar a.zmeet-cbar__cta:hover svg {
	transform: scaleX(-1) translateX(2px);
}

@media screen and (max-width: 782px) {
	.rtl .zmeet-cbar {
		margin: 0 -10px 0 0;
		padding-right: 12px;
	}
}

@media screen and (max-width: 600px) {
	.rtl .zmeet-cbar {
		padding: 8px 12px 8px 48px;
	}

	.rtl .zmeet-cbar .zmeet-cbar__close {
		right: auto;
		left: 2px;
	}
}
