.ff-search {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #332b1e;
	background: #fbf7ef;
	padding: 20px;
	border-radius: 14px;
}
.ff-header {
	background: #1f2430;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 16px;
}
.ff-header-title {
	color: #f4d9a0;
	font-size: 26px;
	font-weight: 700;
}
.ff-header-subtitle {
	color: #cbd0dc;
	font-size: 14px;
	margin-top: 4px;
}
.ff-last-updated {
	display: inline-block;
	background: #fff;
	color: #a8791f;
	border: 1px solid #ece2cc;
	border-radius: 6px;
	padding: 8px 14px;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 16px;
}
.ff-suppliers-box {
	background: #fff;
	border: 1px solid #ece2cc;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 16px;
}
.ff-suppliers-box-title {
	display: inline-block;
	background: #1f2430;
	color: #f4d9a0;
	font-weight: 700;
	font-size: 13px;
	padding: 4px 12px;
	border-radius: 6px;
	margin-bottom: 10px;
}
.ff-suppliers-box-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ff-supplier-chip {
	display: inline-block;
	background: #fbf7ef;
	color: #a8791f;
	border: 1px solid #d9c9a0;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
}
.ff-suppliers-box-cta {
	margin: 12px 0 0;
	font-weight: 700;
	color: #a8791f;
	font-size: 14px;
}
.ff-suppliers-box-cta a {
	color: #a8791f;
	font-weight: 700;
	text-decoration: underline;
}
.ff-suppliers-box-cta a:hover {
	color: #8a6119;
}
.ff-supplier-portal {
	margin-bottom: 16px;
}
.ff-supplier-message {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 10000;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	max-width: 90vw;
	opacity: 1;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.ff-supplier-message-fade {
	opacity: 0;
	transform: translateX(-50%) translateY(10px);
}
.ff-supplier-message-success {
	background: #eaf3ec;
	color: #3f7a4c;
	border: 1px solid #cfe4d3;
}
.ff-supplier-message-error {
	background: #f7e9e6;
	color: #b3402f;
	border: 1px solid #edd0ca;
}
.ff-supplier-login {
	background: #fff;
	border: 1px solid #ece2cc;
	border-radius: 8px;
	padding: 10px 14px;
}
.ff-supplier-login summary {
	cursor: pointer;
	font-weight: 700;
	color: #a8791f;
	font-size: 14px;
}
.ff-supplier-login form {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-top: 10px;
}
.ff-supplier-login label {
	font-size: 13px;
	color: #5b5342;
}
.ff-supplier-login input[type="email"] {
	display: block;
	padding: 7px 10px;
	border: 1px solid #ece2cc;
	border-radius: 6px;
	font-size: 14px;
	margin-top: 4px;
}
.ff-supplier-login button {
	background: #1f2430;
	color: #f4d9a0;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
}
.ff-supplier-card {
	background: #fff;
	border: 1px solid #ece2cc;
	border-radius: 8px;
	padding: 16px;
}
.ff-supplier-card h3 {
	margin: 0 0 12px;
	color: #1f2430;
	font-size: 16px;
}
.ff-supplier-card form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 420px;
}
.ff-supplier-card label {
	font-size: 13px;
	color: #5b5342;
	font-weight: 600;
}
.ff-supplier-card input[type="text"],
.ff-supplier-card input[type="date"],
.ff-supplier-card textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ece2cc;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	margin-top: 4px;
}
.ff-supplier-save {
	align-self: flex-start;
	background: #1f2430;
	color: #f4d9a0;
	border: none;
	padding: 9px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
}
.ff-supplier-save:hover {
	background: #333a4a;
}
.ff-supplier-delete-coupon {
	align-self: flex-start;
	background: #fff;
	color: #b3402f;
	border: 1px solid #e3b5a8;
	padding: 9px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
}
.ff-supplier-delete-coupon:hover {
	background: #f7e9e6;
}
.ff-filters {
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: #fff;
	border: 1px solid #ece2cc;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 20px;
}
.ff-filters fieldset {
	border: none;
	padding: 0;
	margin: 0;
}
.ff-filters legend {
	display: inline-block;
	background: #1f2430;
	color: #f4d9a0;
	font-weight: 700;
	font-size: 14px;
	padding: 5px 12px;
	border-radius: 6px;
	margin-bottom: 10px;
}
.ff-filters label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-inline-end: 8px;
	margin-bottom: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #ece2cc;
	background: #fff;
	color: #332b1e;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ff-filters label:hover {
	border-color: #d9c9a0;
}
.ff-filters label:has(input:checked) {
	background: #1f2430;
	color: #f4d9a0;
	border-color: #1f2430;
}
.ff-filters input[type="checkbox"],
.ff-filters input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}
.ff-submit {
	background: #1f2430;
	color: #f4d9a0;
	border: none;
	padding: 9px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
}
.ff-submit:hover {
	background: #333a4a;
}
.ff-result-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.ff-result-count {
	font-weight: 600;
	font-size: 15px;
	color: #5b5342;
	margin: 0;
}
.ff-sort-form {
	margin: 0;
}
.ff-sort-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #5b5342;
}
.ff-sort-label select {
	padding: 8px 14px;
	border: 1px solid #ece2cc;
	border-radius: 6px;
	background: #fff;
	color: #332b1e;
	font-size: 15px;
	font-family: inherit;
}
.ff-results {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 15px;
	background: #fff;
	border: 1px solid #ece2cc;
	border-radius: 10px;
	overflow: hidden;
}
.ff-results th,
.ff-results td {
	padding: 10px 8px;
	border-bottom: 1px solid #ece2cc;
	text-align: right;
	color: #332b1e;
}
/* Explicit per-column widths (table-layout: fixed uses these instead of
   content-driven auto-sizing) — name is kept narrow enough to wrap onto two
   lines, price wide enough that a 3-digit amount + ₪ never wraps. */
.ff-results th:nth-child(1),
.ff-results td:nth-child(1) { width: 26%; }
.ff-results th:nth-child(2),
.ff-results td:nth-child(2) { width: 9%; }
.ff-results th:nth-child(3),
.ff-results td:nth-child(3) { width: 9%; }
.ff-results th:nth-child(4),
.ff-results td:nth-child(4) { width: 11%; }
.ff-results th:nth-child(5),
.ff-results td:nth-child(5) { width: 6%; }
.ff-results th:nth-child(6),
.ff-results td:nth-child(6) { width: 5%; }
.ff-results th:nth-child(7),
.ff-results td:nth-child(7) { width: 6%; }
.ff-results th:nth-child(8),
.ff-results td:nth-child(8) { width: 6%; }
.ff-results th:nth-child(9),
.ff-results td:nth-child(9) { width: 10%; }
.ff-results th:nth-child(10),
.ff-results td:nth-child(10) { width: 6%; }
.ff-results th:nth-child(11),
.ff-results td:nth-child(11) { width: 6%; }
.ff-results thead tr {
	background: #1f2430;
}
.ff-results thead th {
	font-weight: 700;
	font-size: 15px;
	color: #f4d9a0;
	border-bottom: none;
}
.ff-price {
	font-size: 17px;
	font-weight: 700;
	color: #a8791f;
}
.ff-name-col {
	max-width: 160px;
	white-space: normal;
	word-break: break-word;
}
.ff-price-col {
	white-space: nowrap;
	min-width: 95px;
}
.ff-instock {
	font-weight: 700;
	color: #3f7a4c;
}
.ff-outofstock {
	font-weight: 700;
	color: #b3402f;
}
.ff-link {
	color: #a8791f;
	text-decoration: underline;
	font-weight: 600;
}
.ff-link:hover {
	color: #8a6119;
}
/* Higher specificity than the general ".ff-results td { text-align: right }"
   rule (which otherwise wins the cascade despite this being more specific-
   looking on its own) — without this the coupon badge sits right-aligned
   instead of centered in its column. */
.ff-results td.ff-coupon-col {
	text-align: center;
}
.ff-coupon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	background: #1f2430;
	border-radius: 999px;
	padding: 5px 12px;
	transition: background 0.15s;
}
.ff-coupon-badge:hover,
.ff-coupon-badge:focus-visible {
	background: #333a4a;
}
.ff-coupon-badge-icon {
	font-size: 15px;
	line-height: 1;
}
.ff-coupon-badge-icon-fixed {
	font-size: 21px;
}
.ff-coupon-badge-teaser {
	color: #f4d9a0;
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
}
.ff-coupon-badge-locked {
	cursor: not-allowed;
	opacity: 0.45;
}
.ff-coupon-badge-locked:hover {
	background: #1f2430;
}
.ff-link-disabled {
	color: #a8a294;
	text-decoration: line-through;
	cursor: not-allowed;
	font-weight: 600;
}
.ff-upsell-banner {
	background: #fff;
	border: 1px solid #d9c9a0;
	border-radius: 10px;
	padding: 16px 18px;
	margin-top: 14px;
	text-align: center;
	color: #332b1e;
	font-size: 15px;
	line-height: 1.6;
}
.ff-upsell-banner strong {
	color: #a8791f;
}
.ff-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.ff-modal.ff-modal-open {
	display: flex;
}
.ff-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 36, 48, 0.6);
}
.ff-modal-box {
	position: relative;
	background: #fbf7ef;
	border: 1px solid #ece2cc;
	border-radius: 12px;
	padding: 24px;
	max-width: 360px;
	width: calc(100% - 40px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-family: Arial, Helvetica, sans-serif;
	text-align: right;
	direction: rtl;
}
.ff-modal-close {
	position: absolute;
	top: 8px;
	left: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #5b5342;
}
.ff-modal-close:hover {
	color: #332b1e;
}
.ff-modal-title {
	font-size: 17px;
	font-weight: 700;
	color: #1f2430;
	margin-bottom: 14px;
	padding-inline-end: 20px;
}
.ff-coupon-modal-teaser {
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: #a8791f;
	margin-bottom: 12px;
}
.ff-coupon-modal-code-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.ff-coupon-modal-code {
	background: #1f2430;
	color: #f4d9a0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 6px;
	padding: 10px 14px;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}
.ff-coupon-copy-btn {
	background: #fff;
	color: #a8791f;
	border: 1px solid #d9c9a0;
	border-radius: 999px;
	padding: 5px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ff-coupon-copy-btn:hover {
	border-color: #a8791f;
}
.ff-coupon-copy-btn.ff-copied {
	background: #3f7a4c;
	color: #fff;
	border-color: #3f7a4c;
}
.ff-coupon-copy-btn.ff-copy-failed {
	background: #b3402f;
	color: #fff;
	border-color: #b3402f;
}
.ff-coupon-modal-desc {
	color: #332b1e;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 10px;
}
.ff-coupon-modal-expiry {
	color: #a8791f;
	font-size: 13px;
	font-weight: 600;
}

/* Below this width, the 9-column table becomes unreadable — same markup,
   but each row renders as a standalone card instead of a table row, with
   a data-label prefix standing in for the (now hidden) column header. */
@media (max-width: 600px) {
	.ff-results {
		table-layout: auto;
		overflow: visible;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
	.ff-results tr {
		box-sizing: border-box;
	}
	.ff-results th:nth-child(n),
	.ff-results td:nth-child(n) {
		width: auto;
	}
	.ff-results thead {
		display: none;
	}
	.ff-results,
	.ff-results tbody,
	.ff-results tr {
		display: block;
		width: 100%;
	}
	.ff-results tr {
		margin-bottom: 14px;
		border: 2px solid #d9c9a0;
		border-radius: 10px;
		padding: 10px 14px;
		background: #fff;
		box-shadow: 0 2px 6px rgba(50, 40, 10, 0.08);
	}
	.ff-results td {
		display: block;
		text-align: right;
		border-bottom: none;
		padding: 4px 0;
		max-width: none;
		white-space: normal;
		word-break: break-word;
	}
	.ff-results td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 700;
		color: #5b5342;
		font-size: 12px;
	}
	.ff-results td.ff-coupon-col:not(:has(.ff-coupon-badge)) {
		display: none;
	}
	.ff-results td.ff-name-col {
		display: block;
		font-weight: 700;
		font-size: 15px;
		margin-bottom: 6px;
	}
	.ff-results td.ff-price-col {
		font-size: 18px;
	}
	.ff-results td.ff-link-col {
		display: block;
		margin-top: 8px;
	}
	.ff-results td.ff-link-col .ff-link {
		display: block;
		text-align: center;
		background: #1f2430;
		color: #f4d9a0;
		text-decoration: none;
		font-weight: 700;
		padding: 8px;
		border-radius: 6px;
	}
}
