/* הבאנר קבוע על המסך, בלי שכבת רקע – כך שהגלילה והלחיצות בשאר הדף לא נחסמות */
.cce-banner {
	--cce-offset: 20px;
	position: fixed;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: calc(100% - (var(--cce-offset) * 2));
	direction: rtl;
	text-align: right;
	background: #1f2937;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.cce-banner.cce-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(var(--cce-x, 0), 0);
}

/* מיקומים */
.cce-bottom-center { bottom: var(--cce-offset); left: 50%; --cce-x: -50%; transform: translate(-50%, 20px); }
.cce-top-center    { top: var(--cce-offset);    left: 50%; --cce-x: -50%; transform: translate(-50%, -20px); }
.cce-bottom-right  { bottom: var(--cce-offset); right: var(--cce-offset); transform: translateY(20px); }
.cce-bottom-left   { bottom: var(--cce-offset); left: var(--cce-offset);  transform: translateY(20px); }
.cce-bottom-full   { bottom: 0; left: 0; right: 0; width: 100%; border-radius: 0 !important; transform: translateY(20px); }
.cce-top-full      { top: 0;    left: 0; right: 0; width: 100%; border-radius: 0 !important; transform: translateY(-20px); }

.cce-banner.cce-visible.cce-bottom-center,
.cce-banner.cce-visible.cce-top-center { transform: translate(-50%, 0); }
.cce-banner.cce-visible.cce-bottom-right,
.cce-banner.cce-visible.cce-bottom-left,
.cce-banner.cce-visible.cce-bottom-full,
.cce-banner.cce-visible.cce-top-full   { transform: translateY(0); }

.cce-text {
	flex: 1 1 auto;
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
}

.cce-link {
	color: #93c5fd;
	text-decoration: underline;
	margin-inline-start: 4px;
}

.cce-button {
	flex: 0 0 auto;
	cursor: pointer;
	border: 0;
	background: #22c55e;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: background-color .2s ease;
}

/* באנר נעלם סופית */
.cce-banner.cce-hidden { display: none !important; }

/* עורך אלמנטור: מציגים את הבאנר בתוך הזרימה כדי שאפשר יהיה לערוך אותו */
.elementor-editor-active .cce-banner {
	position: relative;
	inset: auto;
	left: auto; right: auto; top: auto; bottom: auto;
	width: 100%;
	margin: 0 auto;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none !important;
}

@media (max-width: 600px) {
	.cce-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
