/* ==========================================================================
   Actifyd Enquiry 0.1.0
   Every colour and face reads a Fresh Catch design token with a hex fallback,
   so this works before the tokens are loaded and inherits the brand after.
   ========================================================================== */

.fc-catalogue,
.fc-drawer,
.fc-fab,
.fc-sheet {
	--_primary: var(--fc-primary, #0068b4);
	--_hover: var(--fc-primary-hover, #005390);
	--_active: var(--fc-primary-active, #004577);
	--_deep: var(--fc-deep, #002a4a);
	--_ink: var(--fc-ink, #002a4a);
	--_muted: var(--fc-ink-muted, #546b78);
	--_faint: var(--fc-ink-faint, #8199a5);
	--_border: var(--fc-border, #d9e7f1);
	--_border-s: var(--fc-border-strong, #b0cee5);
	--_paper: var(--fc-paper, #ffffff);
	--_alt: var(--fc-surface-alt, #f3f7fb);
	--_sunk: var(--fc-surface-sunk, #e3eef6);
	--_cream: var(--fc-cream, #fce8bc);
	--_head: var(--fc-font-heading, "Outfit", system-ui, sans-serif);
	--_body: var(--fc-font-body, "Inter", system-ui, sans-serif);
}

.fc-catalogue *,
.fc-drawer *,
.fc-sheet * {
	box-sizing: border-box;
}

/* The hidden attribute is only a UA-stylesheet rule, so any display value set
   below would quietly override it and leave hidden elements laid out — and, in
   the drawer's case, still reachable by keyboard. Re-assert it for everything
   this plugin owns, and nothing else on the site. */
.fc-catalogue[hidden],
.fc-catalogue [hidden],
.fc-tile[hidden],
.fc-fab[hidden],
.fc-scrim[hidden],
.fc-drawer[hidden],
.fc-drawer [hidden] {
	display: none !important;
}

/* ---------- Filter bar ---------- */

.fc-filters {
	display: grid;
	/* minmax(0, 1fr), not the default 1fr: a grid item's min-width is auto,
	   so the column would otherwise refuse to shrink below its content and the
	   chip row would push the whole panel wider than the phone, giving the
	   page a horizontal scroll. */
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0 0 28px;
	padding: 20px;
	background: var(--_alt);
	border: 1px solid var(--_border);
}

.fc-filters > * {
	min-width: 0;
}

.fc-field-label {
	display: block;
	margin: 0 0 6px;
	font-family: var(--_body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--_ink);
	padding: 0;
}

.fc-opt {
	font-weight: 400;
	color: var(--_faint);
}

.fc-input {
	width: 100%;
	padding: 11px 13px;
	font-family: var(--_body);
	font-size: 15px;
	line-height: 1.4;
	color: var(--_ink);
	background: var(--_paper);
	border: 1px solid var(--_border);
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
}

.fc-input:focus {
	outline: none;
	border-color: var(--_primary);
	box-shadow: 0 0 0 2px var(--_sunk);
}

.fc-select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23546b78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
}

/* ---------- Chip rows, and the "there is more over here" cue ----------
   The fade is a mask, not a painted gradient, so it works against whatever
   colour the filter bar happens to be and survives a change to --fc-surface-alt.
   The chevron is drawn from borders so it picks up the brand token; an SVG
   data URI could not, because var() does not resolve inside one. Both are
   driven by data-ov, which JS sets from the real scroll position. */

.fc-chipscroll {
	position: relative;
}

.fc-chiprow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fc-chipscroll::after,
.fc-chipscroll::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid var(--_primary);
	border-bottom: 2px solid var(--_primary);
	opacity: 0;
	pointer-events: none;   /* never steals a swipe or a tap on a chip */
	transition: opacity .15s ease;
}

.fc-chipscroll::after {
	right: 3px;
	transform: rotate(-45deg);
}

.fc-chipscroll::before {
	left: 3px;
	transform: rotate(135deg);
}

.fc-chipscroll[data-ov="right"]::after,
.fc-chipscroll[data-ov="both"]::after,
.fc-chipscroll[data-ov="left"]::before,
.fc-chipscroll[data-ov="both"]::before {
	opacity: 1;
}

.fc-chipscroll[data-ov="right"] .fc-chiprow {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 54px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 54px), transparent);
}

.fc-chipscroll[data-ov="left"] .fc-chiprow {
	-webkit-mask-image: linear-gradient(to left, #000 calc(100% - 54px), transparent);
	mask-image: linear-gradient(to left, #000 calc(100% - 54px), transparent);
}

.fc-chipscroll[data-ov="both"] .fc-chiprow {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 54px, #000 calc(100% - 54px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 54px, #000 calc(100% - 54px), transparent);
}

.fc-chip {
	margin: 0;
	padding: 8px 15px;
	font-family: var(--_body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--_ink);
	background: var(--_paper);
	border: 1px solid var(--_border);
	border-radius: 999px;
	cursor: pointer;
	transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.fc-chip:hover {
	border-color: var(--_border-s);
}

.fc-chip.is-on {
	color: #fff;
	background: var(--_primary);
	border-color: var(--_primary);
}

.fc-chip:focus-visible,
.fc-clear:focus-visible,
.fc-add:focus-visible,
.fc-ghost:focus-visible,
.fc-send:focus-visible,
.fc-step:focus-visible,
.fc-line-x:focus-visible,
.fc-drawer-close:focus-visible,
.fc-fab:focus-visible {
	outline: 2px solid var(--_primary);
	outline-offset: 2px;
}

.fc-filters-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
}

.fc-count {
	margin: 0;
	padding: 0;
	font-family: var(--_body);
	font-size: 13px;
	color: var(--_muted);
}

.fc-clear {
	margin: 0;
	padding: 0;
	font-family: var(--_body);
	font-size: 13px;
	font-weight: 600;
	color: var(--_primary);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fc-nomatch,
.fc-enq-empty,
.fc-enq-warn {
	margin: 0 0 24px;
	padding: 18px 20px;
	font-family: var(--_body);
	font-size: 15px;
	color: var(--_muted);
	background: var(--_alt);
	border: 1px solid var(--_border);
}

/* ---------- Grid and tile ---------- */

.fc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	align-items: start;
}

.fc-tile {
	display: flex;
	flex-direction: column;
	background: var(--_paper);
	border: 1px solid var(--_border);
	border-radius: 0;
	overflow: hidden;
}

.fc-tile[hidden] {
	display: none;
}

.fc-tile-photo {
	position: relative;
	aspect-ratio: 6 / 5;
	background: var(--_alt);
	overflow: hidden;
}

.fc-tile-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fc-tile-nophoto {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, transparent 47%, var(--_sunk) 47%, var(--_sunk) 53%, transparent 53%),
		var(--_alt);
}

.fc-tile-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	padding: 14px 14px 12px;
}

.fc-tile-name {
	margin: 0;
	padding: 0;
	font-family: var(--_head);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--_ink);
}

.fc-tile-meta {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--_body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--_muted);
}

.fc-add {
	display: block;
	width: 100%;
	margin: auto 0 0;
	padding: 12px 18px;
	font-family: var(--_body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	color: #fff;
	background: var(--_primary);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .14s ease;
}

.fc-add:hover {
	background: var(--_hover);
}

.fc-add:active {
	background: var(--_active);
}

.fc-add.is-in {
	background: var(--_deep);
}

.fc-tile-note {
	margin: 8px 0 0;
	padding: 0;
	font-family: var(--_body);
	font-size: 12.5px;
	line-height: 1.4;
	text-align: center;
	color: var(--_muted);
}

/* ---------- Floating button ---------- */

.fc-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99990;
	display: inline-flex;
	gap: 9px;
	align-items: center;
	margin: 0;
	padding: 13px 20px;
	font-family: var(--_body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--_primary);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 22px rgba(0, 42, 74, .28);
	cursor: pointer;
	transition: background .14s ease, transform .14s ease;
}

.fc-fab:hover {
	background: var(--_hover);
	transform: translateY(-1px);
}

.fc-fab-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.fc-fab-count {
	display: inline-flex;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 13px;
	font-weight: 700;
	align-items: center;
	justify-content: center;
	color: var(--_deep);
	background: var(--_cream);
	border-radius: 999px;
}

/* ---------- Ask-a-question WhatsApp button ----------
   WhatsApp's own green on purpose. The palette says no outside colours, but
   this is a third-party brand mark doing the job a logo does: a blue WhatsApp
   circle reads as a generic chat bubble and loses the recognition that makes
   people tap it. Override with .fc-wa{background:var(--fc-primary)} if the
   client would rather it matched. */

.fc-wa {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99989;
	display: inline-flex;
	width: 54px;
	height: 54px;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #25d366;
	border-radius: 999px;
	box-shadow: 0 6px 22px rgba(0, 42, 74, .3);
	transition: transform .14s ease, background .14s ease;
}

.fc-wa:hover,
.fc-wa:focus {
	color: #fff;
	background: #1eb855;
	transform: translateY(-1px);
}

.fc-wa:focus-visible {
	outline: 2px solid var(--fc-deep, #002a4a);
	outline-offset: 3px;
}

.fc-wa svg {
	width: 29px;
	height: 29px;
}

/* When both are on screen the enquiry pill stacks above the round button
   rather than landing on top of it. */
body.fc-has-wa .fc-fab {
	bottom: 84px;
}

/* ---------- Scrim and drawer ---------- */

.fc-scrim {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(0, 42, 74, .45);
	opacity: 0;
	transition: opacity .22s ease;
}

.fc-scrim.is-open {
	opacity: 1;
}

.fc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99992;
	display: flex;
	flex-direction: column;
	width: min(430px, 100vw);
	height: 100vh;
	height: 100dvh;
	font-family: var(--_body);
	background: var(--_paper);
	border-radius: 14px 0 0 14px;
	box-shadow: -8px 0 40px rgba(0, 42, 74, .22);
	transform: translateX(101%);
	transition: transform .26s cubic-bezier(.32, .72, 0, 1);
	overscroll-behavior: contain;
}

.fc-drawer.is-open {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.fc-drawer,
	.fc-scrim,
	.fc-fab {
		transition: none;
	}
}

.fc-drawer-head {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 18px 14px 20px;
	border-bottom: 1px solid var(--_border);
}

.fc-drawer-title {
	margin: 0;
	padding: 0;
	font-family: var(--_head);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: var(--_ink);
}

.fc-drawer-close {
	display: inline-flex;
	width: 38px;
	height: 38px;
	padding: 0;
	align-items: center;
	justify-content: center;
	color: var(--_muted);
	background: var(--_alt);
	border: 1px solid var(--_border);
	border-radius: 999px;
	cursor: pointer;
}

.fc-drawer-close svg {
	width: 17px;
	height: 17px;
}

.fc-drawer-close:hover {
	color: var(--_ink);
	border-color: var(--_border-s);
}

.fc-drawer-body {
	flex: 1 1 auto;
	padding: 4px 20px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.fc-drawer-empty {
	margin: 24px 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--_muted);
}

.fc-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-line {
	display: grid;
	grid-template-columns: 62px 1fr auto;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--_border);
}

.fc-line-photo {
	grid-row: span 2;
	aspect-ratio: 6 / 5;
	background: var(--_alt);
	overflow: hidden;
}

.fc-line-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fc-line-main {
	min-width: 0;
}

.fc-line-name {
	margin: 0;
	padding: 0;
	font-family: var(--_head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--_ink);
}

.fc-line-meta {
	margin: 2px 0 0;
	padding: 0;
	font-size: 13px;
	color: var(--_muted);
}

.fc-line-x {
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	color: var(--_faint);
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.fc-line-x:hover {
	color: #c0392b;
	background: var(--_alt);
}

.fc-line-controls {
	grid-column: 2 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 10px;
}

.fc-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--_border);
	border-radius: 999px;
	overflow: hidden;
}

.fc-step {
	width: 34px;
	padding: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	color: var(--_primary);
	background: var(--_paper);
	border: 0;
	cursor: pointer;
}

.fc-step:hover {
	background: var(--_alt);
}

.fc-qty {
	min-width: 66px;
	padding: 7px 2px;
	font-family: var(--_body);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: var(--_ink);
}

.fc-flex {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	font-size: 13px;
	color: var(--_muted);
	cursor: pointer;
}

.fc-flex input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--_primary);
}

.fc-note {
	width: 100%;
	padding: 8px 11px;
	font-family: var(--_body);
	font-size: 13.5px;
	color: var(--_ink);
	background: var(--_paper);
	border: 1px solid var(--_border);
	border-radius: 4px;
}

.fc-note:focus {
	outline: none;
	border-color: var(--_primary);
	box-shadow: 0 0 0 2px var(--_sunk);
}

.fc-who {
	display: grid;
	gap: 14px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 3px solid var(--_sunk);
}

.fc-who[hidden] {
	display: none;
}

/* ---------- Drawer footer ---------- */

.fc-drawer-foot {
	flex: 0 0 auto;
	padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	background: var(--_paper);
	border-top: 1px solid var(--_border);
}

.fc-send {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	font-family: var(--_body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	color: #fff;
	text-decoration: none;
	background: var(--_primary);
	border-radius: 8px;
	transition: background .14s ease;
}

.fc-send:hover,
.fc-send:focus {
	color: #fff;
	text-decoration: none;
	background: var(--_hover);
}

.fc-send svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.fc-send.is-off {
	color: var(--_muted);
	background: var(--_sunk);
	pointer-events: none;
}

.fc-foot-row {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin-top: 10px;
}

.fc-ghost {
	padding: 8px 10px;
	font-family: var(--_body);
	font-size: 13px;
	font-weight: 600;
	color: var(--_primary);
	background: none;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.fc-ghost:hover {
	background: var(--_alt);
}

.fc-ghost-danger {
	color: var(--_muted);
}

.fc-ghost-danger:hover {
	color: #c0392b;
}

.fc-foot-note {
	margin: 8px 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
	color: var(--_faint);
}

/* ---------- Printable counter sheet ---------- */

.fc-sheet {
	display: none;
}

@media print {
	body > *:not(.fc-sheet) {
		display: none !important;
	}

	.fc-sheet {
		display: block !important;
		padding: 0;
		font-family: var(--_body);
		color: #000;
	}

	.fc-sheet-title {
		margin: 0 0 2px;
		font-family: var(--_head);
		font-size: 22px;
	}

	.fc-sheet-sub {
		margin: 0 0 18px;
		font-size: 12px;
		color: #444;
	}

	.fc-sheet-table {
		width: 100%;
		border-collapse: collapse;
		font-size: 13px;
	}

	.fc-sheet-table th,
	.fc-sheet-table td {
		padding: 7px 8px;
		text-align: left;
		border-bottom: 1px solid #bbb;
	}

	.fc-sheet-table th {
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: .08em;
		border-bottom: 2px solid #000;
	}

	.fc-sheet-who {
		margin-top: 18px;
		font-size: 13px;
		white-space: pre-line;
	}
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
	.fc-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.fc-filters {
		gap: 14px;
		padding: 16px;
		margin-bottom: 22px;
	}

	.fc-chiprow {
		flex-wrap: nowrap;
		gap: 7px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.fc-chiprow::-webkit-scrollbar {
		display: none;
	}

	.fc-chip {
		flex: 0 0 auto;
		padding: 8px 13px;
		font-size: 13.5px;
	}

	.fc-tile-body {
		gap: 3px;
		padding: 11px 10px 10px;
	}

	.fc-tile-name {
		font-size: 15.5px;
	}

	.fc-tile-meta {
		margin-bottom: 8px;
		font-size: 12.5px;
	}

	.fc-add {
		padding: 11px 8px;
		font-size: 13.5px;
	}

	.fc-tile-note {
		margin-top: 6px;
		font-size: 11px;
	}

	.fc-drawer {
		border-radius: 14px 0 0 0;
	}

	.fc-fab {
		right: 14px;
		bottom: 14px;
		padding: 12px 17px;
		font-size: 14px;
	}

	.fc-wa {
		right: 14px;
		bottom: 14px;
		width: 50px;
		height: 50px;
	}

	.fc-wa svg {
		width: 27px;
		height: 27px;
	}

	body.fc-has-wa .fc-fab {
		bottom: 76px;
	}
}

@media (max-width: 400px) {
	.fc-fab-label {
		display: none;
	}
}

/* Keep the page still while the drawer is open. */
body.fc-enq-locked {
	overflow: hidden;
}
