/*
 * Wholesale LHL Core: visual component styles.
 * Every value reads a design token with a brand fallback, so the components look right on any theme
 * and follow the Wholesale LHL theme automatically.
 */
.wlhl-quote, .wlhl-form, .wlhl-quote-add, .wlhl-toasts, .wlhl-suggest, .wlhl-mini-quote, .wlhl-enquiry {
	--_ink: var(--c-text, #0b1b2b);
	--_muted: var(--c-text-muted, #5b6b7c);
	--_line: var(--c-border, #e3e0da);
	--_paper: var(--c-bg-alt, #f5f3ef);
	--_accent: var(--c-accent, #f26b1d);
	--_accent-h: var(--c-accent-hover, #d95a10);
	--_accent-t: var(--c-accent-text, #b4470e);
	--_danger: var(--c-danger, #b42318);
	--_ok: var(--c-success, #1f7a4d);
	--_r: var(--r-md, 8px);
	--_font: var(--f-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--_mono: var(--f-mono, ui-monospace, Consolas, monospace);
	--_display: var(--f-display, var(--_font));
	font-family: var(--_font);
	color: var(--_ink);
}

/* Buttons */
.wlhl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.25rem; border-radius: var(--_r); border: 2px solid transparent; font: 600 1rem/1.1 var(--_font); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease; touch-action: manipulation; }
.wlhl-btn:active { transform: scale(.98); }
.wlhl-btn:focus-visible { outline: 3px solid var(--c-focus, #f26b1d); outline-offset: 2px; }
.wlhl-btn-primary { background: var(--_accent); color: var(--c-text, #0b1b2b); }
.wlhl-btn-primary:hover { background: var(--_accent-h); color: var(--c-text, #0b1b2b); }
.wlhl-btn-secondary { background: transparent; border-color: currentColor; color: var(--_ink); }
.wlhl-btn-secondary:hover { background: var(--_ink); color: #fff; border-color: var(--_ink); }
.wlhl-btn-quote { background: var(--c-surface-darker, #0b1b2b); color: #fff; width: 100%; }
.wlhl-btn-quote:hover { background: var(--c-surface-dark, #16304a); color: #fff; }
.wlhl-btn-quote.is-added { background: var(--_ok); }
.wlhl-quote-add--loop { margin-top: .5rem; }
.wlhl-quote-add--single { display: grid; gap: .75rem; margin: 1rem 0 1.25rem; max-width: 26rem; }
.wlhl-quote-view-link { font-size: .875rem; color: var(--_accent-t); }

/* Quantity */
.wlhl-qty label { display: block; font: 600 .75rem/1 var(--_mono); text-transform: uppercase; letter-spacing: .08em; color: var(--_muted); margin-bottom: .4rem; }
.wlhl-qty-control { display: inline-flex; border: 1px solid var(--_line); border-radius: var(--_r); overflow: hidden; background: #fff; }
.wlhl-qty-control input { width: 5.5rem; border: 0; text-align: center; font: 600 1rem var(--_mono); -moz-appearance: textfield; min-height: 46px; background: transparent; color: var(--_ink); }
.wlhl-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wlhl-qty-btn { width: 46px; border: 0; background: var(--_paper); color: var(--_ink); cursor: pointer; display: grid; place-items: center; }
.wlhl-qty-btn:hover { background: var(--_line); }
.wlhl-qty-hint { margin: .35rem 0 0; font-size: .8125rem; color: var(--_muted); }
.wlhl-price-request { font-weight: 600; color: var(--_ink); }
.wlhl-vat { font-weight: 400; color: var(--_muted); font-size: .75em; }

/* Quote form */
.wlhl-quote { max-width: 52rem; }
.wlhl-steps-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: s; }
.wlhl-steps-nav li { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-radius: var(--_r); background: var(--_paper); font-size: .875rem; font-weight: 600; color: var(--_muted); border-bottom: 3px solid transparent; }
.wlhl-steps-nav li.is-current { color: var(--_ink); border-bottom-color: var(--_accent); background: #fff; box-shadow: 0 0 0 1px var(--_line) inset; }
.wlhl-steps-nav li.is-done { color: var(--_ok); }
.wlhl-step-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; border: 1px solid currentColor; font: 600 .75rem var(--_mono); flex: none; }
@media (max-width: 640px) { .wlhl-step-label { display: none; } .wlhl-steps-nav li { justify-content: center; } .wlhl-steps-nav li.is-current .wlhl-step-label { display: inline; } .wlhl-steps-nav { grid-template-columns: repeat(4, auto); } }
.wlhl-step { border: 1px solid var(--_line); border-radius: var(--r-lg, 14px); padding: 1.5rem; margin: 0 0 1.25rem; background: #fff; min-width: 0; }
.wlhl-step-title { font: 700 1.25rem/1.25 var(--_display); padding: 0 .25rem; display: flex; align-items: center; gap: .6rem; }
.wlhl-step-title:focus { outline: none; }
.wlhl-step-title span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 6px; background: var(--_accent); color: var(--c-text, #0b1b2b); font: 700 .9rem var(--_mono); }
.wlhl-quote.is-enhanced .wlhl-step-title span { display: none; }
.wlhl-grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .wlhl-grid-2 { grid-template-columns: 1fr; } .wlhl-step { padding: 1.1rem; } }
.wlhl-field { margin: 0 0 1rem; min-width: 0; }
.wlhl-field > label, .wlhl-radios > legend { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9375rem; }
.wlhl-field input[type=text], .wlhl-field input[type=email], .wlhl-field input[type=tel], .wlhl-field input[type=search], .wlhl-field input[type=number], .wlhl-field select, .wlhl-field textarea {
	width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--c-border-strong, #c9c4bb); border-radius: var(--_r); font: 400 1rem/1.4 var(--_font); background: #fff; color: var(--_ink); box-sizing: border-box;
}
.wlhl-field textarea { min-height: 96px; resize: vertical; }
.wlhl-field input:focus, .wlhl-field select:focus, .wlhl-field textarea:focus { outline: 3px solid color-mix(in srgb, var(--_accent) 35%, transparent); border-color: var(--_ink); }
.wlhl-field [aria-invalid=true] { border-color: var(--_danger); }
.wlhl-field-error { color: var(--_danger); font-size: .875rem; margin: .35rem 0 0; display: flex; gap: .35rem; }
.wlhl-field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--_danger); color: #fff; font: 700 .7rem/1 var(--_font); flex: none; margin-top: .1rem; }
.wlhl-hint { color: var(--_muted); font-size: .8125rem; margin: .35rem 0 0; }
.wlhl-req { color: var(--_accent-t); }
.wlhl-optional { font-weight: 400; color: var(--_muted); }
.wlhl-radios { border: 0; padding: 0; margin: 0 0 1rem; }
.wlhl-radio, .wlhl-check { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .75rem; border: 1px solid var(--_line); border-radius: var(--_r); margin-bottom: .4rem; cursor: pointer; }
.wlhl-radio:has(input:checked) { border-color: var(--_ink); background: var(--_paper); }
.wlhl-radio input, .wlhl-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--_ink); flex: none; }
.wlhl-check { border: 0; padding: 0; }
.wlhl-form-actions { display: flex; gap: .75rem; justify-content: space-between; flex-wrap: wrap; }
.wlhl-form-actions [data-wlhl-submit], .wlhl-form-actions [data-wlhl-next] { margin-left: auto; }
.wlhl-alert { padding: .9rem 1rem; border-radius: var(--_r); margin: 0 0 1rem; border-left: 4px solid var(--_accent); background: var(--c-accent-soft, #fef1e8); }
.wlhl-alert--error { border-left-color: var(--_danger); background: var(--c-danger-soft, #fdecea); }
.wlhl-alert--ok { border-left-color: var(--_ok); background: var(--c-success-soft, #e9f5ee); }
.wlhl-review dl { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem 1rem; margin: 0 0 1.25rem; padding: 1rem; background: var(--_paper); border-radius: var(--_r); }
.wlhl-review dt { font: 600 .75rem var(--_mono); text-transform: uppercase; letter-spacing: .06em; color: var(--_muted); padding-top: .15rem; }
.wlhl-review dd { margin: 0; white-space: pre-line; }
@media (max-width: 520px) { .wlhl-review dl { grid-template-columns: 1fr; } }

/* Quote items */
.wlhl-qitems { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.wlhl-qitem { display: grid; grid-template-columns: 64px 1fr auto auto; gap: .9rem; align-items: center; padding: .75rem; border: 1px solid var(--_line); border-radius: var(--_r); }
.wlhl-qitem img, .wlhl-qitem-ph { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--_paper); display: grid; place-items: center; color: var(--_muted); }
.wlhl-qitem-title { font-weight: 600; color: var(--_ink); text-decoration: none; display: block; }
.wlhl-qitem-sku { font: 500 .75rem var(--_mono); color: var(--_muted); }
.wlhl-qitem-notes { margin-top: .4rem; width: 100%; min-height: 38px !important; padding: .4rem .6rem !important; font-size: .875rem !important; border: 1px solid var(--_line); border-radius: 6px; }
.wlhl-qitem-qty label { display: block; font: 600 .7rem var(--_mono); text-transform: uppercase; color: var(--_muted); }
.wlhl-qitem-qty input { width: 6rem; min-height: 44px; text-align: center; font: 600 1rem var(--_mono); border: 1px solid var(--c-border-strong, #c9c4bb); border-radius: 6px; }
.wlhl-qitem-remove { width: 44px; height: 44px; border: 0; background: transparent; color: var(--_muted); border-radius: 6px; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; }
.wlhl-qitem-remove:hover { background: var(--c-danger-soft, #fdecea); color: var(--_danger); }
@media (max-width: 560px) { .wlhl-qitem { grid-template-columns: 48px 1fr auto; } .wlhl-qitem img, .wlhl-qitem-ph { width: 48px; height: 48px; } .wlhl-qitem-qty { grid-column: 2; } .wlhl-qitem-remove { grid-row: 1; grid-column: 3; } }
.wlhl-empty-state { text-align: center; padding: 1.5rem; border: 1px dashed var(--c-border-strong, #c9c4bb); border-radius: var(--_r); color: var(--_muted); margin-bottom: 1rem; }
.wlhl-link { color: var(--_accent-t); font-weight: 600; }

/* Suggestions */
.wlhl-suggest { background: #fff; border: 1px solid var(--_line); border-radius: var(--_r); box-shadow: var(--shadow-3, 0 22px 48px -18px rgba(11,27,43,.28)); }
.wlhl-suggest-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 6px; cursor: pointer; }
.wlhl-suggest-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--_paper); }
.wlhl-suggest-item.is-active, .wlhl-suggest-item:hover { background: var(--_paper); }
.wlhl-suggest-label { flex: 1; font-weight: 500; }
.wlhl-suggest-meta { font: 500 .75rem var(--_mono); color: var(--_muted); }
.wlhl-suggest-cat .wlhl-suggest-label::before { content: "\2192\00a0"; color: var(--_accent-t); }

/* Toast */
.wlhl-toast { display: flex; gap: .75rem; align-items: center; justify-content: space-between; background: var(--c-surface-darker, #0b1b2b); color: #fff; padding: .85rem 1rem; border-radius: var(--_r); box-shadow: 0 14px 34px -12px rgba(0,0,0,.45); border-left: 4px solid var(--_accent); font: 500 .9375rem var(--_font); }
.wlhl-toast.is-error { border-left-color: #ff8a7e; }
.wlhl-toast-action { color: var(--_accent); font-weight: 700; white-space: nowrap; }

/* Mini quote */
.wlhl-mini-items { list-style: none; margin: 0 0 1rem; padding: 0; }
.wlhl-mini-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--_line); }
.wlhl-mini-qty { font-family: var(--_mono); color: var(--_muted); }

.iti__country-list, .iti__dropdown-content { color: var(--_ink, #0b1b2b); }

/* General shortcodes: [wlhl_categories], [wlhl_company_details], [wlhl_conditions], [wlhl_thank_you] */
.wlhl-cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.wlhl-cat-item { padding: 1.25rem; border: 1px solid var(--c-border, #e3e0da); border-radius: var(--r-lg, 14px); background: var(--c-surface, #fff); }
.wlhl-cat-item h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.wlhl-cat-item h2 a { text-decoration: none; color: inherit; }
.wlhl-cat-item p { margin: 0 0 .75rem; font-size: .875rem; color: var(--c-text-muted, #5b6b7c); }
.wlhl-cat-item ul { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--c-border, #e3e0da); list-style: none; font-size: .875rem; }
.wlhl-cat-item ul a { color: var(--c-text-muted, #5b6b7c); }
.wlhl-company, .wlhl-conditions { margin: 0 0 1.5rem; border-top: 1px solid var(--c-border, #e3e0da); }
.wlhl-company div, .wlhl-conditions div { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--c-border, #e3e0da); }
.wlhl-company dt, .wlhl-conditions dt { font: 600 .75rem/1.6 var(--f-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted, #5b6b7c); }
.wlhl-conditions dt { font: 700 1rem/1.4 var(--f-body, system-ui, sans-serif); letter-spacing: 0; text-transform: none; color: var(--c-text, #0b1b2b); }
.wlhl-company dd, .wlhl-conditions dd { margin: 0; }
.wlhl-thanks { max-width: 40rem; padding: 1.5rem; border-left: 4px solid var(--c-success, #1f7a4d); background: var(--c-success-soft, #e9f5ee); border-radius: var(--r-md, 8px); }
.wlhl-thanks-lead { font-size: 1.125rem; font-weight: 700; }
.wlhl-mono { font-family: var(--f-mono, ui-monospace, monospace); }
.wlhl-thanks .wlhl-btn, .wlhl-cat-list, .wlhl-company { --_accent: var(--c-accent, #f26b1d); --_accent-h: var(--c-accent-hover, #d95a10); --_r: var(--r-md, 8px); --_font: var(--f-body, system-ui, sans-serif); }
@media (max-width: 600px) { .wlhl-company div, .wlhl-conditions div { grid-template-columns: 1fr; gap: .2rem; } }
