/* Flowix — Shop Features. Every piece is stylable under Customize → Style Every Element → Shop Features. */

/* ── Badges ── */
.fx-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 3; pointer-events: none; }
.fx-badge--low { background: var(--amber, #d89a3c); color: var(--amber-ink, #1c0f06); }
.fx-badge--oos { background: var(--tx-strong, #1c0f06); color: var(--bg-page, #fff); }
.fx-badge--custom { background: var(--fx-accent, var(--gold, #b85c3a)); color: #fff; }
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product > a { position: relative; display: block; }
.woocommerce div.product { position: relative; }
.woocommerce div.product > .fx-badges { top: 16px; left: 16px; }


/* ── Delivery & trust ── */
.fx-delivery { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 12px; padding: 12px 14px; border: 1px solid var(--bd-light, #e6ddd2); border-radius: var(--radius-md, 4px); }
.fx-delivery svg { flex: none; margin-top: 2px; color: var(--sage, #5d7a5a); }
.fx-delivery p { margin: 0; }
.fx-del-within { display: block; font-size: .85rem; color: var(--sage, #5d7a5a); font-weight: 600; }
.fx-del-within:empty { display: none; }
.fx-trust { list-style: none; margin: 12px 0 20px; padding: 0; display: grid; gap: 8px; }
.fx-trust li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--tx-mid, #4a3a2e); }
.fx-trust svg { flex: none; color: var(--tx-strong, #1c0f06); }

/* ── Product page layout ── */
@media (min-width: 769px) {
	.fx-pp-gallery-right.woocommerce div.product div.images, .fx-pp-gallery-right .woocommerce div.product div.images { float: right; }
	.fx-pp-gallery-right.woocommerce div.product div.summary, .fx-pp-gallery-right .woocommerce div.product div.summary { float: left; }
	.fx-pp-sticky .woocommerce div.product div.summary, .fx-pp-sticky.woocommerce div.product div.summary { position: sticky; top: calc(var(--fx-header-h, 80px) + 20px); }
}
.fx-acc-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--bd-light, #e6ddd2); background: none; color: var(--tx-strong, #1c0f06); font: 600 1.05rem var(--font-display, inherit); text-align: left; cursor: pointer; }
.fx-acc-head::after { content: "+"; font-size: 1.4rem; font-weight: 300; transition: transform .2s; }
.fx-acc-head[aria-expanded="true"]::after { transform: rotate(45deg); }
.fx-pp-tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel { padding: 16px 0; margin: 0; border: 0; }
.fx-tab-title { margin: 32px 0 12px; }
.fx-pp-top { display: flow-root; position: relative; }
.fx-pp-top > .fx-badges { top: 16px; left: 16px; }
.fx-pp-tabs-accordion .woocommerce-Reviews-title, .fx-pp-tabs-open .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child, .fx-pp-tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { display: none; }

/* ── Free-delivery bar ── */
.fx-fsb { margin: 0 0 16px; }
.fx-fsb-msg { margin: 0 0 8px; font-size: .9rem; font-weight: 600; color: var(--tx-strong, #1c0f06); }
.fx-fsb-track { display: block; height: 8px; border-radius: 8px; background: var(--bd-light, #eee); overflow: hidden; }
.fx-fsb-fill { display: block; height: 100%; border-radius: inherit; background: var(--sage, #5d7a5a); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.fx-fsb.is-done .fx-fsb-fill { background: linear-gradient(90deg, var(--sage, #5d7a5a), var(--gold, #c8a04a)); }
.fx-fsb--note { padding: 10px 12px; border: 1px dashed var(--bd-light, #ccc); font-size: .85rem; color: var(--tx-muted, #6b5a4c); }
.fx-fsb--compact { margin: 0; min-width: 200px; }
.fx-fsb--compact .fx-fsb-msg { font-size: .75rem; margin-bottom: 4px; }
.fx-fsb--compact .fx-fsb-track { height: 4px; }
.mini-cart-body .fx-fsb { padding: 0 0 14px; border-bottom: 1px solid var(--bd-light, #eee); }

/* ── Added-to-cart toast ── */
.fx-toast {
	position: fixed; right: 20px; bottom: 20px; z-index: 99999; display: flex; gap: 12px; align-items: center;
	width: min(360px, calc(100vw - 32px)); padding: 12px; border-radius: var(--radius-lg, 8px);
	background: var(--bg-page, #fff); color: var(--tx-strong, #1c0f06); box-shadow: 0 18px 50px rgba(0,0,0,.22);
	opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.fx-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fx-toast img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.fx-toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .85rem; }
.fx-toast-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-toast-body span { color: var(--sage, #5d7a5a); font-weight: 600; }
.fx-toast-links { display: flex; gap: 12px; margin-top: 4px; }
.fx-toast-links a { font-weight: 700; text-decoration: underline; }
@media (max-width: 600px) { .fx-toast { right: 16px; bottom: 16px; } }


/* Free-delivery bar fill, in steps of 5%. */
.fx-fsb-fill--0 { width: 0%; }
.fx-fsb-fill--5 { width: 5%; }
.fx-fsb-fill--10 { width: 10%; }
.fx-fsb-fill--15 { width: 15%; }
.fx-fsb-fill--20 { width: 20%; }
.fx-fsb-fill--25 { width: 25%; }
.fx-fsb-fill--30 { width: 30%; }
.fx-fsb-fill--35 { width: 35%; }
.fx-fsb-fill--40 { width: 40%; }
.fx-fsb-fill--45 { width: 45%; }
.fx-fsb-fill--50 { width: 50%; }
.fx-fsb-fill--55 { width: 55%; }
.fx-fsb-fill--60 { width: 60%; }
.fx-fsb-fill--65 { width: 65%; }
.fx-fsb-fill--70 { width: 70%; }
.fx-fsb-fill--75 { width: 75%; }
.fx-fsb-fill--80 { width: 80%; }
.fx-fsb-fill--85 { width: 85%; }
.fx-fsb-fill--90 { width: 90%; }
.fx-fsb-fill--95 { width: 95%; }
.fx-fsb-fill--100 { width: 100%; }
