/* ==========================================================================
   BBF Wholesale — main stylesheet
   Palette: ink #0B1220 / orange #FF6A13 / paper #FFFFFF
   ========================================================================== */

:root {
	--ink: #0b1220;
	--ink-2: #111d33;
	--ink-3: #1b2a45;
	--accent: #ff6a13;
	--accent-dark: #e2550a;
	--paper: #ffffff;
	--soft: #f5f7fa;
	--line: #e3e8ef;
	--muted: #5a6b84;
	--radius: 2px;
	--wrap: 1240px;
	--font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- base ---------- */
body,
body.woocommerce,
body.storefront {
	font-family: var(--font-body);
	color: #1d2939;
	background: var(--paper);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.bbf-home h1,
.bbf-home h2,
.bbf-home h3,
.bbf-home h4 {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--ink);
	margin: 0 0 12px;
	line-height: 1.02;
}

.bbf-home p {
	margin: 0 0 14px;
	line-height: 1.65;
	color: #3c4a5e;
}

.home #content > .col-full,
.home #content .col-full {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.bbf-full {
	width: 100%;
	margin-left: 0;
}

.bbf-wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.bbf-eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}

.bbf-sec {
	padding: 86px 0;
	background: var(--paper);
}

.bbf-sec--soft {
	background: var(--soft);
}

.bbf-sec--ink {
	background: var(--ink);
	color: #fff;
}

.bbf-sec__head {
	max-width: 760px;
	margin-bottom: 42px;
}

.bbf-sec__head h2 {
	font-size: clamp(28px, 3.2vw, 42px);
	margin-bottom: 14px;
}

.bbf-sec__head p {
	font-size: 16px;
	max-width: 640px;
}

.bbf-sec__head--light h2,
.bbf-sec__head--light p {
	color: #fff;
}

.bbf-sec__head--light p {
	color: rgba(255, 255, 255, 0.72);
}

.bbf-sec__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.bbf-lead {
	font-size: 17px;
	line-height: 1.6;
	color: #46566c;
}

.bbf-link {
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
}

.bbf-link:hover {
	color: var(--accent);
}

/* ---------- buttons ---------- */
.bbf-btn,
.bbf-home .button,
.bbf-home button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 15px 26px;
	border: 0;
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.bbf-btn:hover,
.bbf-home .button:hover {
	background: var(--accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.bbf-btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
}

.bbf-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

.bbf-btn--block {
	display: flex;
	width: 100%;
	margin-top: 4px;
}

/* ---------- utility bar ---------- */
.bbf-util {
	background: #060b14;
	color: rgba(255, 255, 255, 0.66);
	font-size: 11.5px;
	letter-spacing: 0.04em;
}

.bbf-util__in {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.bbf-util__tag {
	font-weight: 800;
	letter-spacing: 0.16em;
	color: var(--accent);
	font-size: 10.5px;
}

.bbf-util__list {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	flex-wrap: wrap;
}

.bbf-util__list li {
	margin: 0;
	position: relative;
	padding-left: 12px;
}

.bbf-util__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 4px;
	height: 4px;
	background: var(--accent);
}

.bbf-util__link {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.bbf-util__link:hover {
	color: var(--accent);
}

/* ---------- header ---------- */
.site-header {
	background: var(--ink);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0;
	margin: 0;
}

/* row A — brand + search */
.site-header > .col-full {
	max-width: var(--wrap);
	padding: 16px 24px 14px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-header .site-branding {
	margin: 0;
	flex: 0 0 auto;
}

.site-search {
	margin-left: auto;
	flex: 0 0 280px;
	width: 280px;
}

/* row B — navigation, CTA, cart */
.storefront-primary-navigation {
	background: #070d18;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.storefront-primary-navigation .col-full {
	max-width: var(--wrap);
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.primary-navigation {
	flex: 1 1 auto;
}

.main-navigation {
	background: transparent;
}

.primary-navigation ul.menu {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation ul.menu > li {
	margin: 0;
	position: relative;
}

.main-navigation ul.menu > li > a {
	padding: 13px 11px;
	white-space: nowrap;
}

.site-title,
.site-title a {
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff !important;
	line-height: 1;
	text-decoration: none;
}

.site-title a:hover {
	color: var(--accent) !important;
}

.site-description {
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 5px 0 0;
}

.main-navigation {
	background: transparent;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 11px;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a {
	color: var(--accent);
}

.main-navigation ul.menu ul {
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 12px 30px rgba(11, 18, 32, 0.14);
}

.main-navigation ul.menu ul li a {
	color: var(--ink) !important;
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0;
	padding: 9px 14px;
}

.main-navigation ul.menu ul li a:hover {
	background: var(--soft);
	color: var(--accent) !important;
}

.main-navigation .menu-toggle,
.main-navigation button.menu-toggle {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.main-navigation.toggled button.menu-toggle {
	background: rgba(255, 255, 255, 0.1);
}

.site-header-cart .cart-contents {
	color: #fff;
}

.site-header-cart .count {
	background: var(--accent);
	color: #fff;
}

.bbf-header-cta-wrap {
	margin-left: 8px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.bbf-header-link {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	padding-bottom: 1px;
}

.bbf-header-link:hover {
	color: #fff;
	border-bottom-color: var(--accent);
}

@media (max-width: 767px) {
	.bbf-header-link {
		display: none;
	}
}

.bbf-header-cta {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 20px;
	border-radius: var(--radius);
	text-decoration: none;
	white-space: nowrap;
}

.bbf-header-cta:hover {
	background: var(--accent-dark);
	color: #fff;
}

/* storefront search inside header */
.site-search {
	order: 3;
}

.site-search .widget_product_search form::before {
	color: rgba(255, 255, 255, 0.6);
}

.site-search input[type="search"] {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
}

.site-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

/* remove storefront content top padding */
.site-content,
body .site-content {
	padding-top: 0 !important;
}


/* hard reset the gap between header and first section */
/* header must sit flush on the hero */
#masthead,
.site-header,
.storefront-primary-navigation {
	margin-bottom: 0 !important;
	border-bottom: 0 !important;
}

#content.site-content,
#content.site-content > .col-full,
.bbf-home,
.bbf-home > section:first-child {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.bbf-home > section:first-child .bbf-hero__in {
	padding-top: 66px;
}

/* ---------- hero ---------- */
.bbf-hero {
	background: radial-gradient(1100px 600px at 78% 18%, #1c3050 0%, #0b1220 58%, #070d18 100%);
	color: #fff;
	padding: 74px 0 78px;
	position: relative;
	overflow: hidden;
}

.bbf-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent) 0%, #ffa23a 45%, transparent 100%);
}

.bbf-hero__in {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
	position: relative;
	z-index: 2;
}

.bbf-hero h1 {
	font-size: clamp(38px, 4.4vw, 62px);
	line-height: 0.95;
	color: #fff;
	margin: 0 0 22px;
	letter-spacing: -0.005em;
}

.bbf-hero h1 em {
	font-style: normal;
	color: var(--accent);
	display: inline-block;
}

.bbf-hero .bbf-lead {
	color: rgba(255, 255, 255, 0.74);
	font-size: 17px;
	max-width: 520px;
	margin-bottom: 26px;
}

.bbf-hero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.bbf-hero__points {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.bbf-hero__points li {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
	padding-left: 14px;
	position: relative;
}

.bbf-hero__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 6px;
	height: 6px;
	border: 1px solid var(--accent);
}

.bbf-hero__media {
	position: relative;
}

.bbf-mosaic {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	height: 420px;
}

.bbf-mosaic__item {
	margin: 0;
	overflow: hidden;
	background: #16223a;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.bbf-mosaic__item--1 {
	grid-row: span 2;
}

.bbf-mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.94;
	transition: transform 0.4s ease;
}

.bbf-mosaic__item:hover img {
	transform: scale(1.04);
}

.bbf-hero__badge {
	position: absolute;
	left: -22px;
	bottom: -22px;
	background: var(--accent);
	color: #fff;
	padding: 16px 20px;
	max-width: 210px;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.bbf-hero__badge strong {
	display: block;
	font-family: var(--font-head);
	font-size: 34px;
	line-height: 1;
}

.bbf-hero__badge span {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.92;
	margin-top: 4px;
}

/* ---------- hero order panel ---------- */
.bbf-order {
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 26px 26px 22px;
	position: relative;
}

.bbf-order::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 76px;
	height: 3px;
	background: var(--accent);
}

.bbf-order__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bbf-order__tag {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
}

.bbf-order__id {
	font-size: 10.5px;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.45);
}

.bbf-order__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.bbf-order__row span {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.bbf-order__row strong {
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
}

.bbf-order__total {
	padding: 18px 0 4px;
}

.bbf-order__total span {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 4px;
}

.bbf-order__total strong {
	display: block;
	font-family: var(--font-head);
	font-size: 44px;
	line-height: 1;
	color: var(--accent);
}

.bbf-order__total em {
	display: block;
	font-style: normal;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.55);
	margin-top: 6px;
}

.bbf-tierscale {
	display: flex;
	gap: 6px;
	margin-top: 18px;
}

.bbf-tierscale div {
	flex: 1;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	padding: 8px 3px;
	font-size: 10px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.78);
	letter-spacing: 0.02em;
}

.bbf-tierscale div em {
	display: block;
	font-style: normal;
	font-size: 10px;
	color: var(--accent);
	margin-top: 2px;
	font-weight: 700;
}

.bbf-order__fine {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	margin: 16px 0 0;
	line-height: 1.5;
}

/* ---------- strip ---------- */
.bbf-strip {
	background: #0f1a2c;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	padding: 0;
}

.bbf-strip__in {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.bbf-strip__item {
	padding: 24px 8px;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.bbf-strip__item:last-child {
	border-right: 0;
}

.bbf-strip__item strong {
	display: block;
	font-family: var(--font-head);
	font-size: 30px;
	color: #fff;
	line-height: 1;
	margin-bottom: 4px;
}

.bbf-strip__item span {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

/* ---------- generic grids ---------- */
.bbf-grid--3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 46px;
}

.bbf-card-pad {
	background: var(--paper);
	border: 1px solid var(--line);
	padding: 30px 26px;
	position: relative;
}

.bbf-card-pad::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 3px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.bbf-card-pad:hover::before {
	transform: scaleX(1);
}

.bbf-num {
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: 0.1em;
	display: block;
	margin-bottom: 14px;
}

.bbf-card-pad h3 {
	font-size: 22px;
	margin-bottom: 10px;
}

.bbf-card-pad p {
	font-size: 14.5px;
	margin: 0;
	color: #4b5a6f;
}

/* ---------- cost table ---------- */
.bbf-cost {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 0;
	border: 1px solid var(--line);
	background: var(--soft);
}

.bbf-cost__head {
	padding: 34px 30px;
	border-right: 1px solid var(--line);
	background: var(--paper);
}

.bbf-cost__head h3 {
	font-size: 24px;
	margin-bottom: 8px;
}

.bbf-cost__head p {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
}

.bbf-cost__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bbf-cost__table th {
	text-align: left;
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 700;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.6);
}

.bbf-cost__table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	color: #3c4a5e;
}

.bbf-cost__table td small {
	display: block;
	font-size: 10.5px;
	color: var(--muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bbf-cost__table td:nth-child(2) {
	color: #8b97a8;
}

.bbf-cost__total td {
	background: #fff;
	font-weight: 700;
	color: var(--ink);
	border-bottom: 0;
}

.bbf-cost__total td strong {
	font-family: var(--font-head);
	font-size: 22px;
	color: var(--accent);
}

/* ---------- rules ---------- */
.bbf-rules {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.1);
	margin-bottom: 44px;
}

.bbf-rule {
	background: var(--ink);
	padding: 28px 22px;
}

.bbf-rule h3 {
	color: #fff;
	font-size: 19px;
	margin-bottom: 10px;
}

.bbf-rule p {
	color: rgba(255, 255, 255, 0.66);
	font-size: 13.5px;
	margin: 0;
	line-height: 1.6;
}

.bbf-rule p strong {
	color: #fff;
}

.bbf-tiers {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 40px;
	align-items: center;
	padding-top: 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bbf-sec--ink .bbf-tiers__label,
.bbf-tiers__label {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 26px;
	color: #fff;
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.bbf-tiers__intro p:last-child {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13.5px;
	margin: 0;
}

/* tier table (shared) */
.bbf-tier {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}

.bbf-tier th {
	background: #eef2f7;
	color: var(--ink);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
	padding: 12px 16px;
	font-weight: 700;
}

.bbf-tier td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	color: #3c4a5e;
}

.bbf-tier tbody tr:last-child td {
	border-bottom: 0;
	font-weight: 600;
	color: var(--ink);
}

.bbf-tier td:nth-child(2) {
	font-weight: 700;
	color: var(--accent);
}

/* ---------- categories ---------- */
.bbf-cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.bbf-cat {
	display: block;
	text-decoration: none;
	background: #fff;
	padding: 22px 20px 20px;
	position: relative;
	transition: background 0.18s ease;
}

.bbf-cat:hover {
	background: var(--ink);
}

.bbf-cat__i {
	display: block;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--accent);
	margin-bottom: 12px;
}

.bbf-cat__name {
	display: block;
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	margin-bottom: 10px;
	transition: color 0.18s ease;
}

.bbf-cat:hover .bbf-cat__name {
	color: #fff;
}

.bbf-cat__count {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.18s ease;
}

.bbf-cat:hover .bbf-cat__count {
	color: rgba(255, 255, 255, 0.6);
}

.bbf-cat__count em {
	font-style: normal;
	color: var(--accent);
	margin-left: 4px;
}

/* ---------- product cards ---------- */
.bbf-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.bbf-pcard {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--line);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bbf-pcard:hover {
	box-shadow: 0 16px 34px rgba(11, 18, 32, 0.11);
	transform: translateY(-2px);
}

.bbf-pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
	padding: 12px;
	box-sizing: border-box;
}

.bbf-pcard__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bbf-pcard__moq {
	position: absolute;
	left: 10px;
	top: 10px;
	background: var(--ink);
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 8px;
}

.bbf-pcard__body {
	display: block;
	padding: 14px 14px 16px;
	border-top: 1px solid var(--line);
}

.bbf-pcard__title {
	display: block;
	font-size: 13.5px;
	line-height: 1.4;
	color: #1d2939;
	min-height: 38px;
	margin-bottom: 8px;
}

.bbf-pcard__price {
	display: block;
	font-family: var(--font-head);
	font-size: 21px;
	font-weight: 700;
	color: var(--ink);
}

.bbf-pcard__price em {
	font-family: var(--font-body);
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- split ---------- */
.bbf-split {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 54px;
	align-items: center;
}

.bbf-split__copy h2 {
	font-size: clamp(28px, 3.2vw, 40px);
	margin-bottom: 16px;
}

.bbf-checks {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.bbf-checks li {
	position: relative;
	padding-left: 26px;
	font-size: 14.5px;
	color: #3c4a5e;
	margin: 0;
}

.bbf-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--accent);
	border-top: 0;
	border-left: 0;
	transform: rotate(45deg);
	box-sizing: border-box;
}

.bbf-checks--light li {
	color: rgba(255, 255, 255, 0.75);
}

.bbf-split__panel {
	background: var(--soft);
	border-left: 3px solid var(--accent);
	padding: 30px 28px;
}

.bbf-kpi {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.bbf-kpi strong {
	display: block;
	font-family: var(--font-head);
	font-size: 30px;
	color: var(--ink);
	line-height: 1.1;
}

.bbf-kpi span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.bbf-split__fine {
	font-size: 12.5px;
	color: var(--muted);
	margin: 18px 0 0;
}

/* ---------- four-up grid (DDP pillars) ---------- */
.bbf-grid--4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 46px;
}

@media (max-width: 1080px) {
	.bbf-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.bbf-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* footnote under a dense table */
.bbf-fine {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--muted);
	margin: 16px 0 0;
	max-width: 74ch;
}

/* ---------- steps ---------- */
.bbf-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.1);
	counter-reset: none;
}

.bbf-steps li {
	background: var(--ink);
	padding: 30px 24px;
	margin: 0;
	position: relative;
}

.bbf-steps__n {
	display: block;
	font-family: var(--font-head);
	font-size: 52px;
	line-height: 0.8;
	color: rgba(255, 255, 255, 0.14);
	margin-bottom: 16px;
}

.bbf-steps h3 {
	color: #fff;
	font-size: 19px;
	margin-bottom: 8px;
}

.bbf-steps p {
	color: rgba(255, 255, 255, 0.64);
	font-size: 13.5px;
	margin: 0 0 16px;
}

.bbf-steps__time {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	border: 1px solid rgba(255, 106, 19, 0.4);
	padding: 4px 9px;
}

/* ---------- faq ---------- */
.bbf-faq {
	display: grid;
	grid-template-columns: 0.72fr 1.28fr;
	gap: 54px;
	align-items: start;
}

.bbf-faq__head h2 {
	font-size: clamp(28px, 3vw, 38px);
	margin-bottom: 12px;
}

.bbf-faq__head p {
	font-size: 14.5px;
	color: var(--muted);
}

.bbf-faq__list details {
	border-bottom: 1px solid var(--line);
	padding: 18px 0;
}

.bbf-faq__list summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 19px;
	font-weight: 700;
	color: var(--ink);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.bbf-faq__list summary::-webkit-details-marker {
	display: none;
}

.bbf-faq__list summary::after {
	content: "+";
	font-family: var(--font-body);
	font-size: 22px;
	color: var(--accent);
	line-height: 1;
}

.bbf-faq__list details[open] summary::after {
	content: "–";
}

.bbf-faq__list details p {
	margin: 12px 0 0;
	font-size: 14.5px;
	color: #4b5a6f;
	max-width: 780px;
}

/* ---------- cta ---------- */
.bbf-cta {
	background: linear-gradient(120deg, #0b1220 0%, #16253d 100%);
	padding: 78px 0;
	color: #fff;
}

.bbf-cta__in {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 56px;
	align-items: center;
}

.bbf-cta__copy h2 {
	color: #fff;
	font-size: clamp(30px, 3.4vw, 46px);
	margin-bottom: 14px;
}

.bbf-cta__copy p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 16px;
}

/* ---------- form ---------- */
.bbf-form {
	background: #fff;
	padding: 30px 28px;
	border-top: 3px solid var(--accent);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	color: #1d2939;
}

.bbf-form__title {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 21px;
	color: var(--ink);
	margin: 0 0 18px;
	line-height: 1.2;
}

.bbf-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.bbf-form label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}

.bbf-form input[type="text"],
.bbf-form input[type="email"],
.bbf-form textarea {
	width: 100%;
	margin-top: 6px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--ink);
	background: #fcfdfe;
	box-sizing: border-box;
}

.bbf-form input:focus,
.bbf-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: #fff;
}

.bbf-form__full {
	display: block;
	margin-bottom: 16px;
}

.bbf-form__foot {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.bbf-form__hint {
	font-size: 11.5px;
	color: var(--muted);
}

.bbf-form__ok {
	background: #ecfdf3;
	border: 1px solid #a7e3c0;
	color: #166534;
	padding: 12px 14px;
	font-size: 13.5px;
	margin-bottom: 16px;
	border-radius: var(--radius);
}

.bbf-form__err {
	background: #fef2f2;
	border: 1px solid #f5b5b5;
	color: #991b1b;
	padding: 12px 14px;
	font-size: 13.5px;
	margin-bottom: 16px;
	border-radius: var(--radius);
}

.bbf-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	margin: 0;
}

/* ---------- single product wholesale box ---------- */
.bbf-wsbox {
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	background: #fbfcfd;
	padding: 18px 18px 20px;
	margin: 18px 0 22px;
}

.bbf-wsbox__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.bbf-wsbox__tag {
	background: var(--ink);
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	padding: 4px 8px;
}

.bbf-wsbox__note {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.bbf-wsbox__list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.bbf-wsbox__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 13px;
	margin: 0;
}

.bbf-wsbox__list li span {
	color: var(--muted);
}

.bbf-wsbox__list li strong {
	color: var(--ink);
	text-align: right;
}

.bbf-wsbox__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 7px;
}

.bbf-wsbox .bbf-tier {
	font-size: 12.5px;
	border: 1px solid var(--line);
}

.bbf-wsbox .bbf-tier th,
.bbf-wsbox .bbf-tier td {
	padding: 8px 10px;
}

.bbf-wsbox__fine {
	font-size: 11px;
	color: var(--muted);
	margin: 10px 0 0;
	line-height: 1.5;
}

.bbf-pdp-notice {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 9px 12px;
	margin-bottom: 14px;
}

/* ---------- shop archive tweaks ---------- */
.post-type-archive-product #secondary,
.tax-product_cat #secondary,
.woocommerce-shop #secondary {
	display: none;
}

.post-type-archive-product .content-area,
.tax-product_cat .content-area,
.woocommerce-shop .content-area {
	width: 100%;
	float: none;
}

.woocommerce ul.products li.product .price {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 20px;
}

.woocommerce ul.products li.product .button {
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover {
	background: var(--accent);
}

/* ---------- archive cards: grid 等高 + 标题三行截断 + 按钮压底 ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
	display: none;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 12px 14px;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: #c9d3e0;
	box-shadow: 0 8px 22px rgba(11, 18, 32, 0.08);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
}

.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	margin: 0 0 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 500;
	color: #1d2939;
	height: calc(1.45em * 3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 0;
}

.woocommerce ul.products li.product .price {
	margin-top: auto;
	padding-top: 10px;
}

.woocommerce ul.products li.product .star-rating {
	display: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	width: 100%;
	margin-top: 10px;
	text-align: center;
	padding: 9px 10px;
}

.bbf-por {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (max-width: 1100px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12.5px; }
}

/* ---------- footer ---------- */
.site-footer {
	background: #080e19;
	border-top: 3px solid var(--accent);
	color: rgba(255, 255, 255, 0.6);
	padding: 0;
	font-size: 13px;
}

.site-footer .widget h3,
.site-footer .widget-title {
	color: #fff;
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.06em;
}

/* Storefront 的 .site-footer a:not(.button) / h3 规则更具体，必须提高优先级覆盖 */
.site-footer .widget h3,
.site-footer .widget-title,
.site-footer h3 {
	color: #fff !important;
	font-weight: 600;
}

.site-footer a,
.site-footer .widget a,
.site-footer a:not(.button) {
	color: rgba(255, 255, 255, 0.82) !important;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer .widget a:hover,
.site-footer a:not(.button):hover {
	color: var(--accent) !important;
	text-decoration: underline;
}

.site-footer .col-full {
	max-width: var(--wrap);
	padding: 46px 24px 30px;
}

.site-footer .site-info {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 18px 24px;
	text-align: left;
	max-width: var(--wrap);
	margin: 0 auto;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

/* ---------- generic page content ---------- */
.bbf-page__in {
	padding: 54px 24px 78px;
	max-width: 900px;
}

.bbf-page .entry-header {
	padding: 0 0 8px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 26px;
}

.bbf-page .entry-content {
	font-size: 15.5px;
	line-height: 1.7;
	color: #3c4a5e;
}

.bbf-page .entry-title {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: clamp(30px, 3.4vw, 44px);
	color: var(--ink);
}

.bbf-page .entry-content h2 {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 26px;
	color: var(--ink);
	margin-top: 34px;
}

.bbf-page .entry-content h3 {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 20px;
	color: var(--ink);
	margin-top: 26px;
}

.bbf-page .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0 26px;
	font-size: 14px;
}

.bbf-page .entry-content th {
	background: var(--ink);
	color: #fff;
	text-align: left;
	padding: 11px 14px;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bbf-page .entry-content td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
}

.bbf-page .entry-content ul {
	padding-left: 20px;
}

.bbf-page .entry-content li {
	margin-bottom: 7px;
}

.bbf-note {
	background: var(--soft);
	border-left: 3px solid var(--accent);
	padding: 16px 18px;
	font-size: 14px;
	margin: 22px 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.bbf-hero__in,
	.bbf-split,
	.bbf-faq,
	.bbf-cta__in {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.bbf-mosaic {
		height: 340px;
	}

	.bbf-hero__badge {
		left: auto;
		right: 12px;
		bottom: -16px;
	}

	.bbf-cats,
	.bbf-products {
		grid-template-columns: repeat(3, 1fr);
	}

	.bbf-rules,
	.bbf-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.bbf-grid--3 {
		grid-template-columns: 1fr;
	}

	.bbf-cost,
	.bbf-tiers {
		grid-template-columns: 1fr;
	}

	.bbf-cost__head {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
}

@media (max-width: 720px) {
	.bbf-sec {
		padding: 54px 0;
	}

	.bbf-wrap {
		padding: 0 18px;
	}

	.bbf-util__list {
		display: none;
	}

	.bbf-cats,
	.bbf-products {
		grid-template-columns: repeat(2, 1fr);
	}

	.bbf-rules,
	.bbf-steps,
	.bbf-strip__in {
		grid-template-columns: 1fr;
	}

	.bbf-strip__item {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		padding: 16px 8px;
	}

	.bbf-hero {
		padding: 46px 0 54px;
	}

	.bbf-mosaic {
		height: 260px;
		grid-template-columns: 1fr 1fr;
	}

	.bbf-mosaic__item--1 {
		grid-row: span 1;
	}

	.bbf-form__grid {
		grid-template-columns: 1fr;
	}

	.bbf-sec__head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.bbf-cat__name {
		font-size: 15px;
	}
}

/* ---------- AI assistant widget ---------- */
.bbf-chat {
	position: fixed;
	right: 22px;
	/* env() keeps the button clear of the iPhone home indicator and the
	   Android gesture bar. Without it the button sits under the system UI
	   and cannot be tapped at all. */
	bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	font-family: var(--font-body);
}

.bbf-chat__fab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 14px 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(255, 106, 19, 0.34);
	transition: transform 0.15s ease, background 0.15s ease;
}

.bbf-chat__fab:hover {
	background: var(--accent-dark);
	transform: translateY(-1px);
}

.bbf-chat__fab-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.bbf-chat.is-open .bbf-chat__fab {
	display: none;
}

.bbf-chat.is-back .bbf-chat__fab {
	animation: bbf-fab-nudge 0.55s ease-out 2;
}

@keyframes bbf-fab-nudge {
	50% {
		transform: translateY(-3px) scale(1.04);
	}
}

.bbf-chat__panel {
	width: 358px;
	max-width: calc(100vw - 28px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	box-shadow: 0 26px 64px rgba(11, 18, 32, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bbf-chat__head {
	background: var(--ink);
	color: #fff;
	padding: 13px 16px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 3px solid var(--accent);
}

.bbf-chat__head strong {
	display: block;
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.05em;
	line-height: 1.1;
}

.bbf-chat__head span {
	display: block;
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.06em;
	margin-top: 3px;
}

.bbf-chat__close {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.82);
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	padding: 7px 11px 7px 9px;
}

.bbf-chat__close svg {
	display: block;
}

.bbf-chat__close:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.bbf-chat__fab-t {
	white-space: nowrap;
}

.bbf-chat__log {
	padding: 14px;
	background: #fbfcfd;
	/* 330px was two replies and a scrollbar. The panel is a conversation,
	   not a toast: give it room on a desktop screen without letting it run
	   past the fold. */
	max-height: min(46vh, 460px);
	min-height: 150px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.bbf-chat__msg {
	font-size: 13px;
	line-height: 1.55;
	padding: 10px 12px;
	border-radius: 4px;
	max-width: 90%;
	white-space: pre-wrap;
}

.bbf-chat__msg--bot {
	background: #fff;
	border: 1px solid var(--line);
	color: #26313f;
	align-self: flex-start;
}

.bbf-chat__msg--user {
	background: var(--ink);
	color: #fff;
	align-self: flex-end;
}

.bbf-chat__typing i {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #9aa7b8;
	margin-right: 4px;
	animation: bbf-blink 1.1s infinite;
}

.bbf-chat__typing i:nth-child(2) {
	animation-delay: 0.15s;
}

.bbf-chat__typing i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes bbf-blink {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 1; }
}

/* Three-term summary under the greeting. Left rule instead of bullets: this
   is a document, not a marketing list. */
.bbf-chat__facts {
	list-style: none;
	margin: 2px 0 0 2px;
	padding: 0;
	display: grid;
	gap: 7px;
	max-width: 94%;
}

.bbf-chat__facts li {
	position: relative;
	padding-left: 11px;
	font-size: 12px;
	line-height: 1.45;
	color: #5b6a7d;
}

.bbf-chat__facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	bottom: 5px;
	width: 2px;
	background: var(--accent);
	opacity: 0.55;
}

.bbf-chat__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 12px;
	border-top: 1px solid var(--line);
	background: #fff;
}

.bbf-chat__quick button {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	color: #3c4a5e;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 6px 9px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.bbf-chat__quick button:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.bbf-chat__form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--line);
	background: #fff;
}

.bbf-chat__form input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 12px 12px;
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--ink);
}

.bbf-chat__form input:focus {
	outline: none;
	border-color: var(--accent);
}

.bbf-chat__form button {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 0 16px;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.bbf-chat__form button:hover {
	background: var(--accent-dark);
}

/* ---------- hold to talk ---------- */

/* Specificity matters here: `.bbf-chat__form button` above already paints a
   button orange, and a bare `.bbf-chat__mic` rule loses to it. */
.bbf-chat__form button.bbf-chat__mic {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	padding: 0 10px;
	/* Without these, a long press on iOS turns into text selection or the
	   callout menu and the pointerup never arrives — the mic stays open. */
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.bbf-chat__form button.bbf-chat__mic:hover {
	background: #fff;
	border-color: var(--accent);
	color: var(--accent);
}

.bbf-chat__form button.bbf-chat__mic.is-hot,
.bbf-chat__form button.bbf-chat__mic.is-hot:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	animation: bbf-mic 1.4s infinite;
}

@keyframes bbf-mic {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0.5); }
	50% { box-shadow: 0 0 0 6px rgba(255, 106, 19, 0); }
}

.bbf-chat__form button.bbf-chat__mic.is-cancel,
.bbf-chat__form button.bbf-chat__mic.is-cancel:hover {
	background: #b8341c;
	border-color: #b8341c;
	color: #fff;
	animation: none;
}

/* While recording the text box and Send step aside: the next action is letting
   go, and a half-typed question sitting next to a live microphone reads as a
   choice the buyer has to make mid-sentence. */
.bbf-chat__form.is-rec input,
.bbf-chat__form.is-rec .bbf-chat__cam,
.bbf-chat__form.is-rec button[type="submit"] {
	display: none;
}

.bbf-chat__form.is-rec .bbf-chat__mic {
	flex: 1;
}

.bbf-chat__rec {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	background: #fff6f1;
	border-top: 1px solid #ffd9c7;
	font-size: 11.5px;
	color: #7a3a1c;
}

.bbf-chat__rec[hidden] {
	display: none;
}

.bbf-chat__rec-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e23c1c;
	flex: 0 0 auto;
	animation: bbf-rec 1s infinite;
}

@keyframes bbf-rec {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.bbf-chat__rec-time {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: #b8341c;
	flex: 0 0 auto;
}

.bbf-chat__rec-bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 20px;
	flex: 0 0 auto;
}

.bbf-chat__rec-bars i {
	width: 3px;
	height: 18%;
	background: #ff8a5c;
	border-radius: 1px;
	transition: height 0.09s linear;
}

.bbf-chat__rec-hint {
	flex: 1 1 auto;
	text-align: right;
	opacity: 0.75;
}

/* ---------- the voice bubble ---------- */

.bbf-chat__msg--voice {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	padding: 8px 11px 9px;
}

.bbf-chat__voice-play {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	/* 26px and a 9px glyph read as "nothing happened" to a thumb. Nothing here
	   is decoration: this is the only control that can stop playback. */
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.bbf-chat__voice-play:hover {
	background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 767px) {
	.bbf-chat__voice-play {
		width: 40px;
		height: 40px;
		font-size: 12px;
	}
}

.bbf-chat__voice-play[disabled] {
	opacity: 0.45;
	cursor: default;
}

.bbf-chat__wave {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 22px;
	flex: 0 0 auto;
}

.bbf-chat__wave i {
	width: 3px;
	min-height: 3px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 1px;
	transition: background 0.15s ease;
}

.bbf-chat__msg--voice.is-playing .bbf-chat__wave i {
	background: #ffb894;
}

.bbf-chat__voice-dur {
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	opacity: 0.8;
	flex: 0 0 auto;
}

/* What was heard, not what they must edit: muted, small, and it never becomes
   an input. A wrong transcription gets corrected in the next sentence, which
   is cheaper than asking the buyer to proofread before sending. */
.bbf-chat__voice-cap {
	flex: 1 1 100%;
	font-style: normal;
	font-size: 11.5px;
	line-height: 1.45;
	margin-top: 1px;
	color: rgba(255, 255, 255, 0.72);
}

.bbf-chat__voice-cap.is-miss {
	color: #ffc7b6;
}

.bbf-chat__note {
	margin: 0;
	padding: 0 12px 11px;
	font-size: 10.5px;
	color: var(--muted);
	background: #fff;
}

@media (max-width: 767px) {
	.site-header > .col-full {
		flex-wrap: wrap;
		padding: 12px 16px 10px;
		gap: 10px;
	}

	.site-search {
		flex: 1 1 100%;
		width: 100%;
		margin-left: 0;
		order: 3;
	}

	.storefront-primary-navigation .col-full {
		padding: 6px 16px 12px;
		flex-wrap: nowrap;
		align-items: center;
		gap: 10px;
	}

	.primary-navigation {
		display: none;
	}

	.site-search {
		display: none;
	}

	.main-navigation {
		width: auto;
		flex: 0 0 auto;
	}

	.main-navigation button.menu-toggle {
		display: inline-block;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, 0.25);
		color: #fff;
		padding: 9px 14px;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		border-radius: 2px;
	}

	.handheld-navigation ul.menu li a {
		color: #fff;
	}

	.bbf-util__in {
		padding: 7px 16px;
		gap: 10px;
	}

	.bbf-header-cta-wrap {
		margin-left: auto;
	}

	.bbf-hero__points {
		gap: 14px;
	}

	.bbf-order {
		padding: 20px 18px 18px;
	}

	.bbf-order__total strong {
		font-size: 34px;
	}

	.bbf-tierscale div {
		font-size: 9.5px;
	}

	.bbf-cats {
		grid-template-columns: repeat(2, 1fr);
	}

	.bbf-products {
		grid-template-columns: repeat(2, 1fr);
	}

	.bbf-pcard__title {
		font-size: 12.5px;
		min-height: 34px;
	}
}

@media (max-width: 720px) {
	.bbf-chat {
		right: 12px;
		/* 12px put the button under the browser's own bottom bar on both iOS
		   Safari and Chrome Android, so taps landed on the toolbar instead.
		   30px plus the safe area clears the home indicator and the tab bar. */
		bottom: calc(30px + env(safe-area-inset-bottom, 0px));
		left: 12px;
	}

	.bbf-chat__fab {
		margin-left: auto;
		display: flex;
		margin-bottom: 0;
	}

	/* Phone: the panel is the screen, not a floating card.
	   A 78vh card left the page showing behind it, and because the log had no
	   flex sizing the conversation grew until the quick chips and the composer
	   were pushed out of the clipped panel — the buyer could type four
	   sentences and then lose the text box. Full height, log scrolls on its
	   own, composer stays pinned to the bottom. */
	/* All four edges, always. Shrinking the panel to visualViewport.height
	   while the keyboard was up looked right in a desktop browser and fell
	   apart on a real iPhone: the panel became a half-height box pinned at the
	   top, the site showed underneath it, and the page behind could still be
	   scrolled. The panel now always covers the screen; the keyboard is
	   reserved with padding-bottom from syncViewport(), so a bad measurement
	   can only nudge the composer, never expose the page behind. */
	.bbf-chat__panel {
		position: fixed;
		inset: 0;
		width: auto;
		max-width: none;
		height: auto;
		max-height: none;
		box-sizing: border-box;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		overscroll-behavior: contain;
	}

	/* Typing mode: chips and fine print are the first things to go. They are
	   what pushed the composer under the keys. */
	.bbf-chat.is-kb .bbf-chat__quick,
	.bbf-chat.is-kb .bbf-chat__note {
		display: none;
	}

	.bbf-chat__head {
		padding-top: calc(13px + env(safe-area-inset-top, 0px));
	}

	/* On a full screen panel this is the only way out, so it gets a thumb
	   sized target instead of a 22px glyph with 2px of padding. */
	.bbf-chat__close {
		/* Was a 40px hit box for a 26px glyph. It is a labelled pill now, so
		   it keeps its own size and only needs a comfortable touch target. */
		min-height: 32px;
		margin: -6px -2px 0 0;
		font-size: 11px;
	}

	.bbf-chat__log {
		flex: 1 1 auto;
		min-height: 0;
		max-height: none;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	/* Only the log may give up height. Without this the chips, the composer
	   and the fine print all shrink together once the thread gets long, and
	   the chips end up sliced in half at the bottom edge. */
	.bbf-chat__head,
	.bbf-chat__quick,
	.bbf-chat__form,
	.bbf-chat__rec,
	.bbf-chat__note,
	.bbf-chat__privacy,
	.bbf-chat__resume,
	.bbf-chat__preview {
		flex: 0 0 auto;
	}

	/* overflow:hidden alone is ignored by iOS Safari — it scrolls the page
	   behind the panel anyway. Pinning the body is the only thing it obeys;
	   chat.js remembers the scroll position and puts it back on close. */
	body.bbf-chat-open {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		overflow: hidden;
	}

	.bbf-chat__note {
		font-size: 11px;
		line-height: 1.45;
	}

	.bbf-chat__privacy {
		font-size: 11px;
		line-height: 1.5;
	}

	/* Ten chips wrapped onto three rows cost 130px of a 844px screen and pushed
	   the composer down for options nobody asked to see. One scrolling row. */
	.bbf-chat__quick {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.bbf-chat__quick::-webkit-scrollbar {
		display: none;
	}

	.bbf-chat__quick button {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	/* Under 16px iOS zooms the page when the field is focused, which leaves the
	   panel scrolled sideways and the send button off screen. */
	.bbf-chat__form input {
		font-size: 16px;
	}

	.bbf-chat__note {
		padding-bottom: 6px;
	}

	.bbf-chat__privacy {
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	}
}

/* ---------- fixes: no sidebar, sane product title, hidden chat panel ---------- */
.single-product #secondary,
.woocommerce-cart #secondary,
.woocommerce-checkout #secondary,
.woocommerce-account #secondary {
	display: none;
}

.single-product .content-area,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area {
	width: 100%;
	float: none;
}

.single-product .product_title,
.woocommerce div.product .product_title {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin-bottom: 14px;
}

/* ---------- single product: two-column grid, gallery no longer depends on flexslider ---------- */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}

.single-product div.product::before,
.single-product div.product::after {
	content: none;
	display: none;
}

.single-product div.product .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	opacity: 1 !important;
}

.single-product div.product .woocommerce-product-gallery__wrapper {
	display: flex !important;
	width: 100% !important;
	height: auto !important;
	transform: none !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
}

.single-product div.product .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
	display: none;
}

.single-product div.product .woocommerce-product-gallery__wrapper > div {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	scroll-snap-align: start;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.single-product div.product .woocommerce-product-gallery__wrapper img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	padding: 18px;
}

.single-product div.product .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	width: 100% !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.single-product div.product .flex-control-thumbs li {
	flex: 0 0 calc(20% - 7px) !important;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.single-product div.product .flex-control-thumbs img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 4px;
	cursor: pointer;
}

.single-product div.product .flex-control-thumbs img.flex-active {
	border-color: var(--accent);
}

.single-product div.product .summary.entry-summary {
	grid-column: 2;
	grid-row: 1 / span 2;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells {
	grid-column: 1 / -1;
	float: none !important;
	width: 100% !important;
}

/* Storefront's fixed prev/next product nav leaks half a thumbnail at both screen edges */
.storefront-product-pagination {
	display: none !important;
}

/* Trade terms card under the gallery */
.bbf-terms {
	grid-column: 1;
	grid-row: 2;
	align-self: start;
	margin-top: 22px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 18px 20px;
}

.bbf-terms__title {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--ink);
}

.bbf-terms__list {
	margin: 0;
	padding: 0;
}

.bbf-terms__list > div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 12.5px;
	line-height: 1.45;
}

.bbf-terms__list > div:last-child {
	border-bottom: 0;
}

.bbf-terms__list dt {
	color: #64707f;
	margin: 0;
}

.bbf-terms__list dd {
	margin: 0;
	font-weight: 600;
	color: var(--ink);
	text-align: right;
}

.bbf-terms__link {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}

.bbf-terms__link:hover {
	text-decoration: underline;
}

/* Supplier description images: never overflow, never break the lightbox */
.single-product .woocommerce-Tabs-panel--description img,
.single-product .woocommerce-product-details__short-description img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .bbf-terms,
	.single-product div.product .summary.entry-summary {
		grid-column: 1;
		grid-row: auto;
	}
}

.bbf-chat__panel[hidden] {
	display: none !important;
}

/* Storefront's default page title on archives */
.woocommerce-products-header__title,
.page-title {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

/* ==========================================================================
   Inquiry list (RFQ) — cart repurposed as a quote basket
   ========================================================================== */

.bbf-rfq-banner {
	background: #f0f7ff;
	border-left: 4px solid var(--accent);
	padding: 14px 18px;
	margin: 0 0 26px;
	font-size: 14px;
	line-height: 1.6;
	color: #1d2939;
}

/* No coupons, no shipping calculator, no cross-sells on a quote basket. */
.woocommerce-cart .coupon,
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .shipping-calculator-button,
.woocommerce-cart .cart-collaterals .shipping-calculator-form,
.woocommerce-cart .woocommerce-shipping-totals {
	display: none !important;
}

.woocommerce-cart .cart_totals h2 {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 0.06em;
}

.bbf-rfq {
	background: #fff;
	border-top: 3px solid var(--accent);
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
	padding: 32px 30px 26px;
	margin: 34px 0 10px;
}

.bbf-rfq__title {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 10px;
	color: var(--ink);
}

.bbf-rfq__sub {
	font-size: 14px;
	line-height: 1.65;
	color: var(--muted);
	margin: 0 0 22px;
	max-width: 62ch;
}

.bbf-rfq__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.bbf-rfq label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.bbf-rfq label em {
	color: #d92d20;
	font-style: normal;
}

.bbf-rfq input[type="text"],
.bbf-rfq input[type="email"],
.bbf-rfq select,
.bbf-rfq textarea {
	width: 100%;
	margin-top: 6px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--ink);
	background: #fcfdfe;
	box-sizing: border-box;
}

.bbf-rfq input:focus,
.bbf-rfq select:focus,
.bbf-rfq textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: #fff;
}

.bbf-rfq__full {
	display: block;
	margin-bottom: 18px;
}

.bbf-rfq__foot {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.bbf-btn--lg {
	padding: 15px 30px;
	font-size: 13.5px;
	letter-spacing: 0.08em;
}

.bbf-rfq__pay {
	background: none;
	border: 0;
	padding: 0;
	color: var(--muted);
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
	font-family: var(--font-body);
}

.bbf-rfq__pay:hover {
	color: var(--accent);
}

.bbf-rfq__hint {
	font-size: 11.5px;
	color: var(--muted);
	margin: 16px 0 0;
}

.bbf-rfq-done {
	background: #ecfdf3;
	border-left: 4px solid #12b76a;
	padding: 26px 28px;
	margin: 34px 0 10px;
}

.bbf-rfq-done h3 {
	margin: 0 0 12px;
	font-family: var(--font-head);
	font-size: 19px;
	text-transform: uppercase;
	color: #05603a;
}

.bbf-rfq-done p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: #1d2939;
}

/* Admin: line items inside the inquiry table */
.bbf-lines {
	margin: 6px 0 0;
	border-collapse: collapse;
	font-size: 12px;
}

.bbf-lines td {
	padding: 2px 10px 2px 0;
	border: 0;
	vertical-align: top;
}

@media (max-width: 767px) {
	.bbf-rfq {
		padding: 24px 18px 20px;
	}

	.bbf-rfq__grid {
		grid-template-columns: 1fr;
	}

	.bbf-rfq__foot {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.bbf-rfq__pay {
		text-align: center;
	}

	/* Storefront pins a handheld bar to the bottom on mobile; without this the
	   last block of every page (footer, form buttons) sits underneath it. */
	.site-footer {
		padding-bottom: 76px;
	}
}

/* ==========================================================================
   Chat widget — product cards + hand-off bar
   ========================================================================== */

.bbf-chat__cards {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 10px 0 2px;
}

.bbf-chat__card {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 7px 8px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bbf-chat__card:hover {
	border-color: var(--accent);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
}

.bbf-chat__card img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	background: #f2f4f7;
}

.bbf-chat__card div {
	min-width: 0;
	flex: 1 1 auto;
}

.bbf-chat__card strong {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--ink);
}

.bbf-chat__card span {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	color: var(--muted);
}

.bbf-chat__handoff {
	margin: 10px 0 2px;
	padding: 11px 13px;
	background: #fff8f0;
	border-left: 3px solid var(--accent);
	border-radius: 4px;
}

.bbf-chat__handoff p {
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink);
}

.bbf-chat__handoff-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.bbf-chat__handoff-btn {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid var(--accent);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--accent);
	text-decoration: none !important;
	background: #fff;
	transition: background 0.15s ease, color 0.15s ease;
}

.bbf-chat__handoff-btn:hover {
	background: var(--accent);
	color: #fff;
}

.bbf-chat__handoff-btn--wa {
	border-color: #25d366;
	color: #128c4a;
}

.bbf-chat__handoff-btn--wa:hover {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}


/* ==========================================================================
   "Most requested" ranking block
   ========================================================================== */

.bbf-pcard--rank .bbf-pcard__media {
	position: relative;
}

.bbf-rank {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ink);
	color: #fff;
	font-family: var(--font-head);
	font-size: 13px;
	line-height: 1;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.bbf-pcard--rank:nth-child(1) .bbf-rank {
	background: var(--accent);
}

.bbf-pcard--rank:nth-child(2) .bbf-rank,
.bbf-pcard--rank:nth-child(3) .bbf-rank {
	background: #475467;
}

.bbf-hot__hits {
	display: block;
	margin: 4px 0 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Rank badge and MOQ pill both default to the top-left corner; move the pill
   out of the way only in the ranking block. */
.bbf-pcard--rank .bbf-pcard__moq {
	left: auto;
	right: 8px;
	top: 8px;
}

/* ==========================================================================
   Demand capture — "source it for me" form
   ========================================================================== */

.bbf-req {
	max-width: 900px;
	margin: 0 auto;
	padding: 36px 32px 28px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

/* Compact variant lives inside a homepage section: no card chrome, and it must
   align with the left-aligned section heading instead of centring itself. */
.bbf-req--compact {
	max-width: none;
	margin: 26px 0 0;
	border: 0;
	padding: 0;
}

.bbf-req__title {
	margin: 0 0 10px;
	font-family: var(--font-head);
	font-size: 30px;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.bbf-req__lede {
	margin: 0 0 22px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
	max-width: 68ch;
}

.bbf-req__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

.bbf-req__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.bbf-req__field--wide {
	grid-column: 1 / -1;
}

.bbf-req__field > span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.bbf-req__field input,
.bbf-req__field select,
.bbf-req__field textarea {
	width: 100%;
	padding: 11px 12px;
	font-family: var(--font-body);
	font-size: 15px;
	color: #1d2939;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-sizing: border-box;
}

.bbf-req__field input:focus,
.bbf-req__field select:focus,
.bbf-req__field textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: -1px;
	border-color: var(--accent);
}

.bbf-req__field textarea {
	resize: vertical;
	min-height: 84px;
}

.bbf-req__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bbf-req__wishes {
	grid-column: 1 / -1;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--soft);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 20px;
}

.bbf-req__wishes legend {
	padding: 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.bbf-req__wish {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}

.bbf-req__wish input {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex: 0 0 auto;
	accent-color: var(--accent);
}

.bbf-req__foot {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.bbf-req__privacy {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
	max-width: 48ch;
}

.bbf-req__wall {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.bbf-req__wall-title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.bbf-req__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bbf-req__chip {
	padding: 6px 11px;
	font-size: 13px;
	color: var(--ink);
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.bbf-req-note {
	max-width: 900px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	font-size: 14px;
	border-radius: var(--radius);
}

.bbf-req-note--warn {
	background: #fff5ed;
	border: 1px solid #ffcfae;
	color: #9a3d00;
}

.bbf-req-done {
	max-width: 900px;
	margin: 0 auto;
	padding: 30px 28px;
	background: #f2fbf5;
	border: 1px solid #b7e3c6;
	border-radius: var(--radius);
}

.bbf-req-done h3 {
	margin: 0 0 10px;
	font-family: var(--font-head);
	font-size: 24px;
	text-transform: uppercase;
}

.bbf-req-done p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.6;
	color: #27503a;
}

.bbf-req-done__match {
	margin: 18px 0;
	padding-top: 14px;
	border-top: 1px solid #cfe9d8;
}

.bbf-req-done__cards {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bbf-req-done__card {
	width: 128px;
	text-decoration: none;
	color: #1d2939;
}

.bbf-req-done__card img {
	width: 128px;
	height: 128px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: block;
	margin-bottom: 6px;
}

.bbf-req-done__card span {
	display: block;
	font-size: 12px;
	line-height: 1.35;
}

/* Chat: "ask us to source it" button */
.bbf-chat__cta {
	display: inline-block;
	margin: 8px 0 4px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: var(--accent);
	border-radius: var(--radius);
}

.bbf-chat__cta:hover {
	background: var(--accent-dark);
	color: #fff;
}

/* Admin widgets */
.bbf-kpi {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 22px;
	max-width: 1100px;
}

.bbf-kpi__box {
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-left: 3px solid #2271b1;
	border-radius: 3px;
}

.bbf-kpi__n {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.bbf-kpi__l {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
}

.bbf-kpi__h {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #646970;
}

.bbf-admin-muted {
	color: #646970;
	font-size: 12px;
}

.bbf-admin-tag {
	display: inline-block;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 600;
	background: #f0f0f1;
	border-radius: 3px;
	white-space: nowrap;
}

.bbf-admin-tag--hot {
	background: #fcf0e6;
	color: #9a3d00;
}

.bbf-admin-tag--ok {
	background: #edfaef;
	color: #1a6b2f;
}

.bbf-admin-filters {
	margin: 10px 0 12px;
}

@media (max-width: 767px) {
	.bbf-req {
		padding: 24px 18px 20px;
	}

	.bbf-req__form,
	.bbf-req__wishes {
		grid-template-columns: 1fr;
	}

	.bbf-req__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.bbf-kpi {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Chat — photo input

   A buyer photographing a competitor's shelf cannot type a product name they
   do not know. The camera lives inside the composer so the two ways of asking
   (type / shoot) sit in the same place.
   ========================================================================== */

.bbf-chat__cam {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	border: 1px solid var(--line);
	border-radius: 3px;
	color: #5a6b84;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.bbf-chat__cam:hover,
.bbf-chat__cam:focus-within {
	border-color: var(--accent);
	color: var(--accent);
}

.bbf-chat__cam svg {
	display: block;
}

.bbf-chat__preview {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-top: 1px solid var(--line);
	background: #f7f9fc;
}

.bbf-chat__preview[hidden] {
	display: none;
}

.bbf-chat__preview img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: 2px;
	flex: 0 0 auto;
}

.bbf-chat__preview em {
	font-style: normal;
	font-size: 11px;
	line-height: 1.4;
	color: var(--muted);
}

.bbf-chat__preview-x {
	margin-left: auto;
	padding: 0 4px;
	font-size: 18px;
	line-height: 1;
	color: #8a99ad;
	cursor: pointer;
}

.bbf-chat__preview-x:hover {
	color: var(--accent);
}

.bbf-chat__msg--pic {
	padding: 6px 6px 8px;
	line-height: 1.45;
}

.bbf-chat__msg--pic img {
	display: block;
	max-width: 190px;
	width: 100%;
	border-radius: 2px;
	margin-bottom: 5px;
}

.bbf-chat__seen {
	align-self: flex-start;
	font-size: 11px;
	color: #5a6b84;
	background: #f1f5f9;
	border: 1px dashed #cbd5e1;
	border-radius: 3px;
	padding: 5px 9px;
}

.bbf-chat__seen em {
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 9.5px;
	color: #8a99ad;
}

.bbf-chat__seen strong {
	color: var(--ink);
}

/* Chat header actions — "New" sits left of the close button. */
.bbf-chat__acts {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.bbf-chat__clear {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 2px;
	cursor: pointer;
	line-height: 1.2;
}

.bbf-chat__clear:hover {
	background: var(--accent);
	border-color: var(--accent);
}

/* 客服回复转语音：只在点的时候合成，所以做得低调一点，不抢正文 */
.bbf-chat__speak {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	padding: 5px 11px;
	font-size: 11.5px;
	line-height: 1.4;
	color: #5b6a7d;
	background: #f2f5f9;
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
	-webkit-tap-highlight-color: transparent;
}

.bbf-chat__speak:hover {
	background: #e8eef6;
	color: #26313f;
}

.bbf-chat__speak.is-playing {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

.bbf-chat__speak:disabled {
	opacity: .55;
	cursor: default;
}

/* 录音取消按钮与点按模式（2026-11-18：安卓长按不可靠，给一个能点的出口） */
.bbf-chat__rec-x {
	margin-left: 8px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	border-radius: 999px;
	padding: 2px 9px;
	font: inherit;
	font-size: 11px;
	cursor: pointer;
	flex: 0 0 auto;
}

.bbf-chat__mic.is-tap {
	background: rgba(255, 106, 19, 0.16) !important;
	border-color: var(--accent) !important;
	color: var(--accent) !important;
	animation: bbf-mic 1.2s infinite;
}
