/* SEO Exec - Free Shipping Bar.
   Rules that themes are known to override (paragraph margins, button text-transform) are written
   as `.seo-fsb .x` so they out-rank selectors like `.entry-content p` and `.woocommerce button`.
   Colours come from the Kadence palette when present, with Goaldees'
   own values as fallbacks, so the bar follows the theme instead of fighting it. */
.seo-fsb {
	--fsb-brand: var(--global-palette1, #014d40);
	--fsb-ink: var(--global-palette3, #212121);
	--fsb-muted: #56635f;
	--fsb-bg: #f2f7f5;
	--fsb-line: #d5e3de;
	--fsb-track: #e0ebe7;
	--fsb-pct: 0%;
	box-sizing: border-box;
	margin: 0 0 20px;
	padding: 16px 18px 14px;
	background: var(--fsb-bg);
	border: 1px solid var(--fsb-line);
	border-radius: 14px;
	color: var(--fsb-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	min-width: 0;
	max-width: 100%;
}
.seo-fsb *,
.seo-fsb *::before,
.seo-fsb *::after { box-sizing: border-box; }
.seo-fsb[hidden] { display: none !important; }

.seo-fsb__head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.seo-fsb__badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--fsb-line);
	color: var(--fsb-brand);
}
.seo-fsb__badge svg { width: 19px; height: 19px; display: block; }
.seo-fsb__badge .seo-fsb__i-done { display: none; }
.seo-fsb .seo-fsb__text { margin: 0; padding: 0; min-width: 0; }
.seo-fsb__text strong { color: var(--fsb-brand); font-weight: 700; }
.seo-fsb__text .woocommerce-Price-amount { font-weight: 700; }
.seo-fsb .seo-fsb__sub {
	margin: 2px 0 0;
	padding: 0;
	font-size: 13px;
	color: var(--fsb-muted);
}

.seo-fsb__track {
	position: relative;
	height: 8px;
	margin: 16px 6px 6px;
	border-radius: 999px;
	background: var(--fsb-track);
}
.seo-fsb__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--fsb-pct);
	border-radius: inherit;
	background: linear-gradient(90deg, color-mix(in srgb, var(--fsb-brand) 72%, #fff) 0%, var(--fsb-brand) 100%);
	background-color: var(--fsb-brand);
	overflow: hidden;
	transition: width .75s cubic-bezier(.2, .8, .2, 1);
	animation: seo-fsb-grow .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
/* A single light sweep when the amount changes - motion that answers what the shopper just did. */
.seo-fsb__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
	transform: translateX(-100%);
}
.seo-fsb.is-updating .seo-fsb__fill::after { animation: seo-fsb-sweep .9s ease-out .25s 1; }

.seo-fsb__marker {
	position: absolute;
	top: 50%;
	left: clamp(14px, var(--fsb-pct), calc(100% - 14px));
	width: 28px;
	height: 28px;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--fsb-brand);
	color: var(--fsb-brand);
	box-shadow: 0 1px 3px rgba(1, 77, 64, .18);
	transition: left .75s cubic-bezier(.2, .8, .2, 1), background-color .3s, color .3s;
	animation: seo-fsb-ride .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
.seo-fsb__marker svg { width: 15px; height: 15px; display: block; }
.seo-fsb__marker .seo-fsb__i-done { display: none; }

/* Unlocked */
.seo-fsb[data-state="done"] {
	--fsb-bg: #eaf5f0;
	--fsb-line: #bcd9cd;
}
.seo-fsb[data-state="done"] .seo-fsb__badge { background: var(--fsb-brand); border-color: var(--fsb-brand); color: #fff; }
.seo-fsb[data-state="done"] .seo-fsb__badge .seo-fsb__i-truck,
.seo-fsb[data-state="done"] .seo-fsb__marker .seo-fsb__i-truck { display: none; }
.seo-fsb[data-state="done"] .seo-fsb__badge .seo-fsb__i-done,
.seo-fsb[data-state="done"] .seo-fsb__marker .seo-fsb__i-done { display: block; }
.seo-fsb[data-state="done"] .seo-fsb__marker { background: var(--fsb-brand); color: #fff; }
.seo-fsb.is-unlocked .seo-fsb__marker { animation: seo-fsb-pop .55s cubic-bezier(.2, .8, .2, 1.4) 1; }

.seo-fsb__link {
	color: var(--fsb-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Suggestions (cart page): tabs, a swipeable rail of cards, and a one-tap bundle */
.seo-fsb__picks {
	margin: 14px 0 2px;
	padding: 12px 0 14px;
	background: #fff;
	border: 1px solid var(--fsb-line);
	border-radius: 12px;
	min-width: 0;
}
.seo-fsb__picks-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	padding: 0 14px;
}
.seo-fsb .seo-fsb__picks-title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--fsb-ink);
}
.seo-fsb__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-fsb .seo-fsb__chip {
	height: 30px;
	width: auto;
	min-height: 0;
	padding: 0 12px;
	border: 1px solid var(--fsb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--fsb-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.seo-fsb .seo-fsb__chip:hover { border-color: var(--fsb-brand); color: var(--fsb-brand); background: #fff; }
.seo-fsb .seo-fsb__chip[aria-pressed="true"] { background: var(--fsb-brand); border-color: var(--fsb-brand); color: #fff; }

/* One-tap bundle */
.seo-fsb__bundle {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 14px 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #eaf5f0;
	border: 1px dashed #9cc7b6;
}
.seo-fsb__bundle-thumbs { display: flex; flex: none; }
.seo-fsb__bundle-img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #eaf5f0;
	object-fit: contain;
	padding: 3px;
}
.seo-fsb__bundle-img + .seo-fsb__bundle-img { margin-left: -12px; }
.seo-fsb__bundle-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.seo-fsb__bundle-head { font-size: 14px; color: var(--fsb-brand); }
.seo-fsb__bundle-sub { font-size: 13px; color: var(--fsb-ink); }
.seo-fsb__bundle-names {
	font-size: 12px;
	color: var(--fsb-muted);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Rail */
.seo-fsb__rail-wrap { position: relative; margin-top: 12px; }
.seo-fsb__rail {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 14px;
	padding: 2px 14px 4px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.seo-fsb__rail::-webkit-scrollbar { display: none; }
/* Fade the edge that has more behind it - the cue that the rail scrolls. */
.seo-fsb__rail-wrap.has-next .seo-fsb__rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.seo-fsb__rail-wrap.has-prev .seo-fsb__rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.seo-fsb__rail-wrap.has-prev.has-next .seo-fsb__rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

.seo-fsb__card {
	flex: 0 0 148px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	border: 1px solid #e7efec;
	border-radius: 12px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.seo-fsb__card:hover { border-color: var(--fsb-line); box-shadow: 0 2px 10px rgba(1, 77, 64, .08); }
.seo-fsb__card-media {
	position: relative;
	display: grid;
	place-items: center;
	height: 104px;
	border-radius: 9px;
	background: #f7f9f8;
	overflow: hidden;
}
.seo-fsb__card-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.seo-fsb__ribbon {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--fsb-brand);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.5;
}
.seo-fsb__card-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
	min-height: 2.6em;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--fsb-ink);
	text-decoration: none;
}
.seo-fsb__card-name:hover { text-decoration: underline; }
.seo-fsb__card-price { font-size: 14px; font-weight: 700; color: var(--fsb-ink); }

.seo-fsb .seo-fsb__add {
	flex: none;
	width: auto;
	min-width: 74px;
	min-height: 0;
	height: 32px;
	margin-top: auto;
	padding: 0 14px;
	border: 1.5px solid var(--fsb-brand);
	border-radius: 999px;
	background: #fff;
	color: var(--fsb-brand);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.seo-fsb__card .seo-fsb__add { width: 100%; }
.seo-fsb .seo-fsb__add--solid { background: var(--fsb-brand); color: #fff; white-space: nowrap; }
.seo-fsb .seo-fsb__add:hover:not(:disabled) { background: var(--fsb-brand); color: #fff; }
.seo-fsb .seo-fsb__add--solid:hover:not(:disabled) { background: color-mix(in srgb, var(--fsb-brand) 86%, #000); }
.seo-fsb .seo-fsb__add:disabled { cursor: default; opacity: .85; }
.seo-fsb .seo-fsb__add[data-done="1"] { background: var(--fsb-brand); color: #fff; }

/* Arrows: desktop pointers only - phones swipe */
.seo-fsb .seo-fsb__arrow {
	position: absolute;
	top: 42px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	padding: 0;
	border: 1px solid var(--fsb-line);
	border-radius: 50%;
	background: #fff;
	color: var(--fsb-brand);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: opacity .15s;
}
.seo-fsb .seo-fsb__arrow--prev { left: 4px; }
.seo-fsb .seo-fsb__arrow--next { right: 4px; }
.seo-fsb .seo-fsb__arrow:disabled { opacity: 0; pointer-events: none; }
.seo-fsb .seo-fsb__arrow:hover { background: var(--fsb-brand); color: #fff; }
@media (hover: none), (max-width: 600px) {
	.seo-fsb .seo-fsb__arrow { display: none; }
}

.seo-fsb .seo-fsb__add:focus-visible,
.seo-fsb .seo-fsb__chip:focus-visible,
.seo-fsb .seo-fsb__arrow:focus-visible,
.seo-fsb__card-name:focus-visible,
.seo-fsb__link:focus-visible { outline: 2px solid var(--fsb-brand); outline-offset: 2px; }

/* Compact variants */
.seo-fsb[data-context="minicart"] {
	margin: 12px 0;
	padding: 12px 14px 10px;
	font-size: 14px;
	border-radius: 12px;
}
.seo-fsb[data-context="minicart"] .seo-fsb__badge { width: 30px; height: 30px; }
.seo-fsb[data-context="minicart"] .seo-fsb__badge svg { width: 16px; height: 16px; }
.seo-fsb[data-context="minicart"] .seo-fsb__track { margin-top: 13px; }
.seo-fsb[data-context="checkout"] { margin-bottom: 24px; }

@keyframes seo-fsb-grow { from { width: 0; } }
@keyframes seo-fsb-ride { from { left: 14px; } }
@keyframes seo-fsb-sweep { to { transform: translateX(100%); } }
@keyframes seo-fsb-pop { 0% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(1.28); } 100% { transform: translate(-50%, -50%) scale(1); } }

@media (max-width: 480px) {
	.seo-fsb { padding: 14px 14px 12px; font-size: 14.5px; }
	/* ~2.4 cards in view: the visible slice of the third is the cue that the rail swipes. */
	.seo-fsb__card { flex-basis: 41%; }
	.seo-fsb__card-media { height: 92px; }
	.seo-fsb__rail-wrap.has-next .seo-fsb__rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
	.seo-fsb__rail-wrap.has-prev .seo-fsb__rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px); mask-image: linear-gradient(90deg, transparent, #000 18px); }
	.seo-fsb__rail-wrap.has-prev.has-next .seo-fsb__rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
	.seo-fsb__picks-head { padding: 0 12px; }
	.seo-fsb__rail { padding: 2px 12px 4px; scroll-padding: 0 12px; }
	.seo-fsb__bundle { margin: 12px 12px 0; flex-wrap: wrap; }
	.seo-fsb__bundle .seo-fsb__add { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.seo-fsb__rail { scroll-behavior: auto; }
	.seo-fsb__card,
	.seo-fsb__fill,
	.seo-fsb__marker { transition: none; animation: none; }
	.seo-fsb.is-updating .seo-fsb__fill::after,
	.seo-fsb.is-unlocked .seo-fsb__marker { animation: none; }
}
