/* Food Sock "Find a reseller". Uses the theme's --fs-* colours when present, with fallbacks. */

.fsl {
	--o: var(--fs-orange, #DB7300);
	--od: var(--fs-orange-dark, #B35E00);
	--ol: var(--fs-olive, #435818);
	--old: var(--fs-olive-dark, #2F3F10);
	--cr: var(--fs-cream, #F9D89E);
	--line: var(--fs-line, #EADBB9);
	--muted: var(--fs-muted, #5E6648);
	--r: var(--fs-radius, 22px);
	--rs: var(--fs-radius-sm, 14px);
	--sh: var(--fs-shadow, 0 2px 4px rgba(47, 63, 16, .06), 0 10px 28px rgba(47, 63, 16, .10));
	font-family: var(--fs-font, Poppins, system-ui, sans-serif);
	color: var(--old);
	max-width: 1100px;
	margin: 0 auto;
}
.fsl *, .fsl *::before, .fsl *::after { box-sizing: border-box; }
.fsl :is(input, button, label, legend, p, h3, h4, li, a) { font-family: var(--fs-font, Poppins, system-ui, sans-serif); }
.fsl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search */
.fsl-search {
	display: flex;
	gap: 10px;
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--sh);
	padding: 8px;
}
.fsl-field { position: relative; flex: 1; }
.fsl-field input {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	padding: 12px 20px;
	font: 600 17px/1.2 var(--fs-font, Poppins, system-ui, sans-serif);
	color: var(--old);
	background: transparent;
}
.fsl-field input:focus { outline: 3px solid var(--cr); outline-offset: 2px; }
.fsl-near {
	flex: none;
	border: 0;
	border-radius: 999px;
	padding: 0 22px;
	min-height: 52px;
	background: var(--o);
	color: #fff;
	font: 700 16px/1 var(--fs-font, Poppins, system-ui, sans-serif);
	cursor: pointer;
	box-shadow: 0 3px 0 var(--od);
}
.fsl-near:hover { background: var(--od); }
.fsl-near:disabled { opacity: .6; cursor: wait; }
.fsl-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 10px);
	z-index: 20;
	list-style: none;
	margin: 0;
	padding: 6px;
	background: #fff;
	border-radius: var(--rs);
	box-shadow: 0 12px 32px rgba(47, 63, 16, .18);
	max-height: 320px;
	overflow: auto;
}
.fsl-suggest li { padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.fsl-suggest li span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.fsl-suggest li:hover, .fsl-suggest li.is-active { background: #FFF4DD; }
.fsl-suggest li.fsl-sug-search { color: #435818; border-top: 1px solid rgba(67, 88, 24, .15); border-radius: 0 0 10px 10px; }

/* Province chips */
.fsl-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 6px; }
.fsl-chip {
	border: 1.5px solid var(--line);
	background: #fff;
	color: var(--ol);
	border-radius: 999px;
	padding: 8px 14px;
	font: 700 14px/1 var(--fs-font, Poppins, system-ui, sans-serif);
	cursor: pointer;
}
.fsl-chip span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.fsl-chip.is-on { background: var(--ol); border-color: var(--ol); color: #fff; }
.fsl-chip.is-on span { color: var(--cr); }

.fsl-summary { text-align: center; font-weight: 500; margin: 14px 0 18px; }
.fsl-summary strong { color: var(--ol); }

/* Results + map */
.fsl-body { display: grid; gap: 20px; }
@media (min-width: 900px) {
	.fsl-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.fsl-mapwrap { position: sticky; top: 100px; }
}
.fsl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fsl-list:focus { outline: none; }
.fsl-card {
	background: #fff;
	border-radius: var(--rs);
	box-shadow: var(--sh);
	padding: 16px 18px;
	border-left: 5px solid var(--o);
}
.fsl-card.is-shop { border-left-color: var(--ol); }
.fsl-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fsl-card h4 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ol); font-family: inherit; }
.fsl-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: var(--ol); color: var(--cr); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fsl-dist { flex: none; font-weight: 800; color: var(--o); font-size: 15px; }
.fsl-where { margin: 4px 0 12px; color: var(--muted); font-weight: 500; font-size: 15px; }
.fsl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fsl a.fsl-btn {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid transparent;
}
.fsl a.fsl-btn.fsl-btn--wa { background: #1F9E52; color: #fff; }
.fsl a.fsl-btn.fsl-btn--wa:hover { background: #18843f; color: #fff; }
.fsl a.fsl-btn.fsl-btn--call { background: var(--o); color: #fff; }
.fsl a.fsl-btn.fsl-btn--call:hover { background: var(--od); color: #fff; }
.fsl a.fsl-btn.fsl-btn--dir { border-color: var(--ol); color: var(--ol); }
.fsl a.fsl-btn.fsl-btn--dir:hover { background: var(--ol); color: #fff; }
.fsl-btn:focus-visible { outline: 3px solid var(--cr); outline-offset: 2px; }

.fsl-showmap {
	width: 100%;
	min-height: 120px;
	border: 2px dashed var(--line);
	border-radius: var(--r);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23DB7300' stroke-width='2'%3E%3Cpath d='M12 22s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center 24px no-repeat;
	padding: 72px 20px 22px;
	font: 700 16px/1 var(--fs-font, Poppins, system-ui, sans-serif);
	color: var(--ol);
	cursor: pointer;
}
.fsl-showmap:hover { border-color: var(--o); }
.fsl-map { height: 520px; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); background: #e8e2d0; }
@media (max-width: 899px) { .fsl-map { height: 380px; } }

.fsl-more-wrap { text-align: center; margin: 18px 0 0; }
.fsl-more {
	border: 2px solid var(--ol);
	background: transparent;
	color: var(--ol);
	border-radius: 999px;
	padding: 12px 24px;
	font: 700 15px/1 var(--fs-font, Poppins, system-ui, sans-serif);
	cursor: pointer;
}
.fsl-more:hover { background: var(--ol); color: #fff; }

/* No reseller nearby */
.fsl-none {
	margin-top: 40px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sh);
	padding: clamp(22px, 4vw, 36px);
	transition: box-shadow .3s;
}
.fsl-none.is-highlight { box-shadow: 0 0 0 4px var(--o), var(--sh); }
.fsl-none h3 { margin: 0 0 6px; font-size: 24px; font-weight: 900; color: var(--ol); font-family: inherit; }
.fsl-none > p { margin: 0 0 16px; color: var(--muted); font-weight: 500; }
.fsl-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fsl-form label { display: block; font-weight: 700; font-size: 14px; }
.fsl-row input {
	display: block;
	width: 100%;
	margin-top: 6px;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	font: 500 16px/1.2 var(--fs-font, Poppins, system-ui, sans-serif);
}
.fsl-row input:focus { outline: none; border-color: var(--ol); box-shadow: 0 0 0 3px rgba(67, 88, 24, .15); }
.fsl-wants { border: 0; padding: 0; margin: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fsl-wants legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.fsl-wants label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 15px; }
.fsl-consent { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; margin: 8px 0 14px; }
.fsl-consent input { margin-top: 3px; accent-color: var(--ol); }
.fsl-hp { position: absolute; left: -9999px; }
.fsl-submit {
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	background: var(--o);
	color: #fff;
	font: 700 16px/1 var(--fs-font, Poppins, system-ui, sans-serif);
	cursor: pointer;
	box-shadow: 0 3px 0 var(--od);
}
.fsl-submit:hover { background: var(--od); }
.fsl-form-msg { margin: 0 0 12px; font-weight: 600; }
.fsl-form-msg.is-ok { color: #2f7d32; }
.fsl-form-msg.is-err { color: #B5461F; }

@media (max-width: 520px) {
	.fsl-search { flex-direction: column; border-radius: var(--r); }
	.fsl-near { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fsl-none { transition: none; }
}

/* Towns by province (plain links, also read by search engines) */
.fsl-areas { margin-top: 48px; }
.fsl-areas h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); font-weight: 900; color: var(--ol); text-align: center; }
.fsl-areas > p { margin: 0 auto 20px; max-width: 620px; text-align: center; color: var(--muted); font-weight: 500; }
.fsl-area { background: #fff; border-radius: var(--rs); box-shadow: var(--sh); margin: 0 0 10px; }
.fsl-area summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 20px; font-weight: 800; color: var(--ol); cursor: pointer; list-style: none; }
.fsl-area summary::-webkit-details-marker { display: none; }
.fsl-area summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--o); }
.fsl-area[open] summary::after { content: "–"; }
.fsl-area summary span { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.fsl-area ul { list-style: none; margin: 0; padding: 0 20px 18px; columns: 4 160px; column-gap: 20px; }
.fsl-area li { margin: 0 0 6px; break-inside: avoid; font-size: 15px; }
.fsl-area a { color: var(--old); text-decoration: none; font-weight: 500; }
.fsl-area a:hover { color: var(--o); text-decoration: underline; }
