/* QuoteLane for WooCommerce — storefront styles.
   Inherits the theme: colours, fonts and button styles come from the theme / WooCommerce.
   No fixed colours on buttons, BEM class names, low specificity. !important appears in 5 rules only: 3 that must beat theme button margins, 1 for the screen-reader utility, 1 so "hidden" beats theme menu rules. */

.qlane-button { width: auto; }
/* Classic themes: sits on the same line as "Add to cart", top-aligned like it, with a gap. */
.qlane-button--single { margin-block: 0; margin-inline: .5em 0; flex: 0 0 auto; align-self: stretch; vertical-align: top; position: relative; z-index: 1; } /* above a gallery zoom image that some themes leave unclipped on phones */
/* Many classic themes zero the margin of every button in form.cart; keep the gap from "Add to cart". */
form.cart .qlane-button.qlane-button--single { margin-inline-start: .5em !important; }
/* Block themes lay form.cart out as a grid or as the new Add to Cart with Options block: own row, natural width. */
.wc-block-add-to-cart-form form.cart .qlane-button--single,
form.wc-block-add-to-cart-with-options .qlane-button--single { grid-column: 1 / -1; justify-self: start; width: auto; margin: .5em 0 0 !important; align-self: auto; }
.qlane-button--loop { display: inline-block; }
.qlane-button-wrap { margin-block-start: .5em; }
.qlane-button-form { margin: 0; }
/* Secondary look next to "Add to cart": same shape as the theme button, outlined. Themes can override with .qlane-button. */
.qlane-button--single, .qlane-button--loop { background: transparent; color: inherit; border: 1px solid currentColor; }
/* Hover/focus keep full contrast: a visible outline instead of dimming the theme colour. */
.qlane-button--single:hover, .qlane-button--loop:hover { background: transparent; color: inherit; text-decoration: underline; }
.qlane-button--single:focus-visible, .qlane-button--loop:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.qlane-button[aria-busy="true"] { opacity: .6; pointer-events: none; }
.qlane-button--added { outline: 2px solid currentColor; outline-offset: 2px; }

.qlane-toast {
	position: fixed;
	inset-block-end: 1.5rem;
	inset-inline-end: 1.5rem;
	z-index: 9999;
	max-width: min(22rem, calc(100vw - 3rem));
	padding: .9rem 1.1rem;
	border-radius: .5rem;
	/* Fixed colours: theme presets can't be trusted to contrast with each other (Twenty Twenty mapped both to greys). */
	background: #1e1e1e;
	color: #fff;
	box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.2);
	display: flex;
	gap: .75rem;
	align-items: center;
	font-size: .95em;
	animation: qlane-in .2s ease-out;
}
.qlane-toast a { color: inherit; text-decoration: underline; white-space: nowrap; }
.qlane-toast__close { margin-inline-start: auto; background: none; border: 0; color: inherit; font-size: 1.3em; line-height: 1; min-width: 32px; min-height: 32px; cursor: pointer; padding: 0; }
.qlane-toast__close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.qlane-view-link { display: inline-block; margin-inline-start: .75em; align-self: center; }
.qlane-live.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.qlane-toast--error { background: #b32d2e; color: #fff; }
@keyframes qlane-in { from { transform: translateY(.5rem); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .qlane-toast { animation: none; } }

.qlane-count { display: inline-flex; gap: .35em; align-items: baseline; text-decoration: none; }
.qlane-count__number { font-weight: 600; }

.qlane-table { width: 100%; }
.qlane-table th { text-align: start; }
.qlane-decline { text-decoration: underline; }
.qlane-table__product { display: flex; gap: 1rem; align-items: center; }
.qlane-table__thumb img { width: 64px; height: auto; display: block; }
.qlane-table__meta { display: flex; flex-direction: column; gap: .15rem; }
.qlane-table__sku { font-size: .85em; }
.qlane-table__attrs { margin: 0; font-size: .9em; }
.qlane-table__attrs dt { display: inline; font-weight: 600; }
.qlane-table__attrs dd { display: inline; margin-block: 0; margin-inline: .25em .5em; }
.qlane-table__qty { width: 7rem; white-space: nowrap; }
th.qlane-table__qty { white-space: nowrap; }
/* Block themes leave inputs unstyled (13px, no padding): give the quantity field a usable size without fighting themes that do style it. */
.qlane-table__qty .qlane-qty { width: 5rem; min-height: 2.5em; padding: .35em .5em; font-size: inherit; box-sizing: border-box; }
.qlane-table__price, .qlane-table__total, th.qlane-table__price, th.qlane-table__total { text-align: end; }
.qlane-table__remove { width: 2.5rem; text-align: end; }
.qlane-remove { background: none; border: 0; padding: 0; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.4em; line-height: 1; color: inherit; }
.qlane-remove:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.qlane-table__row[aria-busy="true"] { opacity: .5; }
.qlane-price--list { margin-inline-end: .5em; white-space: nowrap; text-decoration: line-through; }
.qlane-price--quoted, .qlane-table__total, .qlane-table--list th, .qlane-table--list .qlane-status, .qlane-table--list .amount { white-space: nowrap; }
.qlane-price--quoted { text-decoration: none; }

.qlane-fields { border: 0; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.qlane-fields__legend { font-weight: 600; margin-block-end: .75rem; grid-column: 1 / -1; }
.qlane-field { margin: 0 0 1rem; }
.qlane-field label { display: block; margin-block-end: .25rem; }
.qlane-field .input-text, .qlane-field textarea { width: 100%; box-sizing: border-box; }
.qlane-field--message, .qlane-field--consent { grid-column: 1 / -1; }
.qlane-checkbox,
.qlane-form .form-row label.qlane-checkbox { display: flex; gap: .5rem; align-items: flex-start; } /* themes set form-row labels to block (Storefront), which put the box against the text */
/* The box sits in a slot exactly one text line tall (1lh, the label's own line height), so it is centred on the first
   line in every theme, whatever its line height or checkbox size. Older template copies without the slot keep .3em. */
.qlane-checkbox > input { margin-block-start: .3em; }
.qlane-checkbox__box { display: inline-flex; vertical-align: top; flex: none; align-items: center; height: 1.5em; height: 1lh; } /* inline: stays on the text line even if a theme forces the label to block */
.qlane-form .qlane-field--consent .qlane-checkbox .qlane-checkbox__box input[type="checkbox"] { margin: 0; flex: none; } /* beats themes' form-row checkbox margins */
/* The consent text can wrap; some themes give labels a line height made for one-line labels (Hello Elementor: 2), which
   spreads the two lines apart on phones. Body-text line height keeps them together; the box stays centred on the first line. */
.qlane-form .qlane-field--consent .qlane-checkbox { line-height: 1.5; }
.qlane-field--website { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 640px) {
	.qlane-fields { grid-template-columns: 1fr; }
	.qlane-table__product { flex-direction: column; align-items: flex-start; }
}
/* A product name without spaces (an SKU-like name, a long compound word) wraps instead of widening the page. */
.qlane-table__name { overflow-wrap: break-word; }
/* 0.17.2: on phones the request page shows one row per product: picture and name side by side, × at the top right,
   the quantity underneath. Doubled class names and "tr td" beat themes' zebra and cell rules (Storefront). */
@media (max-width: 600px) {
	.qlane-request .qlane-table thead { display: none; }
	.qlane-request .qlane-table, .qlane-request .qlane-table tbody { display: block; width: 100%; }
	/* The product cell "dissolves" (display: contents), so picture, name, × and quantity line up in one grid and
	   the quantity follows whatever picture width is set (a page builder widget may set its own). */
	.qlane-request .qlane-table tbody tr.qlane-table__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb meta remove" ". qty qty"; column-gap: .75rem; row-gap: .6rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid rgba(127, 127, 127, .25); }
	.qlane-request table.qlane-table.qlane-table tbody tr td { display: block; padding: 0; border: 0; width: auto; background: none; }
	.qlane-request table.qlane-table.qlane-table tbody tr td.qlane-table__product { display: contents; }
	.qlane-request .qlane-table__thumb { grid-area: thumb; }
	:where(.qlane-request) .qlane-table__thumb img { width: 56px; }
	.qlane-request .qlane-table__meta { grid-area: meta; min-width: 0; }
	.qlane-request .qlane-table__name { overflow-wrap: anywhere; }
	.qlane-request table.qlane-table.qlane-table tbody tr td.qlane-table__qty { grid-area: qty; display: flex; align-items: center; gap: .75rem; }
	.qlane-request table.qlane-table.qlane-table tbody tr td.qlane-table__qty::before { content: attr(data-title); font-size: .9em; }
	.qlane-request table.qlane-table.qlane-table tbody tr td.qlane-table__remove { grid-area: remove; }
	.qlane-request .qlane-table__qty .qlane-qty { min-height: 40px; margin: 0; }
	.qlane-request .qlane-remove { min-width: 44px; min-height: 44px; margin-block-start: -10px; margin-inline-end: 0; }
}

.qlane-actions { margin-block-start: 1rem; }
.qlane-notice { margin-block-end: 1.5rem; }

.qlane-quote__header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-block-end: 1rem; }
.qlane-quote__title { margin: 0; }
.qlane-quote__note { margin: 0 0 1.5rem; padding: .75rem 1rem; border-inline-start: 3px solid currentColor; }
.qlane-quote__message { margin-block-start: 1.5rem; }
.qlane-decision { display: flex; gap: .75rem; flex-wrap: wrap; margin-block-start: 1.5rem; }
.qlane-decision__hint { font-size: .9em; }

.qlane-status { display: inline-block; padding: .15em .6em; border-radius: 1em; font-size: .8em; font-weight: 600; letter-spacing: .02em; border: 1px solid currentColor; }
/* Own light backgrounds, so the pills keep 4.5:1 on dark themes too. */
.qlane-status--new { color: #6b5400; background: #fff6d6; }
.qlane-status--replied { color: #0a4fb5; background: #e7f0ff; }
.qlane-status--accepted, .qlane-status--converted { color: #17652a; background: #e6f4ea; }
.qlane-status--declined, .qlane-status--expired { color: #545b62; background: #f1f3f5; }

/* Small screens: quote and quote-list tables become stacked rows with labels, so prices never break mid-number. */
@media (max-width: 600px) {
	.qlane-table--quote thead, .qlane-table--list thead { display: none; }
	.qlane-table--quote, .qlane-table--quote tbody, .qlane-table--list, .qlane-table--list tbody { display: block; width: 100%; }
	.qlane-table--quote tbody tr, .qlane-table--list tbody tr { display: block; padding: .75rem; border-bottom: 1px solid rgba(127, 127, 127, .25); }
	table.qlane-table.qlane-table--quote tbody td, table.qlane-table.qlane-table--list tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: auto; padding: .2rem 0; border: 0; text-align: end; }
	.qlane-table--quote tbody td::before, .qlane-table--list tbody td::before { content: attr(data-title); font-weight: 600; text-align: start; white-space: nowrap; }
	table.qlane-table.qlane-table--quote tbody td.qlane-table__product { display: block; text-align: start; padding-bottom: .4rem; }
	.qlane-table--quote tbody td.qlane-table__product::before, .qlane-table--list tbody td.qlane-table__actions::before { content: none; }
	table.qlane-table.qlane-table--list tbody td.qlane-table__actions { justify-content: flex-start; padding-top: .5rem; }
	.qlane-table--quote tfoot { display: block; width: 100%; }
	.qlane-table--quote tfoot tr { display: flex; width: 100%; justify-content: space-between; gap: 1rem; padding: .35rem .75rem; }
	table.qlane-table.qlane-table--quote tfoot th, table.qlane-table.qlane-table--quote tfoot td { display: block; border: 0; padding: 0; background: none; }
	.qlane-table--quote tfoot tr:first-child { padding-top: .75rem; border-top: 1px solid rgba(127, 127, 127, .25); }
	.qlane-table--quote tfoot tr.qlane-table__grand { padding-block: .75rem; border-top: 1px solid rgba(127, 127, 127, .25); }
	.qlane-table--quote tfoot tr.qlane-table__taxnote { justify-content: flex-end; padding-top: 0; margin-top: -.5rem; }
	.qlane-table--quote .qlane-table__foot-label { word-break: normal; overflow-wrap: break-word; hyphens: manual; }
	.qlane-table--quote .qlane-table__price { flex-wrap: wrap; }
}

/* My Account sits beside the account menu and often a sidebar: stack the list by the space it actually has, not the viewport. */
.qlane-list-wrap { container-type: inline-size; }
@container (max-width: 560px) {
	.qlane-table--list thead { display: none; }
	.qlane-table--list, .qlane-table--list tbody { display: block; width: 100%; }
	.qlane-table--list tbody tr { display: block; padding: .75rem; border-bottom: 1px solid rgba(127, 127, 127, .25); }
	table.qlane-table.qlane-table--list tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: auto; padding: .2rem 0; border: 0; text-align: end; }
	.qlane-table--list tbody td::before { content: attr(data-title); font-weight: 600; text-align: start; white-space: nowrap; }
	.qlane-table--list tbody td.qlane-table__actions::before { content: none; }
	table.qlane-table.qlane-table--list tbody td.qlane-table__actions { justify-content: flex-start; padding-top: .5rem; }
}

/* Catalog mode: the cart is refused on the server; here the "Add to cart" button simply isn't shown, the product form (quantity, options) stays. */
/* Quote rules: "Add to cart" taken away (the server refuses it too). Variable products switch per chosen variation. */
.qlane-no-cart form.cart .single_add_to_cart_button,
.qlane-no-cart .wc-block-components-product-add-to-cart-button,
form.cart.qlane-no-cart .single_add_to_cart_button { display: none; }
.qlane-no-cart form.cart .qlane-button--single,
form.cart.qlane-no-cart .qlane-button--single { margin-inline-start: 0 !important; }
form.cart.qlane-no-quote .qlane-button--single { display: none; }
.qlane-oos { margin: 0 0 1.5em; }
.qlane-oos .qlane-button { margin-inline-start: 0 !important; }

.qlane-errors:focus { outline: none; }
.qlane-errors a { color: inherit; text-decoration: underline; }
.qlane-field__error { display: block; margin-block-start: .25em; font-size: .9em; color: #b32d2e; }
/* Subtotal, discount, shipping, fee and tax rows above the quote total. */
.qlane-table--quote .qlane-table__sum th { font-weight: normal; }

/* ---------- Quote list in the header (menu item, block, [quotelane_count style="icon"]) ----------
   Inherits the header's text colour; the badge is filled with that colour and its digits are white,
   or dark when the header text is light (set by the script). */
.qlane-mini { position: relative; display: inline-flex; align-items: center; gap: .4em; min-width: 44px; min-height: 44px; justify-content: center; color: inherit; text-decoration: none; }
.qlane-mini:hover .qlane-mini__label { text-decoration: underline; }
.qlane-mini:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.qlane-mini__icon { position: relative; display: inline-flex; line-height: 0; }
.qlane-mini__svg { width: 24px; height: 24px; flex: 0 0 auto; }
/* Fixed sizes, like WooCommerce's mini-cart badge, so it keeps its proportions in large-type headers. */
.qlane-mini__badge { position: absolute; inset-block-start: -7px; inset-inline-end: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: currentColor; display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; }
.qlane-mini__num { color: #fff; font-size: 11px; font-weight: 700; line-height: 1; font-family: inherit; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.qlane-mini--on-dark .qlane-mini__num { color: #1e1e1e; }
.qlane-mini--current { text-decoration: none; }
.qlane-mini--current .qlane-mini__icon::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -6px; height: 2px; background: currentColor; }
/* "Hide it while empty" must beat theme menu rules such as #site-navigation li { display: flex }. */
.qlane-mini[hidden], .qlane-menu-item[hidden], .qlane-mini-block[hidden], .qlane-mini__badge[hidden] { display: none !important; }
/* Own fallback for the visually hidden texts, in case the theme has no .screen-reader-text rule. */
.qlane-mini .screen-reader-text, .qlane-panel .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.qlane-menu-item { display: flex; align-items: center; list-style: none; }
.qlane-mini-block { display: inline-flex; }

/* ---------- Side panel ----------
   Secondary text is smaller, never faded: faded text fails contrast on themes whose text is already grey. */
html.qlane-panel-open { overflow: hidden; }
.qlane-panel { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(420px, 100%); max-width: 100%; height: 100%; max-height: 100%; color: inherit; font: inherit; box-shadow: -8px 0 32px rgba(0,0,0,.18); overflow: hidden; }
.qlane-panel::backdrop { background: rgba(0,0,0,.45); }
.qlane-panel:not([open]) { display: none; } /* browsers without <dialog> support */
.qlane-panel[open] { display: block; animation: qlane-slide .2s ease-out; }
@keyframes qlane-slide { from { transform: translateX(2rem); opacity: 0; } }
[dir="rtl"] .qlane-panel { inset: 0 auto 0 0; box-shadow: 8px 0 32px rgba(0,0,0,.18); }
@media (prefers-reduced-motion: reduce) { .qlane-panel[open] { animation: none; } }
.qlane-panel__inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.qlane-panel__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem 1rem 1.5rem; border-block-end: 1px solid rgba(127,127,127,.3); flex: 0 0 auto; }
.qlane-panel__title { margin: 0; font-size: 1.25em; line-height: 1.25; }
.qlane-panel__count { white-space: nowrap; font-size: .9em; }
.qlane-panel__close { margin-inline-start: auto; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 4px; }
.qlane-panel__close:focus-visible, .qlane-panel__more:focus-visible, .qlane-step__btn:focus-visible, .qlane-line__remove:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.qlane-panel__added { margin: 1rem 1.5rem 0; padding: .75rem .9rem; border-inline-start: 3px solid #1d6b35; background: rgba(127,127,127,.1); font-size: .95em; line-height: 1.45; overflow-wrap: anywhere; flex: 0 0 auto; }
/* The live region stays rendered while empty (a region that appears together with its text is often not announced). */
.qlane-panel__added:empty { margin-block: 0; padding-block: 0; border-inline-start-width: 0; }
.qlane-panel__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.qlane-panel__list { list-style: none; margin: 0; padding: .25rem 1.5rem; overflow: auto; flex: 1 1 auto; min-height: 0; }
.qlane-panel__empty { padding: 1.5rem; }
.qlane-line { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: .25rem .9rem; padding: 1.1rem 0; border-block-end: 1px solid rgba(127,127,127,.25); margin: 0; }
.qlane-line:last-child { border-block-end: 0; }
.qlane-line[aria-busy="true"] { opacity: .6; }
.qlane-line__thumb { grid-row: 1 / span 2; display: block; }
.qlane-line__thumb img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; margin: 0; }
.qlane-line__text { min-width: 0; line-height: 1.35; }
.qlane-line__name { display: inline-block; min-height: 24px; font-weight: 600; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.qlane-line__name:hover { text-decoration: underline; }
.qlane-line__meta { display: block; font-size: .875em; margin-block-start: .15rem; }
.qlane-line__ctl { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-block-start: .5rem; }
.qlane-step { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid currentColor; border-radius: 4px; }
.qlane-step__btn { width: 40px; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1.15em; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 0; }
.qlane-step__btn:disabled { opacity: .35; cursor: default; }
.qlane .qlane-step__qty, .qlane-step__qty { width: 3.25em; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-inline: 1px solid rgba(127,127,127,.4); border-radius: 0; text-align: center; font: inherit; background: transparent; color: inherit; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.qlane-step__qty::-webkit-inner-spin-button, .qlane-step__qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qlane-line__remove { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .25rem; margin: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .875em; text-decoration: underline; cursor: pointer; }
.qlane-panel__foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.5rem 1.5rem; border-block-start: 1px solid rgba(127,127,127,.3); }
.qlane-panel__note { margin: 0 0 .25rem; font-size: .875em; line-height: 1.5; }
/* Specific enough to beat WooCommerce's ".woocommerce a.button { display: inline-block }" and theme button rules:
   with display: block the label sat at the top of the 44px button (12.5px above, 16.5px below on Hello Elementor). */
.qlane-panel .qlane-panel__foot a.qlane-panel__go, .qlane-panel .qlane-panel__foot .qlane-panel__go { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; text-align: center; box-sizing: border-box; min-height: 44px; }
.qlane-panel__more { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
	.qlane-panel { width: 100%; box-shadow: none; }
	.qlane-panel__head { padding: .6rem .5rem .6rem 1rem; }
	.qlane-panel__added { margin: .75rem 1rem 0; }
	.qlane-panel__list { padding: .25rem 1rem; }
	.qlane-panel__foot { padding: .75rem 1rem 1rem; }
}

/* ---------- Cart page: "Request a quote for this cart" (secondary look, like the product-page quote button) ---------- */
.qlane-cart-quote { margin-block-start: 1em; padding-block-start: 1em; border-block-start: 1px solid rgba(127,127,127,.3); }
.qlane-cart-quote__form { margin: 0; }
.qlane-cart-quote .qlane-button--cart { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; text-align: center; box-sizing: border-box; background: transparent; color: inherit; border: 1px solid currentColor; }
.qlane-cart-quote .qlane-button--cart:hover { background: transparent; color: inherit; text-decoration: underline; }
.qlane-cart-quote .qlane-button--cart:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.qlane-cart-quote .qlane-button--cart[aria-busy="true"] { opacity: .6; }
.qlane-cart-quote__help, .qlane-cart-quote__skip { margin: .6em 0 0; font-size: .875em; line-height: 1.5; }
.qlane-notices { margin-block-end: 1.5em; }
.qlane-panel__loading { padding: 1.5rem; margin: 0; }

/* Spam check (0.8): the CAPTCHA sits full width above the send button. Turnstile's flexible widget fills the column;
   reCAPTCHA v2 is scaled to fit narrow columns by frontend.js. An error turns the slot's message red under it. */
.qlane-captcha { margin-block-start: 1.25rem; max-width: 100%; }
.qlane-captcha:focus { outline: none; }
.qlane-captcha .cf-turnstile { min-height: 65px; }
.qlane-captcha--recaptcha3 { margin: 0; }
.qlane-captcha__msg { margin: .5em 0 0; }
.qlane-captcha--error .cf-turnstile iframe, .qlane-captcha--error .g-recaptcha iframe { outline: 1px solid #b32d2e; outline-offset: 0; border-radius: 4px; }
.qlane-captcha__note { margin-block-start: .75rem; font-size: .875em; line-height: 1.5; }
.qlane-captcha__note a { color: inherit; }
/* reCAPTCHA v3: Google's floating badge is hidden because its notice is printed under the button (Google allows this). */
.qlane-request ~ .grecaptcha-badge, body:has(.qlane-captcha--recaptcha3) .grecaptcha-badge { visibility: hidden; }

/* ---------- Request form: WooCommerce's searchable dropdowns (select2) match the form's text fields ---------- */
/* The size and look come from the form's own first text field (frontend.js sets the --qlane-field-* values). */
.qlane-form .select2-container.select2-container--default .select2-selection--single { box-sizing: border-box; height: var(--qlane-field-h, 2.5em); border: var(--qlane-field-border, 1px solid #8c8f94); border-radius: var(--qlane-field-radius, 4px); background-color: var(--qlane-field-bg, #fff); display: flex; align-items: center; }
.qlane-form .select2-container.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.3; padding-inline: var(--qlane-field-pad, .75em) 2em; font-size: var(--qlane-field-font, inherit); color: var(--qlane-field-color, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qlane-form .select2-container.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; }

/* ---------- Side panel: its small controls keep their own look ---------- */
/* Themes style every button (Hello Elementor: a coloured border, padding and a filled hover). The stepper, Remove,
   Continue shopping and the close button are quiet controls, so the theme's button look is undone here; the main
   "Request a quote" button keeps the theme's button style. */
/* Anchored to the panel's id: themes colour every button with rules such as Twenty Twenty-One's
   "button:not(:hover):not(:active):not(.has-background)" (0,3,1), which beat a class-based reset. */
#qlane-panel button.qlane-step__btn, #qlane-panel button.qlane-step__btn:hover, #qlane-panel button.qlane-step__btn:focus, #qlane-panel button.qlane-step__btn:active,
#qlane-panel button.qlane-line__remove, #qlane-panel button.qlane-line__remove:hover, #qlane-panel button.qlane-line__remove:focus, #qlane-panel button.qlane-line__remove:active,
#qlane-panel button.qlane-panel__more, #qlane-panel button.qlane-panel__more:hover, #qlane-panel button.qlane-panel__more:focus, #qlane-panel button.qlane-panel__more:active,
#qlane-panel button.qlane-panel__close, #qlane-panel button.qlane-panel__close:hover, #qlane-panel button.qlane-panel__close:focus, #qlane-panel button.qlane-panel__close:active {
	border: 0; background: none; color: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; font-weight: inherit; text-shadow: none; transform: none;
}
#qlane-panel button.qlane-step__btn { width: 40px; padding: 0; border-radius: 0; }
#qlane-panel button.qlane-line__remove, #qlane-panel button.qlane-panel__more { padding: 0 .25rem; border-radius: 2px; text-decoration: underline; }
#qlane-panel button.qlane-panel__close { width: 44px; height: 44px; padding: 0; border-radius: 4px; }
#qlane-panel button.qlane-step__btn:hover:not(:disabled), #qlane-panel button.qlane-panel__close:hover { background: rgba(127,127,127,.12); }
#qlane-panel button.qlane-line__remove:hover, #qlane-panel button.qlane-panel__more:hover { text-decoration-thickness: 2px; }
/* Footer: the same visible space above and below "Request a quote". Continue shopping is a 44px target with its text
   centred, so the note gets the same half-difference below it. */
.qlane-panel .qlane-panel__foot { gap: .5rem; }
.qlane-panel .qlane-panel__note { margin: 0 0 calc((44px - 1.5em) / 2); }
/* The quantity inside the stepper: themes give number fields their own border, padding and height (Hello Elementor),
   which drew a box inside the stepper's box. Only the dividers next to the − and + stay. */
#qlane-panel input.qlane-step__qty, #qlane-panel input.qlane-step__qty:focus, #qlane-panel input.qlane-step__qty:hover {
	width: 3.25em; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-inline: 1px solid rgba(127,127,127,.4); border-radius: 0; background: transparent; color: inherit; box-shadow: none; text-align: center; font: inherit; line-height: normal;
}
#qlane-panel input.qlane-step__qty:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }


/* ---------- Inline quote list (0.17): the panel's list and footer inside a box on the page ([quotelane_list], page builder widgets) ---------- */
.qlane-inline { container-type: inline-size; }
.qlane-inline__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; margin: 0 0 .75rem; }
.qlane-inline__title { margin: 0; font-size: 1.15em; }
.qlane-inline__count { font-size: .9em; opacity: .8; }
.qlane-inline .qlane-panel__list { padding: 0; overflow: visible; }
.qlane-inline .qlane-panel__empty, .qlane-inline .qlane-panel__loading { padding: 0; }
.qlane-inline .qlane-panel__empty p:last-child { margin-block-end: 0; }
.qlane-inline .qlane-panel__foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 0 0; }
.qlane-inline .qlane-panel__note { margin: 0; flex: 1 1 14rem; }
.qlane-inline .qlane-panel__go { flex: 0 0 auto; }
@container (max-width: 480px) { .qlane-inline .qlane-panel__foot { flex-direction: column; align-items: stretch; } .qlane-inline .qlane-panel__note { flex: 0 0 auto; } } /* stacked: the note's 14rem is a width, not a height */
.qlane-inline .qlane-panel__more { display: none; }
.qlane-inline--no-go .qlane-panel__go { display: none; }
.qlane-inline--static .qlane-step__btn { display: none; }
.qlane-inline--static .qlane-step { border: 0; }
.qlane-inline--no-remove .qlane-line__remove { display: none; }
.qlane-inline .qlane-line:first-child { padding-block-start: .25rem; }
.qlane-inline .qlane-line:last-child { padding-block-end: .25rem; }
/* The same quiet controls as in the panel (see above: themes colour every button with id-strength rules). */
.qlane-inline.qlane-inline.qlane-inline button.qlane-step__btn, .qlane-inline.qlane-inline.qlane-inline button.qlane-step__btn:hover, .qlane-inline.qlane-inline.qlane-inline button.qlane-step__btn:focus, .qlane-inline.qlane-inline.qlane-inline button.qlane-step__btn:active,
.qlane-inline.qlane-inline.qlane-inline button.qlane-line__remove, .qlane-inline.qlane-inline.qlane-inline button.qlane-line__remove:hover, .qlane-inline.qlane-inline.qlane-inline button.qlane-line__remove:focus, .qlane-inline.qlane-inline.qlane-inline button.qlane-line__remove:active,
.qlane-inline.qlane-inline.qlane-inline button.qlane-panel__more, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__more:hover, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__more:focus, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__more:active,
.qlane-inline.qlane-inline.qlane-inline button.qlane-panel__close, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__close:hover, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__close:focus, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__close:active {
	border: 0; background: none; color: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; font-weight: inherit; text-shadow: none; transform: none;
}
.qlane-inline.qlane-inline.qlane-inline button.qlane-step__btn { width: 40px; padding: 0; border-radius: 0; }
.qlane-inline.qlane-inline.qlane-inline button.qlane-line__remove, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__more { padding: 0 .25rem; border-radius: 2px; text-decoration: underline; }
.qlane-inline.qlane-inline.qlane-inline button.qlane-panel__close { width: 44px; height: 44px; padding: 0; border-radius: 4px; }
.qlane-inline.qlane-inline.qlane-inline button.qlane-step__btn:hover:not(:disabled), .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__close:hover { background: rgba(127,127,127,.12); }
.qlane-inline.qlane-inline.qlane-inline button.qlane-line__remove:hover, .qlane-inline.qlane-inline.qlane-inline button.qlane-panel__more:hover { text-decoration-thickness: 2px; }
.qlane-inline.qlane-inline.qlane-inline input.qlane-step__qty, .qlane-inline.qlane-inline.qlane-inline input.qlane-step__qty:focus, .qlane-inline.qlane-inline.qlane-inline input.qlane-step__qty:hover {
	width: 3.25em; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-inline: 1px solid rgba(127,127,127,.4); border-radius: 0; background: transparent; color: inherit; box-shadow: none; text-align: center; font: inherit; line-height: normal;
}
.qlane-inline.qlane-inline.qlane-inline input.qlane-step__qty:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }


/* Read-only inline lists: the quantity is text, not a field (after the resets above, which it must beat). */
.qlane-inline.qlane-inline.qlane-inline--static input.qlane-step__qty, .qlane-inline.qlane-inline.qlane-inline--static input.qlane-step__qty:focus { border: 0; pointer-events: none; width: auto; min-width: 2.5em; text-align: start; }
.qlane-inline:focus { outline: none; }
.qlane-inline:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Blocks (0.9): Add to quote, Quote request form ---------- */
.qlane-block-button { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block-end: 1.5em; } /* classic themes have no block gap (block themes space with margin-block-start, left alone); the block's own Margin setting wins */
:where(.is-layout-flow, .is-layout-constrained) > .qlane-block-button { margin-block-end: 0; } /* block themes space blocks themselves */
.qlane-block-button.aligncenter { justify-content: center; }
.qlane-block-button.alignright { justify-content: flex-end; }
.qlane-block-button .qlane-button-form { margin: 0; }
/* Quantity and button on one row; the field is as tall as the button, and the row wraps cleanly on narrow screens. */
.qlane-button-form--qty { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
/* Themes size WooCommerce's quantity box for the product page (Botiga: 100% wide, 57px tall); here it sits beside the
   button and takes the button's height. */
.qlane-button-form--qty .qlane-block-qty { display: flex; flex: 0 0 auto; width: auto; margin: 0; }
.qlane-button-form--qty .qlane-block-qty input.qty { width: 4.5em; max-width: none; height: 100%; min-height: 0; padding-block: 0; margin: 0; box-sizing: border-box; text-align: center; }
.qlane-button--block { margin: 0; }
a.qlane-button--block { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* Editor only: a note where the block has nothing to show, and the label above the form preview. */
.qlane-block-note { margin: 0; padding: 12px 16px; border: 1px dashed currentColor; font-size: 13px; line-height: 1.5; opacity: .8; }
.qlane-block-preview-note { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
