/* ============================================================
   BAS Vendor Map — bundle.css
   Frontend styles for the BAS Vendor Map Divi 5 module.

   Includes:
     1. Shared BAS button styles (duplicated for self-containment)
     2. Vendor card styles (same as Market Vendors — intentional)
     3. Map wrap + filter bar styles
     4. Tooltip styles
     5. Grid header + status
     6. Responsive breakpoints
   ============================================================ */

/* ── 1. Shared BAS button ──────────────────────────────────────────────────── */
.bas-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
	color: #fff !important;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid #70ac43;
	border-radius: 100px;
	padding: 11px 28px;
	cursor: pointer;
	transition: opacity 0.18s, transform 0.18s;
	line-height: 1.3;
	white-space: nowrap;
}
.bas-btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); }
.bas-btn-primary:active { transform: translateY(0); }

/* ── 2. Vendor cards (identical to Market Vendors module) ───────────────────── */
.bas-market-vendors__grid {
	display: grid;
	gap: 1.5rem;
}
.bas-market-vendors__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.bas-market-vendors__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.bas-market-vendors__card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	/* overflow:hidden REMOVED — it was clipping the avatar-row that uses
	   margin-top:-45px to straddle the banner/card boundary.
	   The banner gets its own border-radius to maintain rounded top corners. */
	box-shadow: 0 2px 10px rgba(0,0,0,0.07);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
}
.bas-market-vendors__card:hover {
	box-shadow: 0 6px 22px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

.bas-market-vendors__banner {
	width: 100%;
	height: 130px;
	background-color: #c2e86b;
	background-size: cover;
	background-position: center;
	position: relative;       /* containing block for the absolutely-placed avatar */
	overflow: visible;        /* allow avatar to hang below the banner's bottom edge */
	flex-shrink: 0;
	border-radius: 12px 12px 0 0;  /* clips the background-image; does NOT clip abs children */
}

/* Avatar row — absolutely positioned inside the banner.
   top: 100%             → avatar's TOP edge sits exactly at the banner's bottom.
   translateY(-50%)      → shifts the avatar UP by half its OWN height (45px),
                           so the avatar's CENTRE lands on the banner bottom edge.
   This is Divi-proof: top:100% is always the containing block's bottom, and
   transform percentages are always relative to the element itself — nothing
   Divi ships can override either without also breaking unrelated things. */
.bas-market-vendors__avatar-row {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

/* Base avatar styles */
.bas-market-vendors__avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 3px solid #fff;
	object-fit: cover;
	background: #efefef;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	display: block;
}
.bas-market-vendors__avatar--placeholder {
	background: #ddd;
}

/* Profile text block: name + city/state/zip.
   padding-top: 52px = 45px (avatar half that hangs below banner) + 7px gap.
   No z-index needed — the text is always below the avatar in vertical space. */
.bas-market-vendors__profile-text {
	text-align: center;
	padding: 52px 1.25rem 0;
	width: 100%;
	box-sizing: border-box;
}

.bas-market-vendors__info {
	padding: 6px 1.25rem 0.75rem;
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

/* ── Scoped overrides — beat Farmers Market plugin and Divi CSS resets ──────── */

/* FM bundle.css sets margin-bottom:50px on .bas-market-vendors__banner globally;
   zero it out so the avatar doesn't get displaced. */
.bas-vm__wrap .bas-market-vendors__banner {
	margin-bottom: 0 !important;
	overflow: visible !important;  /* must be visible so abs-positioned avatar shows below banner */
}

/* Avatar row — absolutely positioned inside the banner.
   top:100% puts the avatar's top at the banner's bottom edge.
   translate(-50%,-50%) centres it horizontally AND shifts it up by half its
   own height (45px), placing the avatar's midpoint exactly on the banner bottom.
   Transform percentages are relative to the element itself — Divi-proof. */
.bas-vm__wrap .bas-market-vendors__avatar-row {
	position: absolute !important;
	top: 100% !important;
	bottom: auto !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 2 !important;
	/* clear any old flex / negative-margin rules */
	display: block !important;
	margin-top: 0 !important;
	min-height: 0 !important;
}

/* Force exact avatar dimensions — critical counter to Divi's height:auto reset */
.bas-vm__wrap .bas-market-vendors__avatar {
	width: 90px !important;
	height: 90px !important;
	min-width: 90px !important;
	min-height: 90px !important;
	max-width: 90px !important;
	max-height: 90px !important;
	border-radius: 50% !important;
	border: 3px solid #fff !important;
	object-fit: cover !important;
	display: block !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Placeholder div uses same dimensions */
.bas-vm__wrap .bas-market-vendors__avatar--placeholder {
	background: #ddd !important;
}

/* Profile-text padding-top clears the 45px avatar overhang + 7px breathing room.
   No z-index tricks needed — layout now keeps text fully below the avatar. */
.bas-vm__wrap .bas-market-vendors__profile-text {
	padding-top: 52px !important;
}

/* ── Filter visibility overrides — Divi 5 CSS resets can zero out display/height ─ */
/* These !important rules guarantee the name-search row and category chips        */
/* are always visible regardless of theme or Divi reset styles.                  */
.bas-vm__wrap .bas-vm__filters {
	display: block !important;
	margin-bottom: 1rem !important;
}
.bas-vm__wrap .bas-vm__filter-row {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.625rem !important;
	align-items: center !important;
}
.bas-vm__wrap .bas-vm__name-search-row {
	display: flex !important;
	margin-bottom: 0.5rem !important;
	width: 100% !important;  /* !important needed — Divi can override width without it */
}
.bas-vm__wrap .bas-vm__name-search-row .bas-vm__input-wrap {
	display: block !important;
	flex: 1 1 100% !important;  /* stretch to fill the full row, not just 200px basis */
	width: 100% !important;
	min-width: 0 !important;    /* allow shrink below content size if needed */
}
.bas-vm__wrap .bas-vm__name-search {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: 38px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 9px 12px 9px 34px !important;
	border-radius: 100px !important;  /* Divi resets border-radius without this */
	border: 1px solid #ddd !important;
}

/* Category chips — visible even when Divi animates or collapses module content */
.bas-vm__wrap .bas-vm__below-map-filters {
	display: block !important;
	visibility: visible !important;
}
.bas-vm__wrap .bas-vm__cat-chips {
	display: flex !important;
	flex-wrap: wrap !important;
}
.bas-vm__wrap .bas-vm__cat-chip {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.bas-market-vendors__name {
	font-family: "Playfair Display", serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #313131;
	display: block;
	margin-bottom: 2px;
}

/* Category badge */
.bas-market-vendors__cat-badge {
	display: inline-block;
	background: #f0f7e8;
	color: #1d741b;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 100px;
	padding: 2px 10px;
	margin-bottom: 6px;
	line-height: 1.6;
}

/* BYOW "External Shop" badge — teal, sits before the category badge */
.bas-market-vendors__byow-badge {
	display: inline-block;
	background: rgba(48, 178, 180, 0.12);
	color: #1a9496;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: 100px;
	padding: 2px 9px;
	margin-bottom: 6px;
	margin-right: 4px;
	line-height: 1.6;
	border: 1px solid rgba(48, 178, 180, 0.3);
}

.bas-market-vendors__desc {
	font-size: .875rem;
	color: #666;
	margin: 4px 0 0;
}

.bas-market-vendors__loc {
	font-family: Lato, sans-serif;
	font-size: .75rem;
	color: #888;
	font-weight: 400;
	margin: 2px 0 0;
	letter-spacing: 0.01em;
}

.bas-market-vendors__btn-wrap {
	padding: 0 1.25rem 1.25rem;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	margin-top: auto;
}

.bas-market-vendors__placeholder {
	padding: 1.25rem 1.5rem;
	border-radius: 4px;
}

.bas-market-vendors__loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.bas-market-vendors__status {
	text-align: center;
	font-size: 13px;
	color: #888;
	margin-top: 0.75rem;
	min-height: 20px;
}

/* ── 3. BAS Vendor Map — wrapper + filter bar ───────────────────────────────── */
.bas-vendor-map {
	width: 100%;
}

.bas-vm__wrap {
	width: 100%;
}

/* Filter bar */
.bas-vm__filters {
	margin-bottom: 1rem;
}

.bas-vm__filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	align-items: center;
}

.bas-vm__input-wrap {
	position: relative;
	flex: 1 1 200px;
	min-width: 160px;
}

.bas-vm__input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
}

.bas-vm__zip-input {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px 9px 34px;
	border: 1px solid #ddd;
	border-radius: 100px;
	font-size: 14px;
	font-family: Lato, sans-serif;
	color: #313131;
	background: #fff;
	outline: none;
	transition: border-color 0.2s;
	height: 38px;
}
.bas-vm__zip-input:focus { border-color: #70ac43; }

.bas-vm__radius-select {
	padding: 9px 14px;
	border: 1px solid #ddd;
	border-radius: 100px;
	font-size: 14px;
	font-family: Lato, sans-serif;
	color: #313131;
	background: #fff;
	cursor: pointer;
	outline: none;
	height: 38px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}
.bas-vm__radius-select:focus { border-color: #70ac43; }

/* ── Name search input (above map, row 1) ────────────────────────────────────── */
.bas-vm__name-search-row {
	margin-bottom: 0.5rem;
}

.bas-vm__name-search {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px 9px 34px;
	border: 1px solid #ddd;
	border-radius: 100px;
	font-size: 14px;
	font-family: Lato, sans-serif;
	color: #313131;
	background: #fff;
	outline: none;
	transition: border-color 0.2s;
	height: 38px;
}
.bas-vm__name-search:focus { border-color: #70ac43; }

/* ── Below-map filters (category chips) ─────────────────────────────────────── */
.bas-vm__below-map-filters {
	margin-top: 0.875rem;
	padding: 0.75rem 0 0;
	border-top: 1px solid #f0f0f0;
}

.bas-vm__cat-label {
	font-family: Lato, sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.5rem;
}

/* ── Category chips (multi-select row) ──────────────────────────────────────── */
.bas-vm__cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.bas-vm__cat-chip {
	padding: 5px 14px;
	border: 1px solid #ddd;
	border-radius: 100px;
	font-size: 13px;
	font-family: Lato, sans-serif;
	color: #313131;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	white-space: nowrap;
	line-height: 1.5;
	font-weight: 400;
}
.bas-vm__cat-chip:hover {
	border-color: #70ac43;
	color: #1d741b;
	background: #f0f7e8;
}
.bas-vm__cat-chip.selected {
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
	border-color: #70ac43;
	color: #fff;
	font-weight: 700;
}

.bas-vm__search-btn {
	height: 38px;
	padding: 0 20px;
	font-size: 14px;
	flex-shrink: 0;
}

.bas-vm__showall-btn {
	height: 38px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 700;
	font-family: Lato, sans-serif;
	background: #fff;
	color: #70ac43;
	border: 1px solid #70ac43;
	border-radius: 100px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s;
	display: inline-flex;
	align-items: center;
}
.bas-vm__showall-btn:hover { background: #f0f7e8; }

.bas-vm__no-results {
	color: #ff4c25;
	font-size: 13px;
	margin: 6px 0 0;
}

/* Vendor pin — pointer cursor signals the whole marker is clickable */
.bas-vm__wrap .leaflet-marker-icon {
	cursor: pointer !important;
}

/* Map canvas */
.bas-vm__canvas {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
	z-index: 0;
}

/* Grid header */
.bas-vm__grid-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 1.75rem 0 1rem;
}

.bas-vm__grid-title {
	font-family: "Playfair Display", serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: #313131;
	margin: 0;
}

/* Empty state */
.bas-vm__empty {
	text-align: center;
	color: #888;
	font-size: 14px;
	padding: 2rem;
	grid-column: 1 / -1;
}

/* Placeholder (module in VB / no Dokan) */
.bas-vm__placeholder {
	padding: 1.5rem;
	background: #fffbef;
	border-left: 4px solid #70ac43;
	border-radius: 4px;
	color: #313131;
}
.bas-vm__placeholder strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 6px;
	color: #70ac43;
}

/* ── 4. Leaflet tooltip override ─────────────────────────────────────────────── */
/* Tooltip is hover-only (pointer-events:none is Leaflet's correct default).
   Clicking the marker pin navigates directly to the vendor store page.       */
.bas-vm-leaflet-tooltip {
	padding: 0 !important;
	border: none !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
	background: transparent !important;
}
.bas-vm-leaflet-tooltip::before { display: none !important; }

.bas-vm-tooltip {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fff;
	border-radius: 10px;
	padding: 12px 14px;
	min-width: 200px;
	max-width: 260px;
}

.bas-vm-tooltip__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid #e8e8e8;
	background: #efefef;
}
.bas-vm-tooltip__avatar--ph {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ddd;
	flex-shrink: 0;
}

.bas-vm-tooltip__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.bas-vm-tooltip__name {
	font-family: "Playfair Display", serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: #313131;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bas-vm-tooltip__cat {
	font-size: 0.72rem;
	font-weight: 600;
	color: #1d741b;
	background: #f0f7e8;
	border-radius: 100px;
	padding: 1px 7px;
	display: inline-block;
	line-height: 1.6;
}

.bas-vm-tooltip__loc {
	font-size: 0.78rem;
	color: #888;
}

.bas-vm-tooltip__hint {
	font-size: 0.78rem;
	font-weight: 700;
	color: #70ac43;
	margin-top: 4px;
	display: block;
}
.bas-vm-tooltip__visit {
	font-size: 0.78rem;
	font-weight: 700;
	color: #70ac43 !important;
	text-decoration: none !important;
	margin-top: 4px;
	display: inline-block;
	transition: color 0.15s;
}
.bas-vm-tooltip__visit:hover { color: #1d741b !important; text-decoration: underline !important; }

/* ── 5. Cluster icon ───────────────────────────────────────────────────────── */
.bas-vm-cluster {
	background: rgba(112,172,67,0.85);
	color: #fff;
	font-weight: 700;
	font-family: Lato, sans-serif;
	font-size: 13px;
	border-radius: 50%;
	text-align: center;
	border: 2px solid rgba(255,255,255,0.8);
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ── 6. Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.bas-market-vendors__grid--cols-2,
	.bas-market-vendors__grid--cols-3 {
		grid-template-columns: 1fr;
	}

	.bas-vm__filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.bas-vm__input-wrap {
		flex: 1 1 100%;
	}

	.bas-vm__radius-select,
	.bas-vm__search-btn,
	.bas-vm__showall-btn {
		width: 100%;
		justify-content: center;
	}

	.bas-vm__cat-chips {
		justify-content: flex-start;
	}

	.bas-vm__grid-title {
		font-size: 1.1rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.bas-market-vendors__grid--cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================================
   BAS Shop Map — styles (added v1.0.5)
   Teal Load More button + full .bas-sm__* module styles
   ============================================================ */

/* ── Teal gradient button (Load More — contrasts with green Quick View) ── */
.bas-btn-teal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #4ecdd0 0%, #30b2b4 100%);
	color: #fff !important;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid #30b2b4;
	border-radius: 100px;
	padding: 11px 28px;
	cursor: pointer;
	transition: opacity 0.18s, transform 0.18s;
	line-height: 1.3;
	white-space: nowrap;
}
.bas-btn-teal:hover  { opacity: 0.88; transform: translateY(-1px); }
.bas-btn-teal:active { transform: translateY(0); }

/* ── Shop Map wrapper ──────────────────────────────────────────────────── */
.bas-sm__wrap {
	font-family: Lato, sans-serif;
	color: #313131;
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.bas-sm__filters {
	background: #fffbef;
	border: 1px solid #e8e3d5;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bas-sm__filter-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.bas-sm__filter-row--primary {
	align-items: stretch;
}

/* Input wrap with icon */
.bas-sm__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.bas-sm__input-wrap--grow { flex: 1 1 240px; }

.bas-sm__input-icon {
	position: absolute;
	left: 10px;
	color: #999;
	pointer-events: none;
	z-index: 1;
}

.bas-sm__search-input,
.bas-sm__zip-input {
	width: 100%;
	padding: 9px 12px 9px 34px;
	border: 1px solid #d5cfc0;
	border-radius: 100px;
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: #313131;
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}
.bas-sm__search-input:focus,
.bas-sm__zip-input:focus {
	border-color: #70ac43;
	box-shadow: 0 0 0 2px rgba(112,172,67,0.18);
}
.bas-sm__search-input::placeholder,
.bas-sm__zip-input::placeholder { color: #bbb; }

/* Sort & radius selects */
.bas-sm__sort-select,
.bas-sm__radius-select {
	padding: 9px 32px 9px 12px;
	border: 1px solid #d5cfc0;
	border-radius: 100px;
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: #313131;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	outline: none;
	transition: border-color 0.15s;
	white-space: nowrap;
}
.bas-sm__sort-select:focus,
.bas-sm__radius-select:focus { border-color: #70ac43; }

/* Geo button */
.bas-sm__geo-btn  { flex-shrink: 0; }

/* Reset Filters row + button — shown by JS when any filter is active */
.bas-sm__reset-row {
	display: flex;
	justify-content: flex-end;
	padding: 2px 0 4px;
}
.bas-sm__reset-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px solid #30b2b4;
	color: #30b2b4;
	border-radius: 100px;
	padding: 6px 14px;
	font-family: Lato, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}
.bas-sm__reset-btn:hover { background: #30b2b4; color: #fff; }
.bas-sm__reset-btn svg   { flex-shrink: 0; }

/* Legacy show-all button styles (kept for back-compat) */
.bas-sm__showall-btn {
	background: none;
	border: 1px solid #d5cfc0;
	border-radius: 100px;
	padding: 9px 16px;
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: #666;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	white-space: nowrap;
	flex-shrink: 0;
}
.bas-sm__showall-btn:hover { border-color: #70ac43; color: #70ac43; }

/* Category chips */
.bas-sm__cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.bas-sm__cat-chip {
	background: #fff;
	border: 1px solid #d5cfc0;
	border-radius: 100px;
	padding: 5px 14px;
	font-family: Lato, sans-serif;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
	line-height: 1.4;
}
.bas-sm__cat-chip:hover  { border-color: #70ac43; color: #70ac43; }
.bas-sm__cat-chip.active {
	background: #70ac43;
	border-color: #70ac43;
	color: #fff;
}

/* No-results alert */
.bas-sm__no-results {
	color: #c0392b;
	font-size: 0.9rem;
	margin: 0;
	padding: 0.5rem 0;
}

/* ── Map canvas ────────────────────────────────────────────────────────── */
.bas-sm__canvas {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.25rem;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
	z-index: 0;
}
/* Leaflet controls — keep above Divi layers */
.bas-sm__canvas .leaflet-control-container { z-index: 400 !important; }

/* ── Grid header ───────────────────────────────────────────────────────── */
.bas-sm__grid-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.bas-sm__grid-count {
	font-family: Lato, sans-serif;
	font-size: 0.9rem;
	color: #888;
	margin: 0;
}

/* ── Product grid ──────────────────────────────────────────────────────── */
.bas-sm__grid {
	display: grid;
	gap: 1.5rem;
}
.bas-sm__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.bas-sm__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.bas-sm__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Product card ──────────────────────────────────────────────────────── */
.bas-sm__card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.07);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
}
.bas-sm__card:hover {
	box-shadow: 0 6px 22px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

/* Image area */
.bas-sm__image-wrap {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
	height: 200px;
	flex-shrink: 0;
}
.bas-sm__image-link { display: block; width: 100%; height: 100%; }
.bas-sm__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}
.bas-sm__card:hover .bas-sm__image { transform: scale(1.04); }

/* Quick View hover overlay — reuses Quick View plugin classes */
/* .bas-qv-img-trigger is styled by bas-quick-view.css (always loaded on frontend) */
/* We just ensure it's positioned correctly within our image wrap */
.bas-sm__image-wrap .bas-qv-img-trigger {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(0,0,0,0.35);
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	opacity: 0;
	transition: opacity 0.2s;
	cursor: pointer;
}
.bas-sm__card:hover .bas-sm__image-wrap .bas-qv-img-trigger { opacity: 1; }

/* Sale / low-stock badges — reuse Quick View plugin classes */
.bas-sm__image-wrap .bas-qv-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 100px;
	line-height: 1.4;
}
.bas-sm__image-wrap .bas-qv-badge--sale    { background: #ff4c25; color: #fff; }
.bas-sm__image-wrap .bas-qv-badge--lowstock { background: #ffda3d; color: #313131; }

/* Card body — all text centred */
.bas-sm__body {
	padding: 0.85rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	gap: 0.35rem;
}
.bas-sm__name {
	font-family: "Playfair Display", serif;
	font-size: 1rem;
	font-weight: 700;
	color: #313131;
	text-decoration: none;
	line-height: 1.35;
	display: block;
	text-align: center;
}
.bas-sm__name:hover { color: #70ac43; }
.bas-sm__vendor {
	font-size: 0.8rem;
	color: #999;
	text-align: center;
}
.bas-sm__vendor a { color: #888; text-decoration: none; }
.bas-sm__vendor a:hover { color: #70ac43; }
.bas-sm__price {
	font-size: 0.95rem;
	font-weight: 700;
	color: #313131;
	display: block;
	text-align: center;
}
/* WooCommerce sale price in forest green */
.bas-sm__price ins  { color: #1d741b; text-decoration: none; }
.bas-sm__price del  { opacity: 0.5; font-size: 0.82em; }

/* Quick View CTA button — matches bas-header Become a Vendor style */
.bas-sm__btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, #c2e86b 0%, #70ac43 55%, #1d741b 100%);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 5px 0 #155210, 0 8px 16px rgba(29, 116, 27, 0.18);
	transition: filter 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.bas-sm__btn:hover { filter: brightness(1.05); opacity: 1; transform: none; }
.bas-sm__btn:active {
	transform: translateY(3px);
	box-shadow: 0 2px 0 #155210, 0 4px 10px rgba(29, 116, 27, 0.18);
}

/* ── Empty / placeholder states ────────────────────────────────────────── */
.bas-sm__empty {
	color: #888;
	font-size: 0.95rem;
	grid-column: 1 / -1;
	padding: 2rem;
	text-align: center;
}
.bas-sm__placeholder {
	padding: 1.5rem 2rem;
	border-left: 4px solid #70ac43;
	background: #fffbef;
	border-radius: 4px;
}

/* ── Load More area ────────────────────────────────────────────────────── */
.bas-sm__loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
	padding-bottom: 0.5rem;
}

/* ── Status / aria-live region ─────────────────────────────────────────── */
.bas-sm__status {
	text-align: center;
	font-size: 0.875rem;
	color: #70ac43;
	min-height: 1.4em;
	margin-top: 0.5rem;
}

/* ── Responsive: tablet (≤1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
	.bas-sm__grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Responsive: tablet portrait (≤768px) ──────────────────────────────── */
@media (max-width: 768px) {
	.bas-sm__filter-row { flex-direction: column; align-items: stretch; }
	.bas-sm__input-wrap--grow { flex: 1 1 100%; }
	.bas-sm__sort-select,
	.bas-sm__radius-select { width: 100%; }
	.bas-sm__geo-btn,
	.bas-sm__showall-btn { width: 100%; justify-content: center; }
	.bas-sm__grid--cols-3,
	.bas-sm__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: mobile (≤480px) ───────────────────────────────────────── */
@media (max-width: 480px) {
	.bas-sm__grid--cols-2,
	.bas-sm__grid--cols-3,
	.bas-sm__grid--cols-4 { grid-template-columns: 1fr; }
	.bas-sm__filters { padding: 0.85rem 1rem; }
	.bas-sm__canvas { border-radius: 8px; }
}

/* ============================================================
   BAS Custom Order Form — styles (v1.2.1)
   Inline 3-step form · progress bar · field grid · nav buttons
   Colour palette: sage #70ac43, lime #c2e86b, charcoal #313131,
   cream #fffbef, forest green #1d741b, teal #30b2b4
   ============================================================ */

/* ── Form wrapper ────────────────────────────────────────────────────────── */
.bas-cof__form-wrap {
	font-family: Lato, sans-serif;
	color: #fff;
	width: 100%;
	box-sizing: border-box;
	background: #1a1a1a;
	border-radius: 12px;
	padding: 20px 24px;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.bas-cof__progress {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 2rem;
	gap: 0;
}

.bas-cof__progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.bas-cof__progress-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.45);
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, color 0.25s, box-shadow 0.25s;
	border: 2px solid rgba(255,255,255,0.15);
}

.bas-cof__progress-step--active .bas-cof__progress-dot {
	background: var(--bas-cof-accent, #70ac43);
	border-color: var(--bas-cof-accent, #70ac43);
	color: #fff;
	/* color-mix() blends the vendor accent to 18% opacity for the glow ring.
	   Supported in all modern browsers (Chrome 111+, FF 113+, Safari 16.2+). */
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bas-cof-accent, #70ac43) 18%, transparent);
}

.bas-cof__progress-step--done .bas-cof__progress-dot {
	background: #1d741b;
	border-color: #1d741b;
	color: #fff;
	/* Show ✓ via content trick — we replace the number via JS "done" class */
}

.bas-cof__progress-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255,255,255,0.45);
	white-space: nowrap;
	transition: color 0.25s;
}

.bas-cof__progress-step--active .bas-cof__progress-label,
.bas-cof__progress-step--done  .bas-cof__progress-label {
	color: #fff;
}

/* Connector line between steps */
.bas-cof__progress-line {
	flex: 1;
	height: 2px;
	background: rgba(255,255,255,0.15);
	margin-top: 17px; /* vertically centres with dot */
	min-width: 32px;
	transition: background 0.25s;
}
.bas-cof__progress-line--done {
	background: #1d741b;
}

/* ── Step intro text ─────────────────────────────────────────────────────── */
.bas-cof__step-intro {
	font-family: Lato, sans-serif;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.75);
	margin: 0 0 1.25rem;
	line-height: 1.55;
}

/* ── Grid rows ───────────────────────────────────────────────────────────── */
.bas-cof__row {
	display: grid;
	gap: 0.85rem;
}
.bas-cof__row--2col { grid-template-columns: 1fr 1fr; }
.bas-cof__row--3col { grid-template-columns: 1fr 1fr 1fr; }

/* ── Field wrap + label ──────────────────────────────────────────────────── */
.bas-cof__field-wrap {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 0.9rem;
}
.bas-cof__row .bas-cof__field-wrap { margin-bottom: 0; }

.bas-cof__label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
}

.bas-cof__required {
	color: var(--bas-cof-accent, #70ac43);
	margin-left: 2px;
}

.bas-cof__hint {
	font-weight: 400;
	color: rgba(255,255,255,0.55);
	font-size: 0.78rem;
	margin-left: 4px;
}

/* ── Inputs / textarea ───────────────────────────────────────────────────── */
/* Win the specificity fight against Dokan/Divi/WC theme stylesheets that override input
   background to #fff (making white text invisible on a white background in Step 1).
   Using !important here because Dokan dashboard CSS applies high-specificity rules
   like .dokan-dashboard input { background: #fff; color: #000; } that we must beat.
   Applied to BOTH .bas-cof__form (classic form) and .bas-cof__bwiz-form (Bea wizard) —
   the wizard uses a different form wrapper so needs its own identical override block. */
.bas-cof__form .bas-cof__field,
.bas-cof__bwiz-form .bas-cof__field {
	color: #fff !important;
	background: rgba(255,255,255,0.12) !important;
	border-color: rgba(255,255,255,0.22) !important;
	font-size: 15px !important;
}
.bas-cof__form .bas-cof__field::placeholder,
.bas-cof__bwiz-form .bas-cof__field::placeholder {
	color: rgba(255,255,255,0.4) !important;
}
/* Force white on the selected value inside the Bea wizard select —
   native <select> ignores color in some browsers when a value is chosen. */
.bas-cof__bwiz-form .bas-cof__select {
	color: #fff !important;
}
.bas-cof__field {
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: #fff;
	background: rgba(255,255,255,0.08);
	border: 1.5px solid rgba(255,255,255,0.2);
	border-radius: 8px;
	padding: 14px 14px;
	outline: none;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
	line-height: 1.5;
}
.bas-cof__field:focus {
	border-color: var(--bas-cof-accent, #70ac43);
	box-shadow: 0 0 0 3px rgba(112,172,67,0.22);
}
.bas-cof__field--error {
	border-color: #ff4c25;
	box-shadow: 0 0 0 3px rgba(255,76,37,0.18);
}
.bas-cof__field::placeholder { color: rgba(255,255,255,0.35); }
.bas-cof__field[type="date"]  { appearance: none; -webkit-appearance: none; }

.bas-cof__textarea {
	resize: vertical;
	min-height: 110px;
}

/* ── File upload area ────────────────────────────────────────────────────── */
.bas-cof__upload-area {
	border: 2px dashed rgba(255,255,255,0.2);
	border-radius: 10px;
	background: rgba(255,255,255,0.04);
	transition: border-color 0.15s, background 0.15s;
	overflow: hidden;
}
.bas-cof__upload-area--drag,
.bas-cof__upload-area:focus-within {
	border-color: var(--bas-cof-accent, #70ac43);
	background: rgba(255,255,255,0.08);
}

.bas-cof__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

.bas-cof__upload-label {
	display: block;
	padding: 1.1rem;
	text-align: center;
	cursor: pointer;
}

.bas-cof__upload-text {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 3px;
}

.bas-cof__upload-hint {
	display: block;
	font-size: 0.74rem;
	color: rgba(255,255,255,0.5);
}

/* ── Selected file list ──────────────────────────────────────────────────── */
.bas-cof__file-list {
	padding: 0 0.85rem 0.65rem;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bas-cof__file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 6px;
	padding: 5px 9px;
	font-size: 0.78rem;
	gap: 8px;
}
.bas-cof__file-item--error {
	border-color: rgba(255,118,96,0.5);
	background: rgba(255,76,37,0.15);
}
.bas-cof__file-name {
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 68%;
}
.bas-cof__file-sz         { color: rgba(255,255,255,0.55); white-space: nowrap; flex-shrink: 0; }
.bas-cof__file-item--error .bas-cof__file-sz { color: #ff4c25; font-weight: 700; }
.bas-cof__file-warn {
	font-size: 0.76rem;
	color: #ff7660;
	padding: 0 2px;
}

/* ── Error message ───────────────────────────────────────────────────────── */
.bas-cof__error {
	background: rgba(255,76,37,0.15);
	border: 1px solid rgba(255,118,96,0.5);
	border-radius: 8px;
	color: #ff7660;
	font-size: 0.875rem;
	padding: 9px 13px;
	margin-top: 0.5rem;
	line-height: 1.5;
}

/* ── Navigation buttons ──────────────────────────────────────────────────── */
.bas-cof__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.5rem;
	gap: 0.75rem;
}

/* Back button — ghost style */
.bas-cof__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	color: rgba(255,255,255,0.75);
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 600;
	border: 1.5px solid rgba(255,255,255,0.25);
	border-radius: 100px;
	padding: 9px 20px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	line-height: 1.3;
}
.bas-cof__back:hover { border-color: var(--bas-cof-accent, #70ac43); color: #fff; }

/* Next button — vendor-branded gradient */
.bas-cof__next {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(180deg, var(--bas-cof-accent-light, #c2e86b) 0%, var(--bas-cof-accent, #70ac43) 100%);
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	border: 1px solid var(--bas-cof-accent, #70ac43);
	border-radius: 100px;
	padding: 10px 26px;
	cursor: pointer;
	transition: opacity 0.18s, transform 0.18s;
	line-height: 1.3;
	margin-left: auto;
}
.bas-cof__next:hover  { opacity: 0.88; transform: translateY(-1px); }
.bas-cof__next:active { transform: translateY(0); }

/* Submit button — vendor-branded gradient (same as next, with send icon) */
.bas-cof__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(180deg, var(--bas-cof-accent-light, #c2e86b) 0%, var(--bas-cof-accent, #70ac43) 100%);
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	border: 1px solid var(--bas-cof-accent, #70ac43);
	border-radius: 100px;
	padding: 10px 26px;
	cursor: pointer;
	transition: opacity 0.18s, transform 0.18s;
	line-height: 1.3;
	white-space: nowrap;
	margin-left: auto;
}
.bas-cof__submit:hover:not(:disabled)  { opacity: 0.88; transform: translateY(-1px); }
.bas-cof__submit:active:not(:disabled) { transform: translateY(0); }
.bas-cof__submit:disabled {
	opacity: 0.52;
	cursor: not-allowed;
	transform: none;
}
.bas-cof__submit:focus-visible,
.bas-cof__next:focus-visible,
.bas-cof__back:focus-visible {
	outline: 3px solid var(--bas-cof-accent-light, #c2e86b);
	outline-offset: 2px;
}

/* ── Success state ───────────────────────────────────────────────────────── */
.bas-cof__success {
	text-align: center;
	padding: 2rem 1rem;
}

.bas-cof__success-icon {
	margin: 0 auto 1rem;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(29,116,27,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bas-cof__success-title {
	font-family: "Playfair Display", serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #1d741b;
	margin: 0 0 0.65rem;
}

.bas-cof__success-msg {
	font-size: 0.95rem;
	color: rgba(255,255,255,0.8);
	line-height: 1.65;
	max-width: 460px;
	margin: 0 auto;
}

/* ── Responsive: tablet (≤768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
	.bas-cof__row--2col { grid-template-columns: 1fr; }
	.bas-cof__row--3col { grid-template-columns: 1fr 1fr; }
	.bas-cof__progress-label { font-size: 0.68rem; }
}

/* ── Responsive: mobile (≤480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
	.bas-cof__row--2col,
	.bas-cof__row--3col  { grid-template-columns: 1fr; }
	.bas-cof__next,
	.bas-cof__submit     { width: 100%; justify-content: center; }
	.bas-cof__nav        { flex-wrap: wrap; }
	.bas-cof__back       { order: 2; width: 100%; justify-content: center; }
	.bas-cof__progress-label { display: none; } /* hide labels on tiny screens */
	/* Ensure upload tap target is always ≥48 px on mobile */
	.bas-cof__upload-label { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
}

/* ── Responsive: narrow phones (≤390px — iPhone SE / 14 mini) ────────────── */
@media (max-width: 390px) {
	/* Tighter form padding so content doesn't overflow the QV modal */
	.bas-cof__form-wrap { padding: 16px 14px; }
	/* Progress bar: allow horizontal scroll if there are many wizard steps */
	.bas-cof__progress  { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; scrollbar-width: none; }
	.bas-cof__progress::-webkit-scrollbar { display: none; }
	/* Prevent dot from shrinking below its size on very narrow widths */
	.bas-cof__progress-step { min-width: 36px; }
	/* Summary review table: single column on tiny screens */
	.bas-cof__summary-table td { display: block; width: 100%; }
	.bas-cof__summary-table td:first-child { font-weight: 700; padding-bottom: 2px; }
	.bas-cof__summary-table td:last-child  { padding-top: 0; padding-bottom: 12px; }
}

/* ── Select dropdown ─────────────────────────────────────────────────────── */
.bas-cof__select {
	display: block;
	width: 100%;
	padding: 14px 36px 14px 14px;
	background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2370ac43' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1.5px solid rgba(255,255,255,0.2);
	border-radius: 8px;
	font-family: Lato, sans-serif;
	font-size: 15px;
	color: #fff;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.15s;
	box-sizing: border-box;
}
.bas-cof__select:focus {
	outline: none;
	border-color: #70ac43;
	box-shadow: 0 0 0 3px rgba(112, 172, 67, 0.18);
}
.bas-cof__select option { color: #313131; }
.bas-cof__select option:disabled { color: #999; }

/* ── Multiselect — checkbox group ────────────────────────────────────────── */
.bas-cof__fieldset {
	border: none;
	margin: 0;
	padding: 0;
}
.bas-cof__fieldset legend {
	/* visually matches .bas-cof__label */
	display: block;
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}
.bas-cof__checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bas-cof__checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bas-cof__checkbox-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #70ac43;
	cursor: pointer;
	flex-shrink: 0;
}
.bas-cof__checkbox-label {
	font-family: Lato, sans-serif;
	font-size: 15px;
	color: #fff;
	cursor: pointer;
	line-height: 1.3;
}

/* ── Boolean toggle ──────────────────────────────────────────────────────── */
.bas-cof__field-wrap--boolean .bas-cof__label {
	/* label sits inline with the toggle row */
	margin-bottom: 0;
}
.bas-cof__bool-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bas-cof__bool-toggle {
	position: relative;
	width: 48px;
	height: 26px;
	background: rgba(255,255,255,0.2);
	border-radius: 100px;
	cursor: pointer;
	border: none;
	padding: 0;
	transition: background 0.2s;
	flex-shrink: 0;
}
.bas-cof__bool-toggle:focus {
	outline: 2px solid #70ac43;
	outline-offset: 2px;
}
.bas-cof__bool-toggle--on {
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
}
.bas-cof__bool-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.20);
}
.bas-cof__bool-toggle--on .bas-cof__bool-knob {
	transform: translateX(22px);
}
.bas-cof__bool-text {
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: rgba(255,255,255,0.75);
}

/* ── Price summary (configured pricing model) ────────────────────────────── */
.bas-cof__price-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: rgba(112,172,67,0.15);
	border: 1.5px solid rgba(112,172,67,0.4);
	border-radius: 10px;
	margin-top: 8px;
}
.bas-cof__price-label {
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255,255,255,0.85);
}
.bas-cof__price-value {
	font-family: Lato, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #1d741b;
}

/* ── Help text ───────────────────────────────────────────────────────────── */
.bas-cof__help {
	display: block;
	font-family: Lato, sans-serif;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	margin-top: 5px;
	line-height: 1.4;
}

/* ── Lead time notice ────────────────────────────────────────────────────── */
.bas-cof__lead-time {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	background: rgba(255,218,61,0.12);
	border: 1.5px solid rgba(255,218,61,0.4);
	border-radius: 8px;
	font-family: Lato, sans-serif;
	font-size: 13px;
	color: rgba(255,255,255,0.8);
	line-height: 1.4;
}
.bas-cof__lead-time svg { flex-shrink: 0; margin-top: 1px; }

/* ── Intro / order description text ─────────────────────────────────────── */
.bas-cof__order-intro {
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: rgba(255,255,255,0.75);
	line-height: 1.55;
	margin-bottom: 16px;
}

/* ── Empty state (no fields configured) ──────────────────────────────────── */
.bas-cof__no-fields {
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: rgba(255,255,255,0.5);
	font-style: italic;
	padding: 12px 0;
	text-align: center;
}

/* ── Responsive: multiselect stacks well on mobile already ───────────────── */
@media (max-width: 480px) {
	.bas-cof__bool-toggle { width: 44px; height: 24px; }
	.bas-cof__bool-knob   { width: 18px; height: 18px; }
	.bas-cof__bool-toggle--on .bas-cof__bool-knob { transform: translateX(20px); }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ── Bea Wizard — customer-facing step-by-step order guide ─────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

.bas-cof__bea-wizard {
	display: flex;
	flex-direction: column;
	min-height: 440px;
	max-height: 620px;
	border-radius: 10px;
	overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.bas-cof__bwiz-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: rgba(48, 178, 180, 0.12);
	border-bottom: 1px solid rgba(48, 178, 180, 0.22);
	flex-shrink: 0;
}
.bas-cof__bwiz-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(112, 172, 67, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bas-cof__bwiz-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bas-cof__bwiz-header-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.bas-cof__bwiz-header-text strong {
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
.bas-cof__bwiz-header-text span {
	font-family: Lato, sans-serif;
	font-size: 11px;
	color: rgba(255,255,255,0.5);
}

/* ── Progress bar ──────────────────────────────────────────────────────── */
.bas-cof__bwiz-progress {
	height: 3px;
	background: rgba(255,255,255,0.1);
	flex-shrink: 0;
}
.bas-cof__bwiz-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #c2e86b 0%, #70ac43 100%);
	transition: width 0.5s ease;
	min-width: 4px;
}

/* ── Chat messages ─────────────────────────────────────────────────────── */
.bas-cof__bwiz-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-behavior: smooth;
}
.bas-cof__bwiz-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	animation: bwizFadeIn 0.2s ease;
}
@keyframes bwizFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.bas-cof__bwiz-row--customer {
	justify-content: flex-end;
}
.bas-cof__bwiz-bubble-avatar {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	margin-bottom: 2px;
}
.bas-cof__bwiz-bubble {
	max-width: 78%;
	padding: 10px 14px;
	border-radius: 16px;
	font-family: Lato, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	word-break: break-word;
}
.bas-cof__bwiz-bubble--bea {
	background: rgba(48, 178, 180, 0.14);
	border: 1px solid rgba(48, 178, 180, 0.26);
	color: rgba(255,255,255,0.88);
	border-bottom-left-radius: 4px;
}
.bas-cof__bwiz-bubble--customer {
	background: linear-gradient(135deg, var(--bas-cof-accent-light, #c2e86b) 0%, var(--bas-cof-accent, #70ac43) 100%);
	color: #fff;
	border-bottom-right-radius: 4px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.bas-cof__bwiz-optional {
	font-size: 12px;
	opacity: 0.6;
	font-style: italic;
}

/* ── Summary block (inside messages) ──────────────────────────────────── */
.bas-cof__bwiz-summary {
	width: 100%;
	background: rgba(255,255,255,0.05);
	border-radius: 8px;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-family: Lato, sans-serif;
	font-size: 13px;
}
.bas-cof__bwiz-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 7px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bas-cof__bwiz-summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.bas-cof__bwiz-summary-label { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.bas-cof__bwiz-summary-value { color: #fff; text-align: right; word-break: break-word; }

/* ── Input area ────────────────────────────────────────────────────────── */
.bas-cof__bwiz-input-area {
	padding: 12px 16px 16px;
	flex-shrink: 0;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.bas-cof__bwiz-input-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bas-cof__bwiz-text-input,
.bas-cof__bwiz-textarea,
.bas-cof__bwiz-date-input {
	width: 100%;
}
.bas-cof__bwiz-btn-row {
	display: flex;
	gap: 8px;
	align-items: center;
}
.bas-cof__bwiz-btn-row--summary { flex-wrap: wrap; }
.bas-cof__bwiz-next-btn { flex: 1; min-width: 0; }
.bas-cof__bwiz-skip-btn { flex-shrink: 0; }

/* ── Boolean Y / N choice buttons ─────────────────────────────────────── */
.bas-cof__bwiz-bool-row {
	display: flex;
	gap: 10px;
}
.bas-cof__bwiz-bool-option {
	flex: 1;
	padding: 12px;
	border-radius: 8px;
	border: 2px solid rgba(255,255,255,0.15);
	background: transparent;
	color: rgba(255,255,255,0.8);
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bas-cof__bwiz-bool-option:hover,
.bas-cof__bwiz-bool-option:focus-visible {
	border-color: var(--bas-cof-accent, #70ac43);
	color: #fff;
	background: rgba(112,172,67,0.12);
	outline: none;
}

/* ── Success state inside wizard wrapper ───────────────────────────────── */
.bas-cof__bwiz-success {
	padding: 40px 24px;
	text-align: center;
}

/* ── Checkbox group inside wizard ──────────────────────────────────────── */
.bas-cof__bwiz-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 180px;
	overflow-y: auto;
}

/* ── Mobile tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.bas-cof__bea-wizard { min-height: 380px; max-height: 540px; }
	.bas-cof__bwiz-bubble { max-width: 90%; font-size: 13px; }
	.bas-cof__bwiz-btn-row { flex-direction: column; }
	.bas-cof__bwiz-next-btn,
	.bas-cof__bwiz-skip-btn { width: 100%; justify-content: center; }
	.bas-cof__bwiz-bool-row { flex-direction: column; }
}


/* ============================================================
   BAS Cart Widget (bas/cart-widget)
   Subtle text+icon trigger, dropdown panel with clean item
   rows, qty stepper, total row, full-width checkout button.
   ============================================================ */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.bas-cw {
	position: relative;
	display: inline-block;
	font-family: Lato, sans-serif;
}

/* ── Trigger — plain text + icon, no pill/button look ────────────────────── */
.bas-cw__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	background: none;
	color: #313131;
	border: none;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1;
	position: relative;
	white-space: nowrap;
	transition: color 0.15s;
}
.bas-cw__trigger:hover { color: var(--bas-cw-accent, #70ac43); }

/* ── Trigger text label ───────────────────────────────────────────────────── */
.bas-cw__trigger-label {
	font-size: 15px;
	font-weight: 600;
}

/* ── Icon + badge wrapper — badge anchors to the icon ────────────────────── */
.bas-cw__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

/* ── Cart icon (green) ────────────────────────────────────────────────────── */
.bas-cw__icon {
	width: 26px;
	height: 26px;
	color: var(--bas-cw-accent, #70ac43);
	flex-shrink: 0;
}

/* ── Item-count badge — overlaps top-right of icon ───────────────────────── */
.bas-cw__badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: #ff4c25;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 100px;
	border: 2px solid #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	pointer-events: none;
}
.bas-cw__badge--empty { display: none; }

/* ── Dropdown container ───────────────────────────────────────────────────── */
.bas-cw__dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 9999;
	width: 360px;
	max-width: 92vw;
}
.bas-cw__dropdown[hidden] { display: none; }

/* ── Panel ────────────────────────────────────────────────────────────────── */
.bas-cw__panel {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 14px;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

/* ── Header row ───────────────────────────────────────────────────────────── */
.bas-cw__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px 12px;
	border-bottom: 1px solid #f0f0f0;
}
.bas-cw__header-title {
	font-size: 15px;
	font-weight: 700;
	color: #313131;
}
.bas-cw__count {
	font-size: 12px;
	color: #aaa;
}

/* ── Items list ───────────────────────────────────────────────────────────── */
.bas-cw__items {
	max-height: 340px;
	overflow-y: auto;
	padding: 4px 0;
}

/* Loading state */
.bas-cw__items--loading {
	pointer-events: none;
	opacity: 0.4;
	transition: opacity 0.2s;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.bas-cw__empty {
	padding: 24px 18px;
	text-align: center;
	color: #999;
	font-size: 14px;
	margin: 0;
}

/* ── Single cart item ─────────────────────────────────────────────────────── */
.bas-cw__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid #f5f5f5;
}
.bas-cw__item:last-child { border-bottom: none; }

/* Thumbnail */
.bas-cw__item-thumb {
	flex-shrink: 0;
	width: 58px;
	height: 58px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f3f3;
}
.bas-cw__item-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Info column */
.bas-cw__item-info {
	flex: 1;
	min-width: 0;
}
.bas-cw__item-name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #313131;
	text-decoration: none;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bas-cw__item-name:hover { color: var(--bas-cw-accent, #70ac43); }

/* Bottom row: [−][qty][+]  $price — on the same line */
.bas-cw__item-bottom {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Qty stepper */
.bas-cw__qty-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.bas-cw__qty-btn {
	width: 28px;
	height: 28px;
	border: 1.5px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #555;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.bas-cw__qty-btn:hover {
	border-color: var(--bas-cw-accent, #70ac43);
	color: var(--bas-cw-accent, #70ac43);
}

/* Quantity number input — visible, editable */
.bas-cw__qty-input {
	width: 36px;
	height: 28px;
	border: 1.5px solid #ddd;
	border-radius: 6px;
	background: #fafafa;
	color: #313131;
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	padding: 0;
	-moz-appearance: textfield;
	appearance: textfield;
	transition: border-color 0.15s;
}
.bas-cw__qty-input:focus {
	outline: none;
	border-color: var(--bas-cw-accent, #70ac43);
}
.bas-cw__qty-input::-webkit-outer-spin-button,
.bas-cw__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Sold-individually badge — static "1×" label, no stepper shown */
.bas-cw__qty-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(48, 178, 180, 0.1);
	color: #30b2b4;
	font-family: Lato, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
	user-select: none;
}

/* Line price */
.bas-cw__item-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--bas-cw-accent, #70ac43);
	white-space: nowrap;
}

/* Remove button — coral circle */
.bas-cw__item-remove {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: none;
	background: rgba(255, 118, 96, 0.12);
	color: #ff7660;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.15s, color 0.15s;
}
.bas-cw__item-remove:hover {
	background: rgba(255, 76, 37, 0.18);
	color: #ff4c25;
}

/* ── Total row ────────────────────────────────────────────────────────────── */
.bas-cw__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	border-top: 1px solid #f0f0f0;
}
.bas-cw__subtotal-label {
	font-size: 15px;
	font-weight: 700;
	color: #313131;
}
.bas-cw__subtotal-amount {
	font-size: 16px;
	font-weight: 700;
	color: var(--bas-cw-accent, #70ac43);
}

/* ── Action buttons — column layout ──────────────────────────────────────── */
.bas-cw__actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 18px 16px;
	border-top: 1px solid #f0f0f0;
}

/* Checkout — full-width pill, matches store.php primary button style */
.bas-cw__btn--checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 20px;
	background: var(--bas-cw-accent, #70ac43);
	color: #fff;
	border: 1px solid var(--bas-cw-accent, #70ac43);
	border-radius: 100px;
	box-shadow: 0 3px 0 rgba(112, 172, 67, 0.4);
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.18s, transform 0.18s, color 0.18s;
	white-space: nowrap;
	letter-spacing: 0.03em;
}
.bas-cw__btn--checkout:hover  { filter: brightness(1.08); color: #fff; }
.bas-cw__btn--checkout:active { transform: translateY(1px); box-shadow: none; color: #fff; }

/* View Cart — plain text link centered below */
.bas-cw__btn--viewcart {
	display: block;
	width: 100%;
	text-align: center;
	padding: 4px 0;
	background: none;
	border: none;
	color: var(--bas-cw-accent, #70ac43);
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.bas-cw__btn--viewcart:hover { opacity: 0.75; color: var(--bas-cw-accent, #70ac43); }

/* ── VB placeholder ───────────────────────────────────────────────────────── */
.bas-cw__placeholder {
	padding: 18px 22px;
	background: #fffbef;
	border-left: 5px solid #70ac43;
	border-radius: 4px;
	font-family: Lato, sans-serif;
	color: #313131;
	min-height: 60px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.bas-cw__dropdown {
		left: 0;
		right: auto;
		width: calc(100vw - 24px);
		max-width: 100%;
	}
}

/* =============================================================
   BAS Vendor Carousel — v1.9.0
   Self-contained styles for the bas/vendor-carousel Divi module.
   ============================================================= */

/* ── Scroll-rise: module enters viewport ────────────────────────────────── */
.bas-vc__wrap {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  /* Keep screen-reader status element visually hidden */
}
.bas-vc__wrap.bas-vc--visible {
  opacity: 1;
  transform: translateY(0);
}
.bas-vc__status {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

/* ── Outer viewport — clips the sliding track ───────────────────────────── */
.bas-vc__outer {
  position: relative;
  overflow: hidden;
  /* Vertical padding creates room for the active card scale-up without clipping */
  padding: 32px 0 24px;
  box-sizing: border-box;
  cursor: grab;
}
.bas-vc__outer:active {
  cursor: grabbing;
}

/* ── Slide track ────────────────────────────────────────────────────────── */
.bas-vc__track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Prevent accidental text selection while dragging */
  user-select: none;
  -webkit-user-select: none;
}

/* ── Individual slides ──────────────────────────────────────────────────── */
.bas-vc__slide {
  /* Width is set by JS based on slidesPerView() — do not override */
  flex-shrink: 0;
  padding: 0 10px;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.4s ease;
  /* Default: far slide */
  transform: scale(0.80);
  opacity: 0.55;
}
.bas-vc__slide--far {
  transform: scale(0.80);
  opacity: 0.55;
}
.bas-vc__slide--adj-prev,
.bas-vc__slide--adj-next {
  transform: scale(0.91);
  opacity: 0.82;
}
.bas-vc__slide--active {
  transform: scale(1.0);
  opacity: 1.0;
  z-index: 2;
}

/* Non-active slides: pointer shows it's clickable to focus */
.bas-vc__slide:not(.bas-vc__slide--active) {
  cursor: pointer;
}
.bas-vc__slide--active {
  cursor: default;
}

/* ── Vendor card overrides inside carousel ──────────────────────────────── */
/* Ensures cards fill the slide and the avatar/banner positioning works
   identically to the Vendor Map module (same scoped !important pattern). */
.bas-vc__outer .bas-market-vendors__card {
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  cursor: inherit; /* inherits from slide */
}
.bas-vc__outer .bas-market-vendors__banner {
  margin-bottom: 0 !important;
  overflow: visible !important;
}
.bas-vc__outer .bas-market-vendors__avatar-row {
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  display: block !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}
.bas-vc__outer .bas-market-vendors__avatar {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  border-radius: 50% !important;
  border: 3px solid #fff !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.bas-vc__outer .bas-market-vendors__avatar--placeholder {
  background: #ddd !important;
}
.bas-vc__outer .bas-market-vendors__profile-text {
  padding-top: 52px !important;
}

/* Active card gets a stronger shadow to emphasise focus */
.bas-vc__slide--active .bas-market-vendors__card {
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

/* ── Arrow buttons ──────────────────────────────────────────────────────── */
.bas-vc__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--bas-vc-accent, #70ac43);
  background: #fff;
  color: var(--bas-vc-accent, #70ac43);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
  padding: 0;
  line-height: 1;
}
.bas-vc__arrow:hover:not(:disabled) {
  background: var(--bas-vc-accent, #70ac43);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.bas-vc__arrow:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
.bas-vc__arrow--prev {
  left: 6px;
}
.bas-vc__arrow--next {
  right: 6px;
}

/* ── Dot navigation ─────────────────────────────────────────────────────── */
.bas-vc__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
  flex-wrap: wrap;
}
.bas-vc__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #70ac43;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, border-color 0.22s;
  flex-shrink: 0;
}
.bas-vc__dot:hover {
  background: rgba(112,172,67,0.35);
  transform: scale(1.15);
}
.bas-vc__dot--active {
  background: #70ac43;
  transform: scale(1.25);
  border-color: #70ac43;
}

/* ── Placeholder (no Dokan / no vendors) ────────────────────────────────── */
.bas-vc__placeholder {
  padding: 32px 24px;
  background: #fffbef;
  border-left: 5px solid #70ac43;
  border-radius: 6px;
  font-family: Lato, sans-serif;
  color: #313131;
}
.bas-vc__placeholder strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.bas-vc__placeholder p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tablet — 2 cards visible */
@media (max-width: 959px) and (min-width: 600px) {
  .bas-vc__arrow--prev { left: 2px; }
  .bas-vc__arrow--next { right: 2px; }
}

/* Mobile — 1 card, full width; reduce vertical overshoot padding */
@media (max-width: 599px) {
  .bas-vc__outer {
    padding: 16px 0 12px;
  }
  .bas-vc__slide {
    padding: 0 6px;
  }
  .bas-vc__arrow {
    width: 36px;
    height: 36px;
  }
  .bas-vc__arrow--prev { left: 2px; }
  .bas-vc__arrow--next { right: 2px; }
  .bas-vc__dots {
    padding-top: 10px;
  }
  /* On mobile the slide is full-width so no scale effect needed — keep it subtle */
  .bas-vc__slide--adj-prev,
  .bas-vc__slide--adj-next,
  .bas-vc__slide--far {
    transform: scale(0.96);
    opacity: 0.6;
  }
}

/* ==========================================================================
   Flatpickr — BAS Custom Order Form Theme
   Overrides flatpickr's default light calendar to sit comfortably over the
   dark (#1a1a1a) custom order form background.  The calendar popup itself
   uses a clean light-on-dark scheme; vendor brand colour drives day selection.
   ========================================================================== */

/* ── altInput (the visible text input that flatpickr shows to users) ── */
.bas-cof__form .flatpickr-input.flatpickr-input ~ .flatpickr-input,
.bas-cof__form input.flatpickr-input.active,
.bas-cof__form .flatpickr-input {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
  cursor: pointer;
  caret-color: transparent; /* flatpickr manages the value */
}

/* The hidden real input (flatpickr hides it but we keep it valid for form submission) */
.bas-cof__form input[data-bas-fp="1"]:not(.flatpickr-input) {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Calendar popup container ──────────────────────────────────────── */
.flatpickr-calendar.bas-cof-cal,
.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36), 0 2px 8px rgba(0, 0, 0, 0.18);
  font-family: Lato, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* ── Month header ───────────────────────────────────────────────────── */
.flatpickr-months {
  background: #1d741b; /* BAS Dark Forest Green */
  padding: 4px 0;
}

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: #fff;
  fill: #fff;
}

.flatpickr-current-month {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #fff;
  font-weight: 700;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: rgba(255, 255, 255, 0.85) !important;
  fill: rgba(255, 255, 255, 0.85) !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: #fff !important;
  fill: #fff !important;
}

/* ── Day-of-week headers ────────────────────────────────────────────── */
.flatpickr-weekdays {
  background: #222;
}

.flatpickr-weekday {
  background: #222;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Day cells ──────────────────────────────────────────────────────── */
.flatpickr-days {
  background: #2a2a2a;
}

.dayContainer {
  background: #2a2a2a;
}

.flatpickr-day {
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: rgba(112, 172, 67, 0.22); /* BAS sage green tint */
  border-color: transparent;
  color: #fff;
}

/* Selected day: use vendor brand colour via CSS variable (fallback: BAS sage green) */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--bas-cof-accent, #70ac43);
  border-color: var(--bas-cof-accent, #70ac43);
  color: var(--bas-cof-accent-text, #fff);
}

/* Today indicator */
.flatpickr-day.today {
  border-color: var(--bas-cof-accent, #70ac43);
  color: var(--bas-cof-accent, #70ac43);
}

.flatpickr-day.today:hover {
  background: rgba(112, 172, 67, 0.22);
  color: #fff;
}

/* Disabled / held dates */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.22) !important;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: transparent;
}

/* Adjacent month days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, 0.3);
}

/* ── Mobile responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .flatpickr-calendar {
    width: 100%;
    border-radius: 0 0 12px 12px;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ============================================================
   BAS Hub Links module — frontend styles
   Palette: sage #70ac43 · lime #c2e86b · forest #1d741b · teal #30b2b4
            burnt orange #ff4c25 · cream #fffbef · charcoal #313131
   ============================================================ */

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.bas-vlp-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font-family: Lato, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #8a8272;
	margin: 0 0 20px;
}

.bas-vlp-crumbs__link {
	color: #70ac43 !important;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s, color 0.15s;
}

.bas-vlp-crumbs__link:hover,
.bas-vlp-crumbs__link:focus-visible {
	color: #1d741b !important;
	border-bottom-color: #1d741b;
}

.bas-vlp-crumbs__sep { color: #cfc6b2; }

.bas-vlp-crumbs__current {
	color: #313131;
	font-weight: 700;
}

/* ── "Also browse" related hub links ────────────────────────────────────── */
.bas-vlp-related {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 26px 0 0;
	padding: 14px 18px;
	background: #fffbef;
	border: 1px solid #ece5d5;
	border-radius: 14px;
	font-family: Lato, sans-serif;
}

.bas-vlp-related__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8a8272;
	margin-right: 2px;
}

.bas-vlp-related__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #70ac43 !important;
	background: #fff;
	border: 1px solid #70ac43;
	border-radius: 100px;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.bas-vlp-related__link:hover,
.bas-vlp-related__link:focus-visible {
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(112, 172, 67, 0.25);
}

/* ── Grid container ─────────────────────────────────────────────────────── */
.bas-vlp-hub-links__grid {
	display: grid;
	gap: 14px;
	padding: 4px 0;
}

.bas-vlp-hub-links__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.bas-vlp-hub-links__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.bas-vlp-hub-links__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.bas-vlp-hub-links__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 15px 16px 15px 21px;
	background: #fff;
	border: 1px solid #ece5d5;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none !important;
	color: #313131 !important;
	font-family: Lato, sans-serif;
	box-shadow: 0 1px 2px rgba(49, 49, 49, 0.04);
	transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}

/* Left accent bar — subtle at rest, full sage gradient on hover. */
.bas-vlp-hub-links__card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
	opacity: 0.35;
	transition: opacity 0.18s;
}

.bas-vlp-hub-links__card:hover,
.bas-vlp-hub-links__card:focus-visible {
	border-color: var(--bas-hub-accent, #70ac43);
	box-shadow: 0 6px 18px rgba(112, 172, 67, 0.16);
	transform: translateY(-2px);
	text-decoration: none !important;
}

.bas-vlp-hub-links__card:hover::before,
.bas-vlp-hub-links__card:focus-visible::before { opacity: 1; }

.bas-vlp-hub-links__card:focus-visible {
	outline: 2px solid #1d741b;
	outline-offset: 2px;
}

/* ── Icon chip ──────────────────────────────────────────────────────────── */
.bas-vlp-hub-links__card-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s;
}

/* State/location cards → teal. Category cards → burnt orange. */
.bas-vlp-hub-links__card-icon--pin {
	color: #30b2b4;
	background: rgba(48, 178, 180, 0.11);
}

.bas-vlp-hub-links__card-icon--tag {
	color: #ff4c25;
	background: rgba(255, 76, 37, 0.10);
}

.bas-vlp-hub-links__card:hover .bas-vlp-hub-links__card-icon { transform: scale(1.06); }

/* ── Card body ──────────────────────────────────────────────────────────── */
.bas-vlp-hub-links__card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bas-vlp-hub-links__card-title {
	display: block;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 16px;
	font-weight: 700;
	color: #313131;
	line-height: 1.3;
}

/* ── Vendor count badge ─────────────────────────────────────────────────── */
.bas-vlp-hub-links__card-count {
	display: inline-block;
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1d741b;
	background: #eef7e3;
	border-radius: 100px;
	padding: 2px 10px;
}

/* ── Arrow chip ─────────────────────────────────────────────────────────── */
.bas-vlp-hub-links__card-arrow {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #70ac43;
	background: #f6f2e6;
	transition: background 0.18s, color 0.18s, transform 0.18s;
}

.bas-vlp-hub-links__card:hover .bas-vlp-hub-links__card-arrow {
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
	color: #fff;
	transform: translateX(3px);
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.bas-vlp-hub-links--empty {
	font-family: Lato, sans-serif;
	font-size: 13px;
	color: #666;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
	.bas-vlp-hub-links__grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
	.bas-vlp-hub-links__grid--cols-3,
	.bas-vlp-hub-links__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
	.bas-vlp-hub-links__grid--cols-2,
	.bas-vlp-hub-links__grid--cols-3,
	.bas-vlp-hub-links__grid--cols-4 { grid-template-columns: 1fr; }

	.bas-vlp-related { flex-direction: column; align-items: stretch; }
	.bas-vlp-related__link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.bas-vlp-hub-links__card,
	.bas-vlp-hub-links__card-icon,
	.bas-vlp-hub-links__card-arrow { transition: none; }
	.bas-vlp-hub-links__card:hover { transform: none; }
}
