/* ==========================================================
   הוספה לסל: חיווי וכפתור עגלה צף
   ========================================================== */

/* ===== חיווי מתחת לכפתור ===== */

.einav-note {
	display: block;
	max-height: 0;
	margin: 0;
	padding: 0 14px;
	border-radius: 4px;
	background: #E8F4EE;
	color: #14624A;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	overflow: hidden;
	opacity: 0;
	transition: max-height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease;
}

.einav-note.is-visible {
	max-height: 70px;
	margin-top: 10px;
	padding: 11px 14px;
	opacity: 1;
}

.einav-note.is-error {
	background: #FBECEC;
	color: #8E2727;
}

/* ===== עגלה צפה ===== */

.einav-fab-wrap {
	position: fixed;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 20px;
	z-index: 9998;
	display: flex;
	justify-content: center;
	pointer-events: none;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.einav-fab {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* ההנפשה מופעלת רק אחרי שהמצב ההתחלתי התייצב,
   כדי שלא תרוץ מחדש בכל מעבר בין עמודים */
.einav-fab.is-ready {
	transition: transform .28s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease;
}

.einav-fab.is-empty {
	transform: translateY(26px) scale(.85);
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.einav-fab.is-ready.is-empty {
	transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
}

/* הכפתור */

.einav-fab__btn,
.einav-fab button.einav-fab__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 11px 18px 11px 14px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #1C244B !important;
	background-image: none !important;
	color: #fff !important;
	font-family: "Poppins", sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(28, 36, 75, .28) !important;
	transition: background .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.einav-fab__btn:hover,
.einav-fab__btn:focus-visible {
	background: #2E3A6E !important;
	box-shadow: 0 8px 26px rgba(28, 36, 75, .36) !important;
}

.einav-fab__icon {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	flex: 0 0 22px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.einav-fab__icon svg {
	display: block;
}

.einav-fab__count {
	position: absolute !important;
	top: -6px;
	inset-inline-end: -8px;
	min-width: 17px;
	height: 17px;
	margin: 0 !important;
	padding: 0 4px !important;
	border-radius: 999px;
	background: #D4537E !important;
	color: #fff !important;
	font-family: "Poppins", sans-serif;
	font-size: 10px !important;
	font-weight: 600 !important;
	line-height: 17px !important;
	text-align: center;
}

.einav-fab__total {
	margin: 0 !important;
	padding: 0 !important;
	font-family: "Poppins", sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	color: #fff !important;
	white-space: nowrap;
}

/* שני הכפתורים */

.einav-fab__menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 200px;
	opacity: 0;
	transform: translateY(10px) scale(.96);
	transition: opacity .2s ease, transform .22s cubic-bezier(.2, .9, .3, 1.2);
	pointer-events: none;
}

.einav-fab.is-open .einav-fab__menu {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.einav-fab__link {
	display: block;
	padding: 13px 16px;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(28, 36, 75, .18);
	transition: background .18s ease;
}

.einav-fab__link--checkout {
	background: #1C244B;
	color: #fff;
}

.einav-fab__link--checkout:hover {
	background: #2E3A6E;
	color: #fff;
}

.einav-fab__link--cart {
	background: #fff;
	color: #1C244B;
	border: 1px solid #E0DCDE;
}

.einav-fab__link--cart:hover {
	background: #F7F4F5;
	color: #1C244B;
}

/* פעימה */

.einav-fab.is-pulse .einav-fab__btn {
	animation: einavPulse .85s cubic-bezier(.3, .8, .3, 1);
}

@keyframes einavPulse {
	0%   { transform: scale(1); }
	28%  { transform: scale(1.13); }
	55%  { transform: scale(.97); }
	100% { transform: scale(1); }
}

/* נייד */

@media (max-width: 767px) {
	.einav-fab-wrap {
		bottom: 14px;
	}

	.einav-fab__btn {
		padding: 10px 16px 10px 13px !important;
	}

	.einav-fab__total {
		font-size: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.einav-fab,
	.einav-fab__btn,
	.einav-fab__menu,
	.einav-note {
		transition: none !important;
		animation: none !important;
	}
}
