/* BoldQuote – frontend styles. Theme-friendly: inherits fonts, uses one accent variable. */
:root {
	--bq-accent: #1f6feb;
	--bq-ink: #0f172a;
	--bq-muted: #64748b;
	--bq-line: #e2e8f0;
	--bq-soft: #f8fafc;
	--bq-ok: #15803d;
	--bq-warn: #b45309;
	--bq-bad: #b91c1c;
	--bq-radius: 12px;
	--bq-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

/* Quote-only products: hide Add to Cart but keep qty + variation pickers (server also blocks it). */
.bq-quote-only .single_add_to_cart_button,
.bq-quote-only .add_to_cart_button { display: none !important; }

/* ------------------------------------------------------------ button */
/*
 * Every look is driven by CSS variables. Settings write --bq-btn-* overrides;
 * presets only provide fallbacks, so any colour/size the admin sets always wins.
 * Selector specificity beats `.woocommerce button.button` and theme button styles.
 */
html body .bq-btn.bq-btn {
	--_bg: var(--bq-btn-bg, var(--bq-accent));
	--_fg: var(--bq-btn-fg, #fff);
	--_bd: var(--bq-btn-bd, var(--_bg));
	--_hbg: var(--bq-btn-hbg, color-mix(in srgb, var(--bq-accent) 84%, #000));
	--_hfg: var(--bq-btn-hfg, var(--_fg));
	--_hbd: var(--bq-btn-hbg, var(--_hbg));
	--_radius: var(--bq-btn-radius, 8px);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	box-sizing: border-box; margin: 0; cursor: pointer; text-decoration: none; text-align: center;
	min-height: 0; width: auto; max-width: 100%; vertical-align: middle;
	background: var(--_bg); color: var(--_fg);
	border: var(--bq-btn-bw, 2px) solid var(--_bd); border-radius: var(--_radius);
	padding: var(--bq-btn-py, 12px) var(--bq-btn-px, 22px);
	font-family: var(--bq-btn-font, inherit); font-size: var(--bq-btn-size, 15px); font-weight: var(--bq-btn-weight, 600);
	line-height: 1.2; letter-spacing: var(--bq-btn-ls, 0); text-transform: var(--bq-btn-transform, none);
	box-shadow: var(--_shadow, none);
	transition: background-color .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s, filter .15s;
}
html body .bq-btn.bq-btn:hover { background: var(--_hbg); color: var(--_hfg); border-color: var(--_hbd); }
html body .bq-btn.bq-btn:active { transform: translateY(1px); }
html body .bq-btn.bq-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--bq-accent) 45%, transparent); outline-offset: 2px; }
.bq-btn__icon { flex: none; }
.bq-btn__label { white-space: nowrap; }

/* Presets */
html body .bq-btn--outline.bq-btn { --_bg: var(--bq-btn-bg, transparent); --_fg: var(--bq-btn-fg, var(--bq-accent)); --_bd: var(--bq-btn-bd, var(--bq-accent)); --_hbg: var(--bq-btn-hbg, var(--bq-accent)); --_hfg: var(--bq-btn-hfg, #fff); }
html body .bq-btn--soft.bq-btn { --_bg: var(--bq-btn-bg, color-mix(in srgb, var(--bq-accent) 13%, #fff)); --_fg: var(--bq-btn-fg, color-mix(in srgb, var(--bq-accent) 85%, #000)); --_bd: var(--bq-btn-bd, transparent); --_hbg: var(--bq-btn-hbg, color-mix(in srgb, var(--bq-accent) 22%, #fff)); --_hbd: var(--bq-btn-hbg, transparent); }
html body .bq-btn--pill.bq-btn { --_radius: 999px; }
html body .bq-btn--gradient.bq-btn { --_bd: var(--bq-btn-bd, transparent); --_hbd: transparent; background: var(--bq-btn-bg, linear-gradient(135deg, var(--bq-accent), var(--bq-btn-grad, #7c3aed))); }
html body .bq-btn--gradient.bq-btn:hover { background: var(--bq-btn-hbg, linear-gradient(135deg, var(--bq-accent), var(--bq-btn-grad, #7c3aed))); filter: brightness(1.08) saturate(1.1); }
html body .bq-btn--dark.bq-btn { --_bg: var(--bq-btn-bg, #111827); --_fg: var(--bq-btn-fg, #fff); --_bd: var(--bq-btn-bd, #111827); --_hbg: var(--bq-btn-hbg, var(--bq-accent)); }
html body .bq-btn--lift.bq-btn { --_bd: var(--bq-btn-bd, transparent); --_hbd: transparent; --_shadow: 0 4px 0 color-mix(in srgb, var(--bq-accent) 60%, #000); }
html body .bq-btn--lift.bq-btn:hover { transform: translateY(-2px); --_shadow: 0 6px 0 color-mix(in srgb, var(--bq-accent) 60%, #000); }
html body .bq-btn--lift.bq-btn:active { transform: translateY(3px); --_shadow: 0 1px 0 color-mix(in srgb, var(--bq-accent) 60%, #000); }
html body .bq-btn--link.bq-btn { --_bg: transparent; --_bd: transparent; --_fg: var(--bq-btn-fg, var(--bq-accent)); --_hbg: transparent; --_hbd: transparent; --_hfg: var(--bq-btn-hfg, color-mix(in srgb, var(--bq-accent) 75%, #000)); padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 3px; }
html body .bq-btn--icon.bq-btn { --_radius: 999px; width: 2.9em; height: 2.9em; padding: 0; }
html body .bq-btn--icon.bq-btn .bq-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body .bq-btn--icon.bq-btn .bq-btn__icon { width: 1.35em; height: 1.35em; }

/* Modifiers */
html body .bq-btn--full.bq-btn { display: flex; width: 100%; }
html body .bq-btn--compact.bq-btn { font-size: calc(var(--bq-btn-size, 15px) * .9); padding: calc(var(--bq-btn-py, 12px) * .7) calc(var(--bq-btn-px, 22px) * .7); }
html body .bq-btn--shadow-sm.bq-btn { --_shadow: 0 1px 2px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.08); }
html body .bq-btn--shadow-md.bq-btn { --_shadow: 0 4px 14px color-mix(in srgb, var(--bq-accent) 30%, transparent); }
html body .bq-btn--shadow-lg.bq-btn { --_shadow: 0 10px 28px color-mix(in srgb, var(--bq-accent) 40%, transparent); }
.bq-btn.is-added { --_bg: var(--bq-ok-bg, #15803d); --_bd: #15803d; --_fg: #fff; }

/* Placement wrappers */
/* Inside the add-to-cart form (flex or grid depending on theme) */
html body form.cart .bq-add--single.bq-btn:not(.bq-btn--full) { display: inline-flex; width: auto; justify-self: start; align-self: center; flex: 0 0 auto; margin: 0 0 0 .5em; }
html body form.cart .bq-btn--full.bq-add--single.bq-btn { flex: 1 0 100%; grid-column: 1 / -1; justify-self: stretch; width: 100%; margin: .75em 0 0; }
.bq-pos { margin: .6em 0; }
.bq-pos--before-cart { flex: 1 0 100%; margin: 0 0 .75em; }
.bq-quote-only form.cart .quantity { order: 1; }
.bq-quote-only form.cart .bq-add--single { order: 2; margin: 0 0 0 .5em; }
.bq-pos--image { position: absolute; top: 12px; left: 12px; z-index: 5; margin: 0; } /* left: the WooCommerce zoom icon sits top-right */
.bq-has-quote-overlay { position: relative; }
.bq-loop-overlay { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0; z-index: 5; transition: opacity .2s, transform .2s; }
.bq-has-quote-overlay:hover .bq-loop-overlay, .bq-has-quote-overlay:focus-within .bq-loop-overlay { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .bq-loop-overlay { opacity: 1; transform: translate(-50%, 0); } }
.bq-pos--loop-title { margin: .35em 0; }
.bq-add--loop { margin-top: .5em; }
/* Block-theme product grids centre their content */
html body .wc-block-product .bq-add--loop.bq-btn, html body .wc-block-grid__product .bq-add--loop.bq-btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
html body .bq-loop-overlay .bq-add--loop.bq-btn { margin: 0; white-space: nowrap; }
.bq-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--bq-line); box-shadow: 0 -6px 20px rgba(15,23,42,.08); }
.bq-sticky__name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) { .bq-sticky { display: flex; } body.bq-has-sticky { padding-bottom: 72px; } body.bq-has-sticky .bq-badge { bottom: 84px; } }
.bq-badge--left { right: auto !important; left: 20px; }
@media (max-width: 600px) { .bq-badge--left { left: 14px; } }
.bq-fallback { margin: 1em 0; display: flex; gap: .6em; align-items: stretch; flex-wrap: wrap; }
.bq-fallback-qty { width: 5em; text-align: center; border: 1px solid #cbd5e1; border-radius: 8px; padding: .5em; font-size: 16px; }
.bq-fallback .bq-add--single { margin-left: 0; }
.bq-price-hidden { color: var(--bq-muted); font-weight: 500; }

/* ------------------------------------------------------- floating badge */
.bq-badge {
	position: fixed; right: 20px; bottom: 20px; z-index: 9990;
	display: inline-flex; align-items: center; gap: .55em;
	background: var(--bq-ink); color: #fff !important; text-decoration: none !important;
	padding: .75em 1em; border-radius: 999px; box-shadow: var(--bq-shadow); font-weight: 600; font-size: 15px;
}
.bq-badge[hidden] { display: none; }
.bq-badge__count { background: var(--bq-accent); border-radius: 999px; min-width: 1.6em; padding: 0 .45em; text-align: center; font-size: 13px; line-height: 1.6em; }
.bq-badge.is-bump { animation: bq-bump .35s ease; }
@keyframes bq-bump { 50% { transform: scale(1.08); } }
@media (max-width: 600px) { .bq-badge__label { display: none; } .bq-badge { right: 14px; bottom: 14px; } }

/* ------------------------------------------------------------- toast */
.bq-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 20px); opacity: 0;
	display: flex; align-items: center; gap: 1em; max-width: calc(100vw - 32px);
	background: var(--bq-ink); color: #fff; padding: .8em 1.1em; border-radius: 10px; box-shadow: var(--bq-shadow);
	transition: opacity .2s, transform .2s; font-size: 15px;
}
.bq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bq-toast__act { color: #fff !important; background: none; border: 0; font-weight: 700; text-decoration: underline !important; cursor: pointer; padding: 0; white-space: nowrap; }

/* ------------------------------------------------------------ list app */
.bq-app { color: var(--bq-ink); margin: 1.5em auto 3em; container-type: inline-size; container-name: bqapp; }
/* Break out of narrow block-theme content columns. */
.is-layout-constrained > .bq-app, .entry-content > .bq-app { max-width: var(--wp--style--global--wide-size, 1100px); width: 100%; }
.bq-steps { display: flex; gap: .5em; flex-wrap: wrap; margin-bottom: 1.25em; font-size: 14px; }
.bq-step { padding: .4em .85em; border-radius: 999px; background: var(--bq-soft); color: var(--bq-muted); border: 1px solid var(--bq-line); }
.bq-step.is-active { background: var(--bq-accent); color: #fff; border-color: var(--bq-accent); }
.bq-step.is-done { color: var(--bq-ok); border-color: currentColor; }

.bq-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bq-layout[hidden] { display: none; }
@container bqapp (max-width: 820px) { .bq-layout { grid-template-columns: 1fr; } .bq-form-wrap { position: static; } }
.bq-panel { background: #fff; border: 1px solid var(--bq-line); border-radius: var(--bq-radius); padding: 20px; box-shadow: var(--bq-shadow); }
.bq-form-wrap { position: sticky; top: 24px; }
.bq-app[data-state="empty"] .bq-form-wrap { opacity: .55; pointer-events: none; }
.bq-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; margin-bottom: 12px; }
.bq-panel h2 { font-size: 1.2em; margin: 0; }
.bq-panel__title { margin-bottom: 14px !important; }
.bq-count { display: inline-block; background: var(--bq-soft); border: 1px solid var(--bq-line); border-radius: 999px; padding: 0 .6em; font-size: .75em; vertical-align: middle; }
.bq-tools { display: flex; gap: 12px; }
.bq-link { background: none; border: 0; color: var(--bq-accent); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; padding: .3em 0; font-size: 14px; }
.bq-link--muted { color: var(--bq-muted); }
.bq-link:disabled { opacity: .6; cursor: wait; }
.bq-app[data-state="empty"] .bq-tools { display: none; }

.bq-skeleton { height: 88px; border-radius: 10px; margin-bottom: 10px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: bq-shine 1.2s infinite; }
@keyframes bq-shine { to { background-position: -200% 0; } }

.bq-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bq-line); }
.bq-item:first-child { border-top: 0; }
.bq-item__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; background: var(--bq-soft); }
.bq-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bq-item__name { font-weight: 600; color: var(--bq-ink) !important; text-decoration: none !important; overflow-wrap: anywhere; }
.bq-item__meta { color: var(--bq-muted); font-size: 13px; }
.bq-item__price { font-size: 14px; color: var(--bq-ink); }
.bq-item__rm { background: none; border: 0; color: var(--bq-muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.bq-item__rm:hover { color: var(--bq-bad); background: #fef2f2; }
@container bqapp (max-width: 520px) {
	.bq-item { grid-template-columns: 60px minmax(0, 1fr) auto; }
	.bq-item__img img { width: 60px; height: 60px; }
	.bq-qty { grid-column: 2; }
	.bq-item__rm { grid-row: 1; grid-column: 3; }
}

.bq-qty { display: inline-flex; border: 1px solid var(--bq-line); border-radius: 8px; overflow: hidden; height: 40px; }
.bq-qty__btn { width: 38px; background: var(--bq-soft); border: 0; font-size: 18px; cursor: pointer; color: var(--bq-ink); }
.bq-qty__btn:hover { background: #eef2f7; }
.bq-qty input { width: 56px; border: 0 !important; text-align: center; font-weight: 600; -moz-appearance: textfield; padding: 0 !important; margin: 0; box-shadow: none !important; }
.bq-qty input::-webkit-outer-spin-button, .bq-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bq-empty { text-align: center; padding: 36px 12px; }
.bq-empty__icon { font-size: 40px; }
.bq-empty h3 { margin: .4em 0 .2em; }
.bq-empty p { color: var(--bq-muted); margin-bottom: 1.2em; }

/* --------------------------------------------------------------- form */
.bq-field { margin-bottom: 14px; }
.bq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@container bqapp (max-width: 520px) { .bq-row { grid-template-columns: 1fr; } }
.bq-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.bq-field label small { color: var(--bq-muted); font-weight: 400; }
.bq-field input, .bq-field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: .7em .8em; font-size: 16px; background: #fff; color: var(--bq-ink);
}
.bq-field input:focus, .bq-field textarea:focus { border-color: var(--bq-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bq-accent) 20%, transparent); }
.bq-field [aria-invalid="true"] { border-color: var(--bq-bad); }
.bq-err { color: var(--bq-bad); font-size: 13px; margin: 4px 0 0; min-height: 0; }
.bq-err:empty { display: none; }
.bq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bq-form-error { color: var(--bq-bad); font-weight: 600; }
.bq-form-error:empty { display: none; }

.bq-submit, a.bq-submit {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box;
	background: var(--bq-accent); color: #fff !important; border: 0; border-radius: 10px; padding: .95em 1.2em;
	font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: filter .15s;
}
.bq-submit:hover { filter: brightness(1.08); }
.bq-submit:disabled { opacity: .7; cursor: progress; }
.bq-empty .bq-submit { width: auto; }
.bq-wa { display: block; text-align: center; margin-top: 12px; color: #128c4a !important; font-weight: 600; font-size: 14px; }
.bq-wa[hidden] { display: none; }
.bq-secure { display: flex; align-items: center; justify-content: center; gap: .4em; color: var(--bq-muted); font-size: 12.5px; margin: 12px 0 0; }

.bq-success { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 24px; background: #fff; border: 1px solid var(--bq-line); border-radius: var(--bq-radius); box-shadow: var(--bq-shadow); }
.bq-success[hidden] { display: none; }
.bq-success:focus { outline: none; }
.bq-success__icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #dcfce7; color: var(--bq-ok); font-size: 32px; line-height: 64px; font-weight: 700; }
.bq-success .bq-submit { width: auto; margin-top: 8px; }

.bq-alert { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; }
.bq-alert--ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.bq-alert--warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }

/* -------------------------------------------------------- quote page */
.bq-quote { padding: 32px 16px 64px; color: var(--bq-ink); }
.bq-quote__wrap { max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--bq-line); border-radius: var(--bq-radius); padding: 28px; box-shadow: var(--bq-shadow); }
@media (max-width: 600px) { .bq-quote__wrap { padding: 18px; } }
.bq-quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bq-quote h1 { margin: 0; font-size: 1.7em; }
.bq-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--bq-muted); margin: 0 0 4px; }
.bq-meta { color: var(--bq-muted); margin: 4px 0 0; font-size: 14px; }
.bq-pill { padding: .35em .85em; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--bq-soft); border: 1px solid var(--bq-line); }
.bq-pill--bq-sent { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.bq-pill--pending, .bq-pill--processing, .bq-pill--completed { background: #f0fdf4; color: var(--bq-ok); border-color: #bbf7d0; }
.bq-pill--bq-rejected, .bq-pill--bq-expired { background: #fef2f2; color: var(--bq-bad); border-color: #fecaca; }

.bq-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: none; }
.bq-progress li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bq-muted); padding: 8px 0; border-top: 3px solid var(--bq-line); margin: 0; }
.bq-progress li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bq-line); font-size: 12px; font-weight: 700; color: var(--bq-ink); }
.bq-progress li.is-done { border-color: var(--bq-ok); color: var(--bq-ok); }
.bq-progress li.is-done span { background: var(--bq-ok); color: #fff; }
.bq-progress li.is-current { border-color: var(--bq-accent); color: var(--bq-ink); font-weight: 700; }
.bq-progress li.is-current span { background: var(--bq-accent); color: #fff; }
@media (max-width: 520px) { .bq-progress li { font-size: 11px; flex-direction: column; align-items: flex-start; } }

.bq-note { background: var(--bq-soft); border-left: 4px solid var(--bq-accent); padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; }
.bq-note--muted { border-left-color: var(--bq-line); }
.bq-note p, .bq-terms p { margin: 4px 0 0; }
.bq-terms { font-size: 14px; color: var(--bq-muted); margin: 16px 0; }

.bq-table { border: 1px solid var(--bq-line); border-radius: 10px; overflow: hidden; }
.bq-tr { display: grid; grid-template-columns: minmax(0, 3fr) 70px 1fr 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--bq-line); }
.bq-tr:first-child { border-top: 0; }
.bq-tr--head { background: var(--bq-soft); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bq-muted); }
.bq-prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bq-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.bq-prod span { display: flex; flex-direction: column; min-width: 0; }
.bq-prod small { color: var(--bq-muted); }
@media (max-width: 640px) {
	.bq-tr--head { display: none; }
	.bq-tr { grid-template-columns: 1fr 1fr 1fr; }
	.bq-tr .bq-prod { grid-column: 1 / -1; }
	.bq-tr [data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--bq-muted); text-transform: uppercase; }
}

.bq-totals { margin: 16px 0 0 auto; max-width: 360px; }
.bq-totals div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--bq-line); }
.bq-totals dt, .bq-totals dd { margin: 0; }
.bq-totals .is-grand { font-size: 1.15em; font-weight: 800; border-bottom: 0; }

.bq-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bq-line); }
.bq-actions .bq-submit { width: auto; padding-left: 2em; padding-right: 2em; }
.bq-inline { margin: 0; }
.bq-btn-ghost { display: inline-flex; align-items: center; background: #fff; color: var(--bq-ink) !important; border: 1px solid #cbd5e1; border-radius: 10px; padding: .85em 1.1em; font-weight: 600; cursor: pointer; text-decoration: none !important; font-size: 15px; list-style: none; }
.bq-btn-ghost::-webkit-details-marker { display: none; }
.bq-btn-ghost:hover { border-color: var(--bq-ink); }
.bq-btn-danger { color: var(--bq-bad) !important; border-color: #fecaca; margin-top: 8px; }
.bq-reject[open] { flex-basis: 100%; }
.bq-reject form { margin-top: 10px; }
.bq-reject label { display: block; font-size: 14px; margin-bottom: 6px; }
.bq-reject textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: .6em; }

@media print {
	body * { visibility: hidden; }
	.bq-quote, .bq-quote * { visibility: visible; }
	.bq-quote { position: absolute; inset: 0 auto auto 0; width: 100%; padding: 0; }
	.bq-quote__wrap { border: 0; box-shadow: none; max-width: none; }
	[data-no-print], .bq-badge, .bq-toast { display: none !important; }
}

@media (prefers-reduced-motion: reduce) { .bq-app *, .bq-badge, .bq-toast { animation: none !important; transition: none !important; } }

/* Builder embeds (shortcode / block / widgets) */
.bq-embed { margin: .5em 0; }
.bq-embed--left { text-align: left; } .bq-embed--center { text-align: center; } .bq-embed--right { text-align: right; }
.bq-builder-note { display: inline-block; padding: .6em .9em; border: 1px dashed #94a3b8; border-radius: 6px; color: #475569; font-size: 13px; background: #f8fafc; }
/* Themes that lay the add-to-cart row out as a grid (e.g. block themes) */
html body .woocommerce-variation-add-to-cart > .bq-add--single.bq-btn:not(.bq-btn--full),
html body .wp-block-add-to-cart-form form.cart > .bq-add--single.bq-btn:not(.bq-btn--full) { margin: .6em 0 0; }
/* Quote-only products: quantity first, quote button beside it (flex and grid layouts) */
html .bq-quote-only form.cart .quantity { order: 1; grid-column: 1 !important; grid-row: 1; }
html .bq-quote-only form.cart .bq-add--single.bq-btn.bq-btn:not(.bq-btn--full) { order: 2; grid-column: 2 / -1 !important; grid-row: 1; justify-self: start; align-self: center; margin: 0 0 0 .5em; }
.bq-optin { display: flex; gap: .55em; align-items: flex-start; font-size: 14px; margin: 4px 0 14px; cursor: pointer; }
.bq-optin input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--bq-accent); }

/* v1.3 – trade buyers & order rules */
.bq-price-login, .bq-price-apply { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bq-price-pending { opacity: .8; font-style: italic; }
.bq-item__min { color: var(--bq-accent, #c2410c); font-weight: 600; }
.bq-trade { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.bq-trade h3 { margin-top: 0; }
.bq-trade__ok { color: #15803d; font-weight: 600; }
.bq-trade__form input[type=text], .bq-trade__form input[type=tel], .bq-trade__form textarea { width: 100%; max-width: 460px; }
.bq-trade-register__company { display: none; }
.bq-trade-register:has(input:checked) + .bq-trade-register__company { display: block; }
.bq-trade__form input[type=text], .bq-trade__form input[type=tel], .bq-trade__form textarea { box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; font: inherit; margin-top: 4px; background: #fff; }
.bq-trade__form button { padding: 10px 18px; border-radius: 8px; cursor: pointer; background: var(--bq-accent, #c2410c); color: #fff; border: 0; font-weight: 600; }
