/**
 * Interlab Core — Request a Quote styling.
 *
 * On-brand card layout (from the Claude Design handoff, 2026-07): white cards on a soft grey
 * panel, Exo 2, brand blues (#004485 / #0092D3), responsive (the items table reflows to cards
 * on mobile). Class-based (the module's convention) — the render code keeps all the wiring;
 * this file only dresses it.
 */

/* ------------------------------------------------------------------ *
 *  "Add to Quote" button (product page + shared primary button)
 *  Keeps the --ilc-quote-btn variable so the module's colour setting still works.
 * ------------------------------------------------------------------ */
.ilc-add-to-quote {
	--ilc-quote-btn: #004485;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ilc-quote-btn);
	color: #fff;
	border: 0;
	padding: 13px 28px;
	border-radius: var(--wp--custom--radius--control, 6px);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.ilc-add-to-quote:hover,
.ilc-add-to-quote:focus {
	opacity: 0.92;
	color: #fff;
}

.ilc-add-to-quote.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.ilc-add-to-quote.is-added {
	background: #1a7f37;
}

.ilc-add-to-quote.is-added .ilc-aq-label::before {
	content: "\2713\00a0"; /* checkmark + non-breaking space */
}

/* ------------------------------------------------------------------ *
 *  Header quote link + live count bubble (cart/wishlist style) — unchanged
 * ------------------------------------------------------------------ */
.ilc-quote-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.ilc-quote-link .ilc-quote-ic {
	display: block;
}

.ilc-aq-view {
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* a phone- and tablet-sized tap (Site Inspector: 78x24 at every width) */
	margin: .5em 0 0 .75em;
	font-weight: 600;
	white-space: nowrap;
}

.ilc-quote-link-auto {
	position: relative;
}

.ilc-quote-count {
	position: absolute;
	top: -7px;
	right: -11px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #0092d3;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.ilc-quote-count.is-empty {
	display: none;
}

/* A count added to a plain text link (footer, account quick links) sits after the words, not over them (Roddy,
   13 Nov 2026: the corner bubble overlapped "Request a quote" in the footer). The header icon keeps its corner bubble. */
.ilc-quote-link-auto .ilc-quote-count {
	position: static;
	display: inline-block;
	margin-left: .4em;
	vertical-align: 1px;
}
.ilc-quote-link-auto .ilc-quote-count.is-empty {
	display: none;
}

/* The footer "Request a quote" link: a small cart-style icon before the words, its count in a circle on the icon's
   corner, hidden at 0 (Roddy, 19 Nov 2026). The icon takes the link's own colour. */
.ilc-quote-link-foot {
	display: inline-flex;
	align-items: center;
	gap: .5em;
}
.ilc-quote-foot-ic {
	position: relative;
	display: inline-flex;
	flex: none;
	width: 18px;
	height: 18px;
}
.ilc-quote-foot-ic svg {
	display: block;
	flex: none;
	width: 18px;
	min-width: 18px;
	height: 18px;
}
/* The block theme's footer rule (polish.css, 13 Nov) forces footer quote counts to `position: static !important` for
   the old count-after-the-words look; inside the icon that shoved the count beside it and squashed the icon to 0px
   (staging, 19 Nov 2026). Out-rank it here (0,5,1 over the theme's 0,4,2) so the count stays on the icon's corner. */
a.ilc-quote-link-auto.ilc-quote-link-foot .ilc-quote-foot-ic .ilc-quote-count:not(.is-empty) {
	position: absolute !important;
	margin: 0 !important;
}
.ilc-quote-link-auto .ilc-quote-foot-ic .ilc-quote-count {
	position: absolute;
	top: -7px;
	right: -9px;
	margin: 0;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 8px;
	font-size: 10px;
	line-height: 15px;
}

/* The header cart, while the cart is empty and the quote is not: the quote count in the cart badge's own spot and
   size, as a navy outline pill on white so it never reads as the cart (Roddy, 19 Nov 2026). Geometry follows
   WooCommerce's .wc-block-mini-cart__badge; size and type follow the theme's badge (18px, 700 12px heading font). */
.ilc-hdr-quote-badge {
	position: absolute;
	left: 100%;
	margin-left: -44%;
	transform: translateY(-50%);
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 1.5px solid var(--awb-color8, #0d244c);
	border-radius: 9px;
	background: #fff;
	color: var(--awb-color8, #0d244c);
	font: 700 12px/1 var(--awb-typography1-font-family, var(--wp--preset--font-family--heading, inherit)), sans-serif;
	white-space: nowrap;
	box-shadow: 0 0 0 2px #fff;
}
.ilc-hdr-quote-badge[hidden] {
	display: none;
}

/* ================================================================== *
 *  Quote page ([interlab_quote])
 * ================================================================== */

.ilc-quote,
.ilc-quote * {
	box-sizing: border-box;
}

.ilc-quote {
	max-width: 900px;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--body, "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); /* #583: the theme's body font; Exo 2 where there is none (Avada) */
	color: #16202c;
	background: #f4f6f9;
	padding: 32px 28px;
	border-radius: 16px;
}

.ilc-quote a {
	color: #0092d3;
}

.ilc-quote a:hover {
	color: #004485;
}

.ilc-quote-intro {
	margin: 0 0 24px;
	font-size: 15px;
	color: #5b6b7c;
}

/* --- notices --- */
.ilc-quote-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 8px;
	margin: 0 0 20px;
	border: 1px solid transparent;
	font-size: 15px;
	line-height: 1.5;
}

.ilc-quote-notice--ok {
	background: rgba(0, 146, 64, 0.08);
	border-color: rgba(0, 146, 64, 0.3);
	color: #0a6b34;
}

.ilc-quote-notice--error {
	background: rgba(176, 0, 32, 0.06);
	border-color: rgba(176, 0, 32, 0.25);
	color: #8a0018;
}

/* --- cards (the two forms) --- */
.ilc-quote-items,
.ilc-quote-request {
	background: #fff;
	border: 1px solid rgba(0, 40, 80, 0.08);
	border-radius: var(--wp--custom--radius--card, 14px);
}

.ilc-quote-items {
	padding: 22px 24px 18px;
	margin-bottom: 28px;
}

.ilc-quote-request {
	padding: 28px;
	max-width: none;
	margin: 0;
}

/* --- section headings --- */
.ilc-quote-section-title,
.ilc-quote-request-title {
	font-size: 17px;
	font-weight: 600;
	color: #16202c;
}

.ilc-quote-section-title {
	margin: 0 0 16px;
}

.ilc-quote-request-title {
	margin: 0 0 4px;
}

.ilc-quote-item-count {
	color: #8896a5;
	font-weight: 400;
}

.ilc-quote-request-sub {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: #0092d3;
	font-weight: 500;
}

/* --- items table --- */
.ilc-quote-table {
	width: 100%;
	border-collapse: collapse;
}

.ilc-quote-table thead th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8896a5;
	font-weight: 600;
	padding: 0 8px 10px;
	border-bottom: 1px solid rgba(0, 40, 80, 0.08);
}

.ilc-quote-table thead th:first-child {
	padding-left: 0;
}

.ilc-quote-table thead th:nth-child(3) {
	width: 90px;
}

.ilc-quote-table thead th:nth-child(4) {
	width: 44px;
}

.ilc-quote-table td {
	padding: 16px 8px;
	border-bottom: 1px solid rgba(0, 40, 80, 0.06);
	vertical-align: middle;
}

.ilc-quote-table td:first-child {
	padding-left: 0;
}

.ilc-quote-product {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ilc-quote-product a {
	color: #16202c;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.35;
}

.ilc-quote-product a:hover {
	color: #004485;
}

.ilc-quote-thumb {
	flex: none;
}

.ilc-quote-thumb img {
	width: 52px;
	height: 52px;
	border-radius: 6px;
	object-fit: cover;
	display: block;
}

.ilc-quote-sku {
	font-size: 13px;
	color: #6b7a89;
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.ilc-quote-qty {
	width: 64px;
	padding: 7px 8px;
	border: 1px solid rgba(0, 40, 80, 0.15);
	border-radius: var(--wp--custom--radius--control, 6px);
	font-size: 14px;
	font-family: inherit;
	color: #16202c;
}

.ilc-quote-remove-btn {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #a8b3bf;
	padding: 4px 8px;
	border-radius: var(--wp--custom--radius--control, 6px);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.ilc-quote-remove-btn:hover,
.ilc-quote-remove-btn:focus {
	color: #b00020;
	background: rgba(176, 0, 32, 0.08);
}

.ilc-quote-table tr.is-saving {
	opacity: 0.5;
}

.ilc-quote-update-row {
	margin: 16px 0 2px;
}

.ilc-quote-update-btn {
	background: none;
	border: 1.5px solid #004485;
	color: #004485;
	padding: 9px 20px;
	border-radius: var(--wp--custom--radius--control, 6px);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}

.ilc-quote-update-btn:hover,
.ilc-quote-update-btn:focus {
	background: rgba(0, 68, 133, 0.06);
}

/* --- request form fields (WooCommerce .form-row markup) --- */
.ilc-quote-prefill-note {
	font-size: 13px;
	color: #8896a5;
	margin: -6px 0 18px;
}

.ilc-quote-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 4%;
}

.ilc-quote-fields .form-row {
	width: 100%;
	margin: 0;
}

.ilc-quote-fields .form-row-first,
.ilc-quote-fields .form-row-last {
	width: 48%;
}

.ilc-quote-fields label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #46566a;
	margin-bottom: 6px;
}

.ilc-quote-fields .required {
	color: #0092d3;
	border: 0;
	text-decoration: none;
}

.ilc-quote-fields input,
.ilc-quote-fields select,
.ilc-quote-request textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0, 40, 80, 0.15);
	border-radius: var(--wp--custom--radius--control, 6px);
	font-size: 14px;
	font-family: inherit;
	color: #16202c;
	background: #fff;
	box-sizing: border-box;
}

.ilc-quote-fields input:focus,
.ilc-quote-fields select:focus,
.ilc-quote-request textarea:focus {
	border-color: #0092d3;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 146, 211, 0.12);
}

.ilc-quote-fields #billing_postcode {
	width: 220px;
	max-width: 100%;
}

.ilc-quote-message {
	display: block;
	margin: 22px 0 24px;
}

.ilc-quote-message label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #46566a;
	margin-bottom: 6px;
}

.ilc-quote-request textarea {
	resize: vertical;
}

/* --- empty state --- */
.ilc-quote-empty-card {
	background: #fff;
	border: 1px solid rgba(0, 40, 80, 0.08);
	border-radius: var(--wp--custom--radius--card, 14px);
	padding: 48px 32px;
	text-align: center;
}

.ilc-quote-empty {
	font-size: 16px;
	color: #46566a;
	margin: 0 0 20px;
}

/* Accessible-hidden label (WP provides this too; defined here so the page is self-sufficient). */
.ilc-quote .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Honeypot — off-screen for humans + assistive tech; bots fill it. */
.ilc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ------------------------------------------------------------------ *
 *  Mobile: the items table reflows to stacked cards
 * ------------------------------------------------------------------ */
@media ( max-width: 640px ) {
	.ilc-quote {
		padding: 20px 16px;
	}

	.ilc-quote-table thead {
		display: none;
	}

	.ilc-quote-table tr {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px 12px;
		border: 1px solid rgba(0, 40, 80, 0.1);
		border-radius: 10px;
		padding: 14px;
		margin-bottom: 12px;
	}

	.ilc-quote-table td {
		padding: 0 !important;
		border: 0 !important;
	}

	.ilc-quote-product {
		width: 100%;
	}

	.ilc-quote-sku {
		flex: 1 1 auto;
	}

	.ilc-quote-fields .form-row-first,
	.ilc-quote-fields .form-row-last {
		width: 100%;
	}
}

/* #543: the guest quantity stepper beside Add to quote (one per product). Base layout only; the theme carries the look.
   Scoped under .ilc-aq-wrap so the buy box's own .il-qty sizes (36px, narrower buttons) never shrink it below 44px. */
.ilc-aq-wrap { display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: 8px; max-width: 100%; }
.ilc-aq-wrap .ilc-add-to-quote { flex: 1 1 auto; }
.ilc-aq-wrap .il-qty.ilc-aq-qty { display: inline-flex; align-items: center; flex: 0 0 auto; height: 46px; min-height: 46px; border: 1px solid #d9e1e9; border-radius: var(--wp--custom--radius--control, 6px); background: #fff; box-sizing: border-box; }
.ilc-aq-wrap .il-qty.ilc-aq-qty button { width: 44px; min-width: 44px; height: 100%; border: 0; background: none; color: #1c2b3a; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; margin: 0; }
.ilc-aq-wrap .il-qty.ilc-aq-qty input { width: 48px !important; height: 100% !important; border: 0 !important; text-align: center; font-family: inherit !important; font-size: 16px !important; padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield; }
.ilc-aq-wrap .il-qty.ilc-aq-qty input::-webkit-inner-spin-button, .ilc-aq-wrap .il-qty.ilc-aq-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* #546: the live quantity line under the guest stepper, below the stepper and the button. */
.ilc-aq-wrap .ilc-add-to-quote { order: 1; }
.ilc-aq-wrap .il-qty-sum { order: 2; flex-basis: 100%; margin: 0; font-size: 12px; color: #5b7082; font-variant-numeric: tabular-nums; }
.ilc-aq-wrap .il-qty-sum[hidden] { display: none; }

/* #635: the empty cart's pointer to the quote ("You have N items in your quote" -> View quote), under its heading.
   Layout only; the theme carries the look. Shown by quote.js from the count cookie. */
.ilc-cart-quote-hint { margin: 8px 0 20px; }
/* Centred in the Cart block's centred empty state; elsewhere (Avada's left-aligned "Your cart is empty") it follows the page. */
.wp-block-woocommerce-empty-cart-block .ilc-cart-quote-hint { text-align: center; }
.ilc-cart-quote-hint[hidden] { display: none; }
.ilc-cart-quote-hint__link { display: inline-block; padding-block: 12px; margin-block: -12px; font-weight: 600; }

/* Quote page on a phone (Roddy, 20 Nov 2026 mobile sweep): one level of card, not three (the grey panel, a white card,
   then a bordered card per line); each line is the checkout's stacked line: picture left, name, "Code X", then the
   quantity stepper with Remove beside it, never on top of it; the form fields get the full width. */
@media ( max-width: 640px ) {
	.ilc-quote { background: none !important; padding: 0 !important; border-radius: 0; }
	.ilc-quote .ilc-quote-items, .ilc-quote .ilc-quote-request { padding: 18px 16px !important; }
	.ilc-quote .ilc-quote-table tr.ilc-quote-row {
		display: grid !important;
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 12px;
		align-items: start;
		padding: 14px 0 !important;
		margin: 0 !important;
		border: 0 !important;
		border-bottom: 1px solid rgba(0, 40, 80, 0.08) !important;
		border-radius: 0 !important;
		background: none !important;
	}
	.ilc-quote .ilc-quote-table tr.ilc-quote-row:last-child { border-bottom: 0 !important; }
	.ilc-quote .ilc-quote-table tr.ilc-quote-row > td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; }
	.ilc-quote .ilc-quote-table tr.ilc-quote-row > td.ilc-quote-thumb { grid-column: 1; }
	.ilc-quote .ilc-quote-table tr.ilc-quote-row > td.ilc-quote-thumb img { width: 48px !important; height: 48px !important; object-fit: contain; border: 1px solid #e4ecf4; border-radius: 8px; background: #fff; }
	.ilc-quote .ilc-quote-table tr.ilc-quote-row > td.ilc-quote-product { grid-column: 2; display: block !important; min-width: 0; }
	.ilc-quote .ilc-quote-row .wc-block-components-product-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
	.ilc-quote .ilc-quote-row .ilc-quote-sku { margin-top: 2px; white-space: nowrap; }
	.ilc-quote .ilc-quote-row .wc-block-cart-item__quantity { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; margin-top: 10px; align-self: stretch; width: 100%; }
	.ilc-quote .ilc-quote-row .ilc-quote-remove-btn { display: inline-flex !important; align-items: center; width: auto !important; min-width: 44px; flex: 0 0 auto; margin: 0 !important; padding: 0 4px !important; min-height: 44px; font-size: 14px !important; color: #5b7082 !important; text-decoration: underline; background: none !important; position: static !important; }
}

/* Remove on a quote line is the cart's bin icon, not the words "Remove item" (Roddy, 20 Nov 2026). The button keeps its
   accessible name ("Remove <product> from your quote") and its text for a page without styles. */
.ilc-quote .ilc-quote-row .ilc-quote-remove-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 44px !important; min-width: 44px; height: 44px; min-height: 44px; padding: 0 !important; font-size: 0 !important; color: #5b7082 !important; text-decoration: none !important; background: transparent !important; border-radius: 6px !important; }
.ilc-quote .ilc-quote-row .ilc-quote-remove-btn::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat; }
.ilc-quote .ilc-quote-row .ilc-quote-remove-btn:hover, .ilc-quote .ilc-quote-row .ilc-quote-remove-btn:focus-visible { color: #a3262a !important; background: color-mix(in srgb, #a3262a 10%, #fff) !important; }
