/* Elementor prints the Cooperative @font-face only on pages whose templates use it (not on every page, e.g. category pages on phones). */
@font-face {
	font-family: 'Cooperative';
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url('/wp-content/uploads/2022/11/Cooperative-Regular-1.woff2') format('woff2'),
		url('/wp-content/uploads/2022/11/Cooperative-Regular-2.woff') format('woff');
}

/* Nfarm Branch Commerce – popup, cart alerts, branch widget.
   v1.9 – rebuilt on the site's own components (measured on nfarm.co.il):
   Cooperative for headings and call-to-action buttons, AlenbiSans light for text,
   grey fields (#F1F0ED, 5px corners, no border) like the header search,
   yellow CTA (#FAB435, 3px corners) like "חנות המעדניה", grey secondary like "אזור אישי". */

:root {
	--nfbc-ink: #000;
	--nfbc-text: #3d3b38;
	--nfbc-muted: #6d6d6d;
	--nfbc-placeholder: #8c8c8c;
	--nfbc-bg: #fff;
	--nfbc-cream: #FDFBF8;
	--nfbc-field: #F1F0ED;
	--nfbc-field-hover: #EAE8E4;
	--nfbc-line: #ECEBEA;
	--nfbc-line-strong: #DAD8D4;
	--nfbc-blue: #2F73C6;
	--nfbc-blue-dark: #2560a8;
	--nfbc-blue-soft: #EEF4FB;
	--nfbc-honey: #EFB452;
	--nfbc-honey-soft: #FDF3E0;
	--nfbc-cta: #FAB435;
	--nfbc-cta-hover: #F0A51C;
	--nfbc-red: #FA4449;
	--nfbc-red-soft: #FFF0F0;
	--nfbc-red-ink: #A8282C;
	--nfbc-font-display: "Cooperative", "Rubik", Arial, sans-serif;
	--nfbc-font: "AlenbiSans", "Rubik", Arial, sans-serif;
	--nfbc-r-btn: 3px;
	--nfbc-r-field: 5px;
	--nfbc-r-card: 8px;
}

html.nfbc-lock,
html.nfbc-lock body {
	overflow: hidden;
}

.nfbc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nfbc-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* ---------- Modal shell ---------- */

.nfbc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: max(5vh, 24px) 16px 24px;
	font-family: var(--nfbc-font);
	font-weight: 300;
	color: var(--nfbc-text);
	line-height: 1.45;
}

.nfbc-modal[hidden],
.nfbc-modal [hidden] {
	display: none !important;
}

.nfbc-modal *,
.nfbc-modal *::before,
.nfbc-modal *::after {
	box-sizing: border-box;
}

/* Neutralise the theme's button/input focus and bold-button styles. */
.nfbc-modal button,
.nfbc-modal input {
	font-family: var(--nfbc-font);
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
}

.nfbc-modal button:focus,
.nfbc-modal input:focus,
.nfbc-status:focus,
.nfbc-status button:focus,
.nfbc-cart-alert button:focus {
	outline: none;
}

.nfbc-modal button:focus-visible,
.nfbc-status:focus-visible,
.nfbc-status button:focus-visible,
.nfbc-cart-alert button:focus-visible {
	outline: 2px solid var(--nfbc-blue);
	outline-offset: 2px;
}

.nfbc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .2s ease;
}

.nfbc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - max(5vh, 24px) - 24px);
	max-height: calc(100dvh - max(5vh, 24px) - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--nfbc-bg);
	border-radius: var(--nfbc-r-card);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
	padding: 22px 32px 28px;
	text-align: right;
	transform: translateY(12px);
	opacity: 0;
	transition: transform .22s ease, opacity .22s ease;
	outline: none;
}

.nfbc-modal.is-open .nfbc-modal__overlay {
	opacity: 1;
}

.nfbc-modal.is-open .nfbc-modal__dialog {
	transform: none;
	opacity: 1;
}

.nfbc-modal .nfbc-modal__close {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 36px;
	height: 36px;
	min-height: 0;
	border: 0;
	border-radius: var(--nfbc-r-btn);
	background: transparent;
	color: var(--nfbc-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
}

.nfbc-modal .nfbc-modal__close:hover {
	background: var(--nfbc-field);
}

.nfbc-modal .nfbc-modal__close .nfbc-icon,
.nfbc-modal .nfbc-modal__close svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 600px) {
	.nfbc-modal {
		align-items: flex-end;
		padding: 0;
	}

	.nfbc-modal__dialog {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 12px 12px 0 0;
		padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px));
		transform: translateY(40px);
	}

	.nfbc-modal .nfbc-modal__close {
		top: 10px;
		left: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nfbc-modal__overlay,
	.nfbc-modal__dialog {
		transition: none;
	}
}

/* ---------- Progress: 1 כתובת – 2 סניף – 3 מועד ---------- */

.nfbc-progress {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0 0 22px;
	padding: 0 0 18px 48px;
	border-bottom: 1px solid var(--nfbc-line);
	counter-reset: nfbc-step;
	font-size: 15px;
	color: var(--nfbc-muted);
}

.nfbc-progress li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	counter-increment: nfbc-step;
	white-space: nowrap;
}

.nfbc-progress li::before {
	content: counter(nfbc-step);
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--nfbc-field);
	color: var(--nfbc-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.nfbc-progress li:not(:last-child) {
	flex: 1;
}

.nfbc-progress li:not(:last-child)::after {
	content: "";
	flex: 1;
	height: 1px;
	min-width: 12px;
	margin-inline: 4px 10px;
	background: var(--nfbc-line-strong);
}

.nfbc-progress li.is-current {
	color: var(--nfbc-ink);
	font-weight: 400;
}

.nfbc-progress li.is-current::before {
	background: var(--nfbc-blue);
	color: #fff;
}

.nfbc-progress li.is-done {
	color: var(--nfbc-ink);
}

.nfbc-progress li.is-done::before {
	content: "✓";
	background: var(--nfbc-honey);
	color: var(--nfbc-ink);
}

@media (max-width: 600px) {
	.nfbc-progress {
		margin-bottom: 18px;
		padding-bottom: 14px;
		font-size: 14px;
	}
}

/* ---------- Typography ---------- */

.nfbc-modal .nfbc-kicker {
	margin: 0 0 6px;
	font-family: var(--nfbc-font-display);
	font-weight: normal;
	font-size: 17px;
	line-height: 1.2;
	color: var(--nfbc-blue);
}

.nfbc-modal .nfbc-kicker:empty {
	display: none;
}

.nfbc-modal .nfbc-title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--nfbc-font-display);
	font-weight: normal;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--nfbc-ink);
	text-wrap: balance;
}

.nfbc-modal .nfbc-title--small {
	font-size: 26px;
}

.nfbc-modal .nfbc-subtitle {
	margin: 26px 0 10px;
	padding: 0;
	font-family: var(--nfbc-font-display);
	font-weight: normal;
	font-size: 22px;
	line-height: 1.15;
	color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-sub {
	margin: 0 0 20px;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--nfbc-muted);
}

.nfbc-modal .nfbc-note {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 300;
	color: var(--nfbc-muted);
}

.nfbc-modal .nfbc-label {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-label span {
	font-weight: 300;
	color: var(--nfbc-muted);
}

@media (max-width: 600px) {
	.nfbc-modal .nfbc-title {
		font-size: 28px;
	}

	.nfbc-modal .nfbc-title--small {
		font-size: 24px;
	}

	.nfbc-modal .nfbc-sub {
		font-size: 16px;
		margin-bottom: 16px;
	}
}

/* ---------- Delivery / pickup switch ---------- */

.nfbc-seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin: 0 0 20px;
	padding: 4px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-field);
}

.nfbc-modal .nfbc-seg button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: var(--nfbc-r-btn);
	background: transparent;
	color: var(--nfbc-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.nfbc-modal .nfbc-seg button:hover {
	color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-seg button[aria-selected="true"] {
	background: var(--nfbc-bg);
	color: var(--nfbc-ink);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.nfbc-modal .nfbc-seg button[aria-selected="true"] .nfbc-icon {
	color: var(--nfbc-blue);
}

/* The old "או – מעדיפים לאסוף בעצמכם?" row is replaced by the switch. */
.nfbc-modal [data-view="address"] .nfbc-or,
.nfbc-modal [data-view="address"] [data-nfbc-go="branches"],
.nfbc-modal [data-view="branches"] > .nfbc-back {
	display: none !important;
}

/* ---------- Fields ---------- */

.nfbc-modal .nfbc-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-field);
	font-family: var(--nfbc-font);
	font-size: 16px;
	font-weight: 300;
	color: var(--nfbc-ink);
	text-align: right;
	box-shadow: none;
	transition: border-color .15s ease, background .15s ease;
}

.nfbc-modal .nfbc-input:hover {
	background: var(--nfbc-field-hover);
}

.nfbc-modal .nfbc-input::placeholder {
	color: var(--nfbc-placeholder);
	font-weight: 300;
	opacity: 1;
}

.nfbc-modal .nfbc-input:focus {
	outline: none;
	border-color: var(--nfbc-blue);
	background: var(--nfbc-bg);
	box-shadow: none;
}

/* Hide browser autofill tint and datalist arrow. */
.nfbc-modal .nfbc-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 40px var(--nfbc-field) inset;
	-webkit-text-fill-color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-input::-webkit-calendar-picker-indicator {
	display: none !important;
}

.nfbc-search,
.nfbc-field {
	position: relative;
}

.nfbc-search__icon {
	position: absolute;
	top: 0;
	right: 14px;
	height: 48px;
	display: flex;
	align-items: center;
	color: var(--nfbc-muted);
	pointer-events: none;
}

.nfbc-modal .nfbc-input--search {
	padding-right: 44px;
}

.nfbc-modal .nfbc-suggestions {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	z-index: 3;
	max-height: 248px;
	overflow-y: auto;
	list-style: none;
	margin: 0;
	padding: 4px;
	background: var(--nfbc-bg);
	border: 1px solid var(--nfbc-line);
	border-radius: var(--nfbc-r-field);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.nfbc-modal .nfbc-suggestions li {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--nfbc-r-btn);
	font-size: 16px;
	font-weight: 300;
	color: var(--nfbc-ink);
	cursor: pointer;
	outline: none;
}

.nfbc-modal .nfbc-suggestions li .nfbc-icon {
	color: var(--nfbc-muted);
	width: 18px;
	height: 18px;
}

.nfbc-modal .nfbc-suggestions li span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nfbc-modal .nfbc-suggestions li strong {
	font-weight: 400;
}

.nfbc-modal .nfbc-suggestions li mark {
	background: none;
	color: inherit;
	font-weight: 400;
}

.nfbc-modal .nfbc-suggestions li small {
	color: var(--nfbc-muted);
	font-size: 14px;
}

.nfbc-modal .nfbc-suggestions li:hover,
.nfbc-modal .nfbc-suggestions li:focus,
.nfbc-modal .nfbc-suggestions li.is-active {
	background: var(--nfbc-field);
}

.nfbc-modal .nfbc-suggestions__empty {
	color: var(--nfbc-muted) !important;
	cursor: default !important;
	background: none !important;
}

.nfbc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
	flex: 1;
	min-width: 0;
}

.nfbc-modal .nfbc-field label,
.nfbc-modal .nfbc-houseno label {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-field--short {
	flex: 0 0 104px;
}

.nfbc-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.nfbc-row--3 .nfbc-input {
	flex: 1;
	min-width: 0;
}

.nfbc-houseno {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nfbc-houseno .nfbc-input {
	flex: 1;
}

.nfbc-modal .nfbc-error {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-red-soft);
	color: var(--nfbc-red-ink);
	font-size: 15px;
	font-weight: 400;
}

/* ---------- Buttons ---------- */

.nfbc-modal .nfbc-btn,
.nfbc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	margin: 0;
	padding: 0 27px;
	border: 0;
	border-radius: var(--nfbc-r-btn);
	background: var(--nfbc-cta);
	color: #000;
	font-family: var(--nfbc-font-display);
	font-size: 19px;
	font-weight: normal;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.nfbc-modal .nfbc-btn:hover,
.nfbc-modal .nfbc-btn:focus-visible,
.nfbc-btn:hover,
.nfbc-btn:focus-visible {
	background: var(--nfbc-cta-hover);
	color: #000;
}

.nfbc-modal .nfbc-btn[disabled] {
	opacity: .5;
	cursor: default;
}

.nfbc-btn--block,
.nfbc-modal .nfbc-btn--block {
	width: 100%;
}

/* Secondary – like the header's "אזור אישי". */
.nfbc-modal .nfbc-btn--ghost,
.nfbc-btn--ghost {
	background: var(--nfbc-field);
	color: var(--nfbc-ink);
	font-family: var(--nfbc-font);
	font-size: 16px;
	font-weight: 300;
}

.nfbc-modal .nfbc-btn--ghost:hover,
.nfbc-modal .nfbc-btn--ghost:focus-visible,
.nfbc-btn--ghost:hover,
.nfbc-btn--ghost:focus-visible {
	background: var(--nfbc-field-hover);
	color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-btn--ghost .nfbc-icon {
	color: var(--nfbc-blue);
	width: 18px;
	height: 18px;
}

.nfbc-modal .nfbc-btn--small,
.nfbc-btn--small {
	min-height: 40px;
	padding: 0 18px;
}

.nfbc-modal .nfbc-link {
	min-height: 0;
	margin: 0;
	border: 0;
	background: none;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 300;
	color: var(--nfbc-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	cursor: pointer;
}

.nfbc-modal .nfbc-link:hover {
	background: none;
	color: var(--nfbc-blue);
}

.nfbc-modal .nfbc-skip {
	display: block;
	margin: 18px auto 0;
	color: var(--nfbc-muted);
}

.nfbc-modal .nfbc-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 0;
	margin: 0 0 14px;
	padding: 4px 0;
	border: 0;
	background: none;
	font-size: 15px;
	font-weight: 300;
	color: var(--nfbc-muted);
	cursor: pointer;
}

.nfbc-modal .nfbc-back:hover {
	background: none;
	color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-back .nfbc-icon {
	width: 18px;
	height: 18px;
}

.nfbc-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

@media (max-width: 600px) {
	/* Keep the save button reachable while scrolling dates and windows. */
	[data-view="schedule"] .nfbc-actions {
		position: sticky;
		bottom: calc(-22px - env(safe-area-inset-bottom, 0px));
		z-index: 2;
		margin: 18px -18px 0;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--nfbc-bg);
		box-shadow: 0 -6px 16px rgba(0, 0, 0, .06);
	}
}

/* ---------- Choices (branches) ---------- */

.nfbc-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 14px;
	font-size: 14px;
	color: var(--nfbc-muted);
}

.nfbc-or::before,
.nfbc-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--nfbc-line);
}

.nfbc-modal .nfbc-choice {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--nfbc-line);
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-bg);
	color: var(--nfbc-ink);
	font-weight: 300;
	text-align: right;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.nfbc-modal .nfbc-choice:hover,
.nfbc-modal .nfbc-choice:focus-visible {
	border-color: var(--nfbc-blue);
	background: var(--nfbc-blue-soft);
	color: var(--nfbc-ink);
}

.nfbc-choice__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--nfbc-honey-soft);
	color: #B7791F;
	flex: none;
}

.nfbc-choice__icon .nfbc-icon {
	width: 20px;
	height: 20px;
}

.nfbc-choice__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 300;
	color: var(--nfbc-muted);
	line-height: 1.35;
}

.nfbc-modal .nfbc-choice__body strong {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 17px;
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-choice__note {
	color: var(--nfbc-blue);
}

.nfbc-choice__arrow {
	color: var(--nfbc-muted);
	transform: scaleX(-1);
}

.nfbc-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--nfbc-r-btn);
	background: var(--nfbc-honey);
	color: var(--nfbc-ink);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.nfbc-branches {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nfbc-branches li {
	margin: 0;
}

.nfbc-branches.is-collapsed li:nth-child(n+3) {
	display: none;
}

.nfbc-modal .nfbc-more {
	display: block;
	margin: 10px auto 0;
}

[data-view="branches"] [data-nfbc-locate] {
	width: 100%;
	margin-bottom: 4px;
}

/* ---------- Result ---------- */

.nfbc-address-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-field);
	font-size: 16px;
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-address-line .nfbc-icon {
	color: var(--nfbc-blue);
	width: 20px;
	height: 20px;
}

.nfbc-hero {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	padding: 20px;
	border-radius: var(--nfbc-r-card);
	background: var(--nfbc-blue-soft);
	border: 1px solid #D5E3F4;
}

.nfbc-hero__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--nfbc-bg);
	color: var(--nfbc-blue);
}

.nfbc-hero__icon .nfbc-icon {
	width: 26px;
	height: 26px;
}

.nfbc-modal .nfbc-hero .nfbc-title {
	margin-bottom: 6px;
}

.nfbc-hero__body p {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	color: var(--nfbc-text);
	line-height: 1.45;
}

.nfbc-modal .nfbc-hero__fee {
	color: var(--nfbc-ink) !important;
	font-weight: 400 !important;
}

.nfbc-hero .nfbc-btn {
	grid-column: 1 / -1;
	margin-top: 14px;
}

/* ---------- Schedule ---------- */

.nfbc-picked {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding: 12px 14px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-field);
}

.nfbc-picked__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--nfbc-bg);
	color: var(--nfbc-blue);
	flex: none;
}

.nfbc-picked__icon .nfbc-icon {
	width: 22px;
	height: 22px;
}

.nfbc-picked__body {
	display: flex;
	flex-direction: column;
	font-size: 15px;
	font-weight: 300;
	color: var(--nfbc-muted);
	min-width: 0;
}

.nfbc-modal .nfbc-picked__body strong {
	color: var(--nfbc-ink);
	font-size: 17px;
	font-weight: 400;
}

.nfbc-extra {
	margin-top: 22px;
}

.nfbc-days {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.nfbc-modal .nfbc-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	min-height: 60px;
	margin: 0;
	padding: 8px 4px;
	border: 1px solid var(--nfbc-line);
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-bg);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--nfbc-ink);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.nfbc-modal .nfbc-day small {
	font-size: 14px;
	font-weight: 300;
	color: var(--nfbc-muted);
	font-variant-numeric: tabular-nums;
}

.nfbc-modal .nfbc-day:hover,
.nfbc-modal .nfbc-slot:not([disabled]):hover {
	border-color: var(--nfbc-blue);
	background: var(--nfbc-bg);
	color: var(--nfbc-ink);
}

.nfbc-modal .nfbc-day.is-selected,
.nfbc-modal .nfbc-slot.is-selected {
	border-color: var(--nfbc-blue);
	background: var(--nfbc-blue);
	color: #fff;
}

.nfbc-modal .nfbc-day.is-selected small {
	color: rgba(255, 255, 255, .88);
}

.nfbc-slots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
}

.nfbc-slots:empty {
	display: none;
}

.nfbc-modal .nfbc-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--nfbc-line);
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-bg);
	font-size: 16px;
	font-weight: 300;
	color: var(--nfbc-ink);
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: border-color .15s ease, background .15s ease;
}

.nfbc-modal .nfbc-slot .nfbc-icon {
	width: 16px;
	height: 16px;
	color: var(--nfbc-muted);
}

.nfbc-modal .nfbc-slot.is-selected .nfbc-icon {
	color: #fff;
}

.nfbc-modal .nfbc-slot[disabled] {
	opacity: .4;
	cursor: not-allowed;
	text-decoration: line-through;
}

@media (max-width: 600px) {
	.nfbc-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nfbc-modal .nfbc-day {
		font-size: 15px;
		min-height: 56px;
	}
}

/* ---------- Confirm / done ---------- */

.nfbc-issues {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nfbc-issues li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-red-soft);
	font-size: 15px;
	color: var(--nfbc-red-ink);
}

.nfbc-issues strong {
	color: var(--nfbc-ink);
	font-weight: 400;
}

.nfbc-view--done,
[data-view="done"] {
	text-align: center;
	padding: 18px 0 8px;
}

.nfbc-done-icon {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--nfbc-honey);
	color: var(--nfbc-ink);
}

.nfbc-done-icon .nfbc-icon {
	width: 38px;
	height: 38px;
}

/* ---------- Loading ---------- */

.nfbc-loading {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .7);
	border-radius: inherit;
}

.nfbc-loading[hidden] {
	display: none;
}

.nfbc-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid var(--nfbc-line);
	border-top-color: var(--nfbc-blue);
	border-radius: 50%;
	animation: nfbc-spin .8s linear infinite;
}

@keyframes nfbc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Cart alerts & line badges ---------- */

.nfbc-cart-alert {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	padding: 14px 16px;
	list-style: none;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-red-soft);
	border: 1px solid #F6C3C4;
	font-family: var(--nfbc-font);
	font-weight: 300;
	color: var(--nfbc-ink);
	text-align: right;
}

.nfbc-cart-alert__title {
	font-size: 16px;
	font-weight: 400;
}

.nfbc-cart-alert__text {
	font-size: 14px;
	color: #6b3335;
}

.nfbc-cart-alert__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.nfbc-item-issue {
	display: block;
	width: fit-content;
	margin-top: 4px;
	padding: 2px 10px;
	border-radius: var(--nfbc-r-btn);
	background: var(--nfbc-red);
	color: #fff;
	font-family: var(--nfbc-font);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
}

.nfbc-item-issue--insufficient {
	background: var(--nfbc-honey);
	color: var(--nfbc-ink);
}

.nfbc-line-issue img {
	opacity: .55;
}

/* ---------- Elementor widget: הסניף שלי ---------- */

.nfbc-status {
	font-family: var(--nfbc-font);
	font-weight: 300;
	color: var(--nfbc-text);
	text-align: right;
}

.nfbc-status--card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	padding: 20px 24px;
	border-radius: var(--nfbc-r-card);
	background: var(--nfbc-bg);
	border: 1px solid var(--nfbc-line);
}

.nfbc-status__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--nfbc-honey);
	color: var(--nfbc-ink);
	flex: none;
}

.nfbc-status__icon .nfbc-icon {
	width: 28px;
	height: 28px;
}

.nfbc-status__body {
	flex: 1 1 240px;
	min-width: 0;
}

.nfbc-status .nfbc-status__title {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--nfbc-font-display);
	font-weight: normal;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: 0;
	color: var(--nfbc-ink);
}

.nfbc-status__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: var(--nfbc-muted);
}

.nfbc-status__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	color: var(--nfbc-text);
}

.nfbc-status__meta li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.nfbc-status__meta .nfbc-icon {
	color: var(--nfbc-blue);
	width: 18px;
	height: 18px;
}

.nfbc-status--card .nfbc-btn {
	flex: none;
}

/* Invite state: a search bar like the header's. */
.nfbc-status .nfbc-status__fake-input {
	flex: 1 1 300px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	margin: 0;
	padding: 0 14px 0 5px;
	border: 0;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-field);
	font-family: var(--nfbc-font);
	font-size: 16px;
	font-weight: 300;
	color: var(--nfbc-placeholder);
	cursor: pointer;
	text-align: right;
	text-transform: none;
}

.nfbc-status .nfbc-status__fake-input:hover {
	background: var(--nfbc-field-hover);
}

.nfbc-status__fake-input > .nfbc-icon {
	color: var(--nfbc-muted);
}

.nfbc-status__fake-input > span:not(.nfbc-btn) {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nfbc-status__fake-input .nfbc-btn {
	flex: none;
	min-height: 42px;
	padding: 0 22px;
	font-size: 17px;
}

.nfbc-status--chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 4px 12px 4px 4px;
	border: 0;
	border-radius: var(--nfbc-r-btn);
	background: var(--nfbc-field);
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}

.nfbc-status--chip .nfbc-status__icon {
	width: 32px;
	height: 32px;
}

.nfbc-status--chip .nfbc-status__icon .nfbc-icon {
	width: 18px;
	height: 18px;
}

.nfbc-status--chip .nfbc-status__chip-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nfbc-status--chip .nfbc-status__chip-text strong,
.nfbc-status--chip .nfbc-status__chip-text span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nfbc-status--chip .nfbc-status__chip-text strong {
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-status--chip .nfbc-status__chip-text span {
	color: var(--nfbc-muted);
	font-size: 13px;
}

.nfbc-status--chip:hover,
.nfbc-status--chip:focus-visible {
	background: var(--nfbc-field-hover);
	outline: none;
}

@media (max-width: 600px) {
	.nfbc-status--card {
		padding: 16px;
		gap: 12px 14px;
	}

	.nfbc-status__icon {
		width: 44px;
		height: 44px;
	}

	.nfbc-status__icon .nfbc-icon {
		width: 22px;
		height: 22px;
	}

	.nfbc-status__body {
		flex-basis: calc(100% - 60px);
	}

	.nfbc-status .nfbc-status__title {
		font-size: 22px;
	}

	.nfbc-status__meta {
		font-size: 15px;
	}

	.nfbc-status--selected .nfbc-btn {
		width: 100%;
	}
}

/* ---------- Widget shell: same cached HTML for all, state filled in by JS ---------- */

[data-nfbc-status] .nfbc-status--selected,
[data-nfbc-status].is-selected .nfbc-status--invite,
[data-nfbc-status] [hidden] {
	display: none !important;
}

[data-nfbc-status].is-selected .nfbc-status--card.nfbc-status--selected {
	display: flex !important;
}

[data-nfbc-status].is-selected .nfbc-status--chip.nfbc-status--selected {
	display: inline-flex !important;
}

/* Avoid a flash of the "invite" state for shoppers who already chose a branch. */
html.nfbc-has-branch [data-nfbc-status]:not(.is-hydrated) {
	visibility: hidden;
}

/* Products hidden in the browser because they are not available at the chosen branch. */
.nfbc-unavailable-hidden {
	display: none !important;
}

.nfbc-unavailable-mark {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--nfbc-r-btn);
	background: var(--nfbc-field);
	color: var(--nfbc-muted);
	font-family: var(--nfbc-font);
	font-weight: 300;
	font-size: 14px;
}

/* v1.9: more dates on demand, the shopper's current branch */
.nfbc-days.is-collapsed .nfbc-day:nth-child(n+9) {
	display: none;
}

.nfbc-modal .nfbc-choice.is-current {
	border-color: var(--nfbc-blue);
}

.nfbc-modal .nfbc-badge--current {
	background: var(--nfbc-blue-soft);
	color: var(--nfbc-blue);
}

/* Suggestion lists sit in the flow, so the dialog scroll area never clips them (short Google step). */
.nfbc-modal .nfbc-suggestions {
	position: relative;
	top: auto;
	margin-top: 4px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

/* ---------- Branch switch: cart check (v1.11) ---------- */

.nfbc-issues li.nfbc-issue {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid var(--nfbc-line);
	background: var(--nfbc-bg);
	color: var(--nfbc-text);
}

.nfbc-issue img,
.nfbc-issue .nfbc-issue-ph {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-field);
	object-fit: contain;
}

.nfbc-issue-txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.35;
}

.nfbc-issue-txt strong {
	font-size: 16px;
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-issue-txt span {
	font-size: 14px;
	font-weight: 300;
	color: var(--nfbc-red-ink);
}

.nfbc-issue--insufficient .nfbc-issue-txt span {
	color: #8a5a00;
}

.nfbc-modal .nfbc-note.is-warn {
	padding: 10px 14px;
	border-radius: var(--nfbc-r-field);
	background: var(--nfbc-honey-soft);
	color: var(--nfbc-text);
}

.nfbc-confirm-alt {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 20px;
}

/* After the switch: what changed in the cart. */
.nfbc-cart-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--nfbc-r-card);
	background: var(--nfbc-honey-soft);
	font-family: var(--nfbc-font);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--nfbc-text);
	direction: rtl;
}

.nfbc-cart-note__body {
	flex: 1 1 auto;
	min-width: 0;
}

.nfbc-cart-note strong {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
	font-weight: 400;
	color: var(--nfbc-ink);
}

.nfbc-cart-note ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nfbc-cart-note li {
	margin: 0;
}

.nfbc-cart-note__x {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	min-height: 0;
	margin: -4px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: var(--nfbc-muted);
	cursor: pointer;
}

.nfbc-cart-note__x:hover {
	background: rgba(0, 0, 0, .06);
	color: var(--nfbc-ink);
}

.nfbc-cart-note--inline {
	margin: 0 0 20px;
}

.nfbc-cart-note--toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	z-index: 100000;
	width: min(440px, calc(100vw - 32px));
	box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
	transform: translateX(-50%);
	transition: opacity .3s, transform .3s;
}

.nfbc-cart-note--toast.is-out {
	opacity: 0;
	transform: translate(-50%, 10px);
}

/* Phones: follow the visible area when the on-screen keyboard is open (set by nfbc-front.js). */
@media (max-width: 600px) {
	.nfbc-modal {
		top: var(--nfbc-vv-top, 0px);
		bottom: auto;
		height: var(--nfbc-vv-h, 100%);
	}

	.nfbc-modal__dialog {
		max-height: calc(var(--nfbc-vv-h, 100dvh) * .92);
	}
}

/* Schedule step: the chosen day folds into one row; time windows under their own heading. */
.nfbc-modal .nfbc-picked--day {
	margin: 0;
}

.nfbc-modal .nfbc-picked--day .nfbc-picked__change {
	margin-inline-start: auto;
}

.nfbc-modal .nfbc-slots-title {
	margin: 22px 0 12px;
}

.nfbc-modal .nfbc-slots-title + .nfbc-slots {
	margin-top: 0;
}

/* Touch screens keep :hover on the tapped button – the selected state must still win (it turned white). */
.nfbc-modal .nfbc-day.is-selected:hover,
.nfbc-modal .nfbc-slot.is-selected:not([disabled]):hover {
	border-color: var(--nfbc-blue);
	background: var(--nfbc-blue);
	color: #fff;
}
