.hrc {
	--hrc-bg: #faf9f7;
	--hrc-card-bg: #ffffff;
	--hrc-border: #e5e2db;
	--hrc-border-strong: #d8d4ca;
	/* Text and accent colors read from the active Breakdance theme's
	   global palette (--bde-palette-color-1/-2/-4) when present, so
	   the widget automatically re-themes if the site's brand colors
	   change — no manual CSS edit needed each time (project owner's
	   explicit request, 2026-08-29). Each has our own original value
	   as the fallback, so the widget still looks correct standalone
	   (e.g. the local test harness, or any page without Breakdance).
	   --hrc-accent-soft/-border are derived from --hrc-accent via
	   color-mix() rather than being separate fixed hex values, so
	   they always stay visually harmonious with whatever the brand
	   color actually is, instead of clashing with it. */
	--hrc-text: var( --bde-palette-color-1, #201f1d );
	--hrc-muted: var( --bde-palette-color-4, #726e68 );
	--hrc-accent: var( --bde-palette-color-2, #b3122a );
	--hrc-accent-soft: color-mix( in srgb, var( --hrc-accent ) 12%, white );
	--hrc-accent-border: color-mix( in srgb, var( --hrc-accent ) 45%, white );
	--hrc-error: #b91c1c;
	--hrc-error-bg: #fef2f2;
	--hrc-error-border: #fecaca;
	--hrc-info-bg: #f2f5f9;
	--hrc-info-border: #d7e1ea;
	--hrc-dim: #3b5a8a;
	--hrc-radius-lg: 14px;
	--hrc-radius-md: 10px;
	/* Originally matched the real box-shadow value on this site's own
	   "Kérdésed van?" contact-form box (GYIK page, .bde-form-builder
	   element) verbatim (project owner's explicit request, 2026-08-30
	   — "a dobozok is használják azt a stílust, amit például az oldal
	   alján lévő űrlap") — sharp corners, no border, shadow-only edge
	   definition, still carried over below on .hrc-card/.hrc-preview-card.
	   That reference box is an isolated single element with generous
	   space around it, though, and its 75px blur radius visibly bled
	   across the 20-28px gaps between THIS layout's own grid of cards
	   onto their neighbors (customer, 2026-09-04, after the .hrc root
	   background fix made it more visible: "a jobb oldali shadowját
	   rálógatná a bal oldali panelekre"). Blur reduced and the x-offset
	   dropped (centered, so it doesn't lean into one particular
	   neighbor) to stay contained within those gaps instead. */
	--hrc-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	/* Hardcoded, not read from --bde-button-border-radius — see the
	   comment above .hrc-button for why that specific token can't be
	   used directly here. */
	--hrc-button-radius: 9999px;
	font-family: inherit;
	color: var( --hrc-text );
	/* Was var(--hrc-bg) (#faf9f7) -- a pale off-white that's visibly
	   different from the page's own white background, so it showed
	   through in every gap between the sharp-cornered .hrc-card panels
	   (the .hrc-layout/.hrc-bottom-grid grid gaps) as a faint tint
	   behind them (customer, 2026-09-04: "itt is mintha lenne
	   valamilyen háttér a fehér panelek alatt - ha van, azt szüntesd
	   meg, csak az árnyékok maradjanak"). Transparent removes it
	   entirely; the cards' own --hrc-card-bg (white) + --hrc-shadow are
	   untouched, so the panels still read as raised/separated purely
	   via their shadows, same as intended. --hrc-bg itself is left
	   defined but now unused (harmless, not worth extra churn on an
	   otherwise finalized file for one dead custom property). */
	background: transparent;
}

.hrc * {
	box-sizing: border-box;
}

.hrc-card {
	background: var( --hrc-card-bg );
	border-radius: 0;
	box-shadow: var( --hrc-shadow );
	padding: 28px;
}

.hrc-layout {
	display: grid;
	grid-template-columns: minmax( 300px, 2fr ) 3fr;
	gap: 28px;
	align-items: stretch;
}

.hrc-config-col,
.hrc-preview-col {
	display: flex;
	min-width: 0;
}

.hrc-config-col > .hrc-card {
	width: 100%;
}

@media ( max-width: 860px ) {
	.hrc-config-col > .hrc-card {
		height: auto;
	}
}

.hrc-bottom-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

@media ( max-width: 860px ) {
	.hrc-layout,
	.hrc-bottom-grid {
		grid-template-columns: 1fr;
	}

	/* Config inputs above the preview on mobile (2026-08-30) — while
	   fiddling with dimensions the drawing isn't visible anyway, so
	   the input fields (with their own invalid-state red border/icon
	   feedback) are more useful up top than the preview images. */
}

@media ( max-width: 640px ) {
	.hrc-preview-mini-row {
		grid-template-columns: 1fr;
	}

	.hrc-preview-mini + .hrc-preview-mini {
		border-left: none;
		border-top: 1px solid var( --hrc-border );
	}
}

/* --- Sections ---------------------------------------------------- */

.hrc-section {
	padding: 20px 0;
	border-top: 1px solid var( --hrc-border );
}

.hrc-section:first-child {
	padding-top: 0;
	border-top: none;
}

/* Compound selector (.hrc .hrc-section-title, not just .hrc-section-title
   alone) is deliberate, not stylistic — Breakdance's own global heading
   preset ships as ".breakdance h1, .breakdance h2, ... h3 ..." (one
   class + one element = higher specificity than a single class), which
   was silently winning over this rule and blowing "Típus kiválasztása"/
   "Bevitt adatok összegzése" up to the theme's ~42px h3 preset instead
   of the small uppercase label this was designed as (found via
   getComputedStyle + matching-rule inspection on the live page,
   2026-08-30, project owner's explicit request — "túl nagy, legyen
   kisebb"). Two classes beats one class + one element without needing
   !important. */
.hrc .hrc-section-title {
	margin: 0 0 16px;
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --hrc-muted );
}

/* --- Precision inputs --------------------------------------------- */

.hrc-precision-field {
	margin-bottom: 20px;
}

.hrc-precision-field:last-child {
	margin-bottom: 0;
}

.hrc-field-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	gap: 12px;
}

.hrc-field-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.95rem;
}

.hrc-field-label label {
	font-weight: 600;
}

.hrc-info-icon {
	width: 15px;
	height: 15px;
	flex: none;
	color: var( --hrc-muted );
	border: none;
	background: none;
	padding: 0;
	margin: 0;
}

.hrc-info-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

button.hrc-info-icon {
	cursor: pointer;
}

button.hrc-info-icon:hover,
button.hrc-info-icon:focus-visible {
	color: var( --hrc-accent );
}

/* Border/radius/focus treatment read from Breakdance's own WooCommerce
   form-field tokens (2026-08-30, project owner's explicit request) —
   on this site that resolves to a plain 1px gray border with NO
   rounding at all, so --hrc-radius-md is deliberately not used here
   anymore. Falls back to the plugin's own original look when no
   Breakdance theme is present (e.g. the local test harness). */
.hrc-precision-input {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	border: 1px solid var( --bde-palette-color-4, var( --hrc-border-strong ) );
	border-radius: var( --bde-woo-forms__inputs-border-radius, 0px );
	background: var( --bde-woo-forms__inputs-background-color, #fff );
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hrc-precision-input:focus-within {
	border-color: var( --bde-woo-forms__inputs-border-color-focused, var( --hrc-accent ) );
	box-shadow: var( --bde-woo-forms__inputs-shadow-focused, 0 0 0 3px var( --hrc-accent-soft ) );
}

.hrc-precision-input input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-size: 1.1rem;
	font-weight: 600;
	padding: 12px 0;
	color: var( --hrc-text );
	font-variant-numeric: tabular-nums;
}

.hrc-precision-suffix {
	color: var( --hrc-muted );
	font-size: 0.85rem;
}

/* Invalid-state field styling (2026-08-30) — mirrors the red already
   used by the error message/banner, so an error reads clearly on the
   field itself even when the preview drawing isn't visible (mobile). */
.hrc-field-warn-icon {
	display: none;
	flex: none;
	font-size: 1rem;
	line-height: 1;
	color: var( --hrc-error );
}

.hrc-precision-input.is-invalid,
.hrc-precision-input.is-invalid:focus-within {
	border-color: var( --hrc-error );
	box-shadow: none;
}

.hrc-precision-input.is-invalid input {
	color: var( --hrc-error );
}

.hrc-precision-input.is-invalid .hrc-field-warn-icon {
	display: inline-block;
}

.hrc-link-button {
	border: none;
	background: none;
	color: var( --hrc-accent );
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 0 0;
}

.hrc-link-button:hover {
	text-decoration: underline;
}

/* Bottom-of-panel "Bezárás" (2026-09-04, customer: "ha lenyitom
   szerkesztésre, nem záródik vissza... legyen alul egy Bezárás opció
   mindkettőn (szolidan, jobbra rendezve)") -- deliberately quieter
   than .hrc-link-button (muted, not accent-colored/bold) since this is
   a secondary "never mind, close it" action, not an invitation to
   start a search; justify-self:end right-aligns it within
   .hrc-vehicle-panel's own single-column grid. */
.hrc-panel-close {
	justify-self: end;
	border: none;
	background: none;
	color: var( --hrc-muted );
	font-size: 0.8rem;
	cursor: pointer;
	padding: 4px 0 0;
}

.hrc-panel-close:hover {
	color: var( --hrc-text );
	text-decoration: underline;
}

.hrc-vehicle-badge {
	margin-top: 10px;
	padding: 10px 12px;
	background: #fbfaf8;
	border: 1px solid var( --hrc-border );
	border-radius: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.hrc-vehicle-badge[hidden] {
	display: none;
}

.hrc-vehicle-badge-text {
	flex: 1;
	min-width: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var( --hrc-text );
	overflow-wrap: break-word;
}

/* Badge thumbnail (2026-08-31, customer's explicit follow-up): the
   collapsed "JR Wheels JR14 8×15…" summary shown after a resolve gets
   the same thumbnail the model list showed, sized to fit inside the
   compact single-line badge rather than stretching it. Hidden by
   JS when the resolved model has no real image (never a placeholder). */
.hrc-wheel-badge-thumb {
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var( --hrc-border-strong );
	border-radius: 0;
	background: #fff;
	cursor: zoom-in;
	overflow: hidden;
}

.hrc-wheel-badge-thumb[hidden] {
	display: none;
}

.hrc-wheel-badge-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.hrc-vehicle-badge-actions {
	display: flex;
	gap: 6px;
	flex: none;
}

.hrc-vehicle-panel {
	margin-top: 12px;
	padding: 14px;
	background: #fbfaf8;
	border: 1px solid var( --hrc-border );
	border-radius: 0;
	display: grid;
	gap: 8px;
}

.hrc-vehicle-panel[hidden] {
	display: none;
}

.hrc-vehicle-panel select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var( --bde-palette-color-4, var( --hrc-border-strong ) );
	border-radius: var( --bde-woo-forms__inputs-border-radius, 0px );
	background: var( --bde-woo-forms__inputs-background-color, #fff );
	font-size: 0.9rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hrc-vehicle-panel select:focus {
	outline: none;
	border-color: var( --bde-woo-forms__inputs-border-color-focused, var( --hrc-accent ) );
	box-shadow: var( --bde-woo-forms__inputs-shadow-focused, 0 0 0 3px var( --hrc-accent-soft ) );
}

.hrc-vehicle-status {
	min-height: 1.2em;
	font-size: 0.82rem;
	color: var( --hrc-muted );
	margin: 0;
}

/* Model thumbnail list (2026-08-31, customer's explicit request): the
   real <select data-hrc-wheel="model"> stays the actual source of
   truth (see wheel-lookup.js's renderModelList()) — this is a parallel
   clickable card grid so a real image can appear before each model's
   name, which a native <option> can't do. Only rendered when there's
   an actual choice among more than one model AND at least one of that
   brand's models has a real downloaded photo (2026-09-01, customer's
   own follow-up — a brand with ZERO images anywhere, e.g. Ronal, was
   rendering an all-blank card grid that looked broken; wheel-lookup.js
   now falls back to the plain native select for that case instead, so
   this hide rule only applies while the JS has actually populated and
   shown the card list — toggled via [hidden] on the select itself,
   set/cleared by wheel-lookup.js's own renderModelList()/loadModels()). */
.hrc-vehicle-panel select[data-hrc-wheel="model"][hidden] {
	display: none;
}

.hrc-wheel-model-list {
	display: grid;
	/* Fixed 2 columns (2026-09-01, customer's own report) — the previous
	   auto-fill(minmax(108px,1fr)) sized columns purely off the
	   container's own available width, which happened to fit 3 for a
	   short, scrollbar-less list (e.g. BBS) but only 2 once a longer
	   list's own vertical scrollbar ate into that width (e.g. DBV) —
	   inconsistent between brands for no reason a customer should ever
	   notice. A flat `repeat(2, 1fr)` is always exactly 2, regardless of
	   item count or scrollbar presence. */
	grid-template-columns: repeat( 2, 1fr );
	gap: 8px;
	max-height: 340px;
	overflow-y: auto;
}

.hrc-wheel-model-list[hidden] {
	display: none;
}

.hrc-wheel-model-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px;
	background: #fff;
	border: 1px solid var( --hrc-border-strong );
	border-radius: 0;
	font-family: inherit;
	font-size: 0.82rem;
	color: var( --hrc-text );
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hrc-wheel-model-item:hover {
	border-color: var( --hrc-accent );
}

.hrc-wheel-model-item.is-selected {
	border-color: var( --hrc-accent );
	box-shadow: 0 0 0 2px var( --hrc-accent-soft );
}

.hrc-wheel-model-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.hrc-wheel-model-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #f6f5f3;
}

/* Placeholder for a model with no downloaded photo of its own, shown
   only when the card list itself is already active (i.e. at least one
   OTHER model in the same brand does have a real image — a brand with
   NO images at all uses the plain select fallback above instead, never
   this). 2026-09-01, customer's own follow-up: keeps the grid visually
   consistent instead of a jarring blank cell. */
.hrc-wheel-model-thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f6f5f3;
}

.hrc-wheel-model-thumb--placeholder img {
	width: 85%;
	height: 85%;
	object-fit: contain;
}

.hrc-wheel-model-zoom {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 255, 255, 255, 0.9 );
	border: 1px solid var( --hrc-border-strong );
	font-size: 12px;
	line-height: 1;
	cursor: zoom-in;
}

.hrc-wheel-model-name {
	line-height: 1.3;
}

.hrc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba( 0, 0, 0, 0.75 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.hrc-lightbox[hidden] {
	display: none;
}

.hrc-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	background: #fff;
}

.hrc-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 32px;
	line-height: 1;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
}

.hrc-wheel-code-search {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var( --hrc-border );
}

.hrc-wheel-code-search label {
	display: block;
	font-size: 0.82rem;
	color: var( --hrc-muted );
	margin-bottom: 6px;
}

.hrc-wheel-code-search-row {
	display: flex;
	gap: 8px;
}

.hrc-wheel-code-search-row input {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var( --bde-palette-color-4, var( --hrc-border-strong ) );
	border-radius: var( --bde-woo-forms__inputs-border-radius, 0px );
	background: var( --bde-woo-forms__inputs-background-color, #fff );
	font-size: 0.9rem;
}

.hrc-wheel-code-search-row input:focus {
	outline: none;
	border-color: var( --bde-woo-forms__inputs-border-color-focused, var( --hrc-accent ) );
	box-shadow: var( --bde-woo-forms__inputs-shadow-focused, 0 0 0 3px var( --hrc-accent-soft ) );
}

.hrc-wheel-code-search-row .hrc-link-button {
	flex-shrink: 0;
	white-space: nowrap;
}

.hrc-note {
	font-size: 0.78rem;
	color: var( --hrc-muted );
	margin-top: 10px;
	line-height: 1.4;
}

/* --- H/U selection cards ------------------------------------------ */

.hrc-type-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* Squared off to match the input fields' own corners exactly (project
   owner's explicit request, 2026-08-30 — "az U/H profilválasztó is
   legyen ugyanolyan szögletes, mint az input fieldek") — same border
   color/radius source as .hrc-precision-input above. */
.hrc-type-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 10px;
	border: 1.5px solid var( --bde-palette-color-4, var( --hrc-border-strong ) );
	border-radius: var( --bde-woo-forms__inputs-border-radius, 0px );
	cursor: pointer;
	background: #fff;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hrc-type-card:hover {
	border-color: #c7c2b8;
}

.hrc-type-card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.hrc-type-card-icon {
	width: 64px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var( --hrc-muted );
}

.hrc-type-card-icon svg {
	width: 100%;
	height: 100%;
}

.hrc-type-card-name {
	font-weight: 700;
	font-size: 0.92rem;
}

.hrc-type-card.is-selected {
	border-color: var( --hrc-accent );
	background: var( --hrc-accent-soft );
	box-shadow: 0 0 0 1px var( --hrc-accent ) inset;
}

.hrc-type-card.is-selected .hrc-type-card-icon,
.hrc-type-card.is-selected .hrc-type-card-name {
	color: var( --hrc-accent );
}

.hrc-info-box {
	display: flex;
	gap: 10px;
	/* Vertically centered against the text block regardless of how many
	   lines it wraps to (2026-09-01, customer's own follow-up — was
	   flex-start, which only lined the icon up with the first line of a
	   2+ line text). */
	align-items: center;
	margin-top: 14px;
	padding: 12px 14px;
	background: var( --hrc-info-bg );
	border: 1px solid var( --hrc-info-border );
	border-radius: var( --hrc-radius-md );
	font-size: 0.82rem;
	color: var( --hrc-text );
	line-height: 1.4;
}

.hrc-info-box .hrc-info-icon {
	color: var( --hrc-dim );
}

/* --- Summary -------------------------------------------------------- */

.hrc-summary-list {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}

.hrc-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9rem;
	padding-bottom: 8px;
	border-bottom: 1px dashed var( --hrc-border );
}

.hrc-summary-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.hrc-summary-label {
	color: var( --hrc-muted );
}

.hrc-summary-value {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hrc-errors {
	list-style: none;
	margin: 0 0 16px;
	padding: 10px 12px;
	background: var( --hrc-error-bg );
	border: 1px solid var( --hrc-error-border );
	border-radius: var( --hrc-radius-md );
	color: var( --hrc-error );
	font-size: 0.85rem;
}

.hrc-errors li + li {
	margin-top: 4px;
}

/* --- Price / quantity / CTA ----------------------------------------- */

.hrc-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.hrc-price {
	font-size: 1.7rem;
	font-weight: 700;
}

.hrc-price-note {
	margin: 0 0 16px;
	font-size: 0.78rem;
	color: var( --hrc-muted );
}

.hrc-qty {
	display: flex;
	align-items: center;
	border: 1px solid var( --hrc-border-strong );
	border-radius: var( --hrc-radius-md );
	overflow: hidden;
}

.hrc-qty-stepper {
	border: none;
	background: #fbfaf8;
	width: 32px;
	height: 34px;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.hrc-qty-stepper:hover {
	background: var( --hrc-accent-soft );
	color: var( --hrc-accent );
}

.hrc-qty input {
	width: 40px;
	border: none;
	outline: none;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hrc-cart-row {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.hrc-cart-row .hrc-button {
	flex: 1;
}

/* Shared shape/typography for every button in the widget, read directly
   from Breakdance's own button tokens (2026-08-30, project owner's
   explicit request — "használd a breakdance beállításokat... ugyanazt
   a gombformát"). --hrc-button-radius is hardcoded to the pill shape
   (9999px) rather than reading --bde-button-border-radius directly:
   that token itself resolves to a small 3px on this site, but every
   *actually rendered* Breakdance/WooCommerce button (verified via
   getComputedStyle on the live "Kosárba teszem" button) comes out at
   9999px — a later, more specific site-wide override wins the cascade
   for the real button classes in a way this widget's own CSS can't
   hook into via a single variable. Falls back to the plugin's own
   original rounded-rectangle radius when no Breakdance theme is
   present at all (e.g. the local test harness). */
.hrc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: var( --bde-button-padding-base, 13px 22px );
	border-radius: var( --hrc-button-radius, var( --hrc-radius-md ) );
	border: var( --bde-button-border-width, 1px ) solid transparent;
	font-size: var( --bde-button-font-size, 1rem );
	font-weight: var( --bde-button-font-weight, 700 );
	line-height: var( --bde-button-line-height, normal );
	cursor: pointer;
	transition: background var( --bde-transition-duration, 0.15s ) ease, color var( --bde-transition-duration, 0.15s ) ease, border-color var( --bde-transition-duration, 0.15s ) ease;
}

.hrc-button svg {
	width: 18px;
	height: 18px;
}

/* Primary: "Adatok lekérése" (vehicle-fetch). Breakdance's own primary
   button doesn't change color on hover at all (its -hover tokens equal
   the base ones) — matched literally here instead of keeping our old
   hardcoded dark-maroon hover shade, per the project owner's explicit
   request to remove it. */
.hrc-button-primary {
	background: var( --bde-button-primary-background-color, var( --hrc-accent ) );
	color: var( --bde-button-primary-text-color, #fff );
	border-color: var( --bde-button-primary-border-color, transparent );
}

.hrc-button-primary:hover:not( :disabled ) {
	background: var( --bde-button-primary-background-color-hover, var( --hrc-accent ) );
	color: var( --bde-button-primary-text-color-hover, #fff );
	border-color: var( --bde-button-primary-border-color-hover, transparent );
}

.hrc-button:disabled {
	background: #d8d4ca;
	color: #928d84;
	border-color: transparent;
	cursor: not-allowed;
}

.hrc-delivery-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
	color: var( --hrc-muted );
}

.hrc-delivery-info li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hrc-delivery-info svg {
	width: 15px;
	height: 15px;
	flex: none;
}

/* --- Preview card -------------------------------------------------- */

.hrc-preview-card {
	background: var( --hrc-card-bg );
	border-radius: 0;
	box-shadow: var( --hrc-shadow );
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.hrc-tabs {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px 0;
	border-bottom: 1px solid var( --hrc-border );
}

.hrc-tabs-group {
	display: flex;
	gap: 4px;
}

.hrc-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: none;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var( --hrc-muted );
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.hrc-tab svg {
	width: 16px;
	height: 16px;
}

.hrc-tab:hover {
	color: var( --hrc-text );
}

.hrc-tab.is-active {
	color: var( --hrc-accent );
	border-bottom-color: var( --hrc-accent );
}

.hrc-tab-actions {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}

.hrc-icon-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var( --hrc-border-strong );
	border-radius: 8px;
	background: #fff;
	color: var( --hrc-muted );
	cursor: pointer;
}

.hrc-icon-button:hover {
	color: var( --hrc-text );
	border-color: #c7c2b8;
}

.hrc-icon-button svg {
	width: 16px;
	height: 16px;
}

.hrc-preview-main {
	position: relative;
	padding: 20px;
	min-height: 340px;
	flex: 1;
}

.hrc-preview-mini-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var( --hrc-border );
}

.hrc-preview-mini {
	padding: 16px;
	min-width: 0;
	cursor: pointer;
	transition: background 0.12s ease;
}

.hrc-preview-mini:hover {
	background: #fbfaf8;
}

.hrc-preview-mini:hover .hrc-preview-mini-title {
	color: var( --hrc-accent );
}

.hrc-preview-mini + .hrc-preview-mini {
	border-left: 1px solid var( --hrc-border );
}

.hrc-preview-mini-title {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --hrc-muted );
}

.hrc-preview-mini-body {
	height: 160px;
}

.hrc-preview-svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* --- Isometric rendering -------------------------------------------- */

.hrc-iso-top {
	stroke: url(#hrc-grad-top-stroke);
	stroke-width: 1;
	stroke-linejoin: round;
}

.hrc-iso-wall {
	stroke: url(#hrc-grad-wall-stroke);
	stroke-width: 1;
	stroke-linejoin: round;
}

.hrc-iso-inner-wall,
.hrc-iso-inner-chamfer {
	stroke: url(#hrc-grad-inner-wall-stroke);
	stroke-width: 1;
	stroke-linejoin: round;
}

/* Dark backing shapes (see renderIsoMarkup's z-order comment) are only
   ever meant to fill color behind real surfaces' own edges, not to be
   a visible shape in their own right — they intentionally peek through
   at the outer silhouette to plug a pinch-gap, and a large enough
   reach angle can make that peeking sliver wide enough that its own
   stroke reads as a distracting second line running parallel to the
   ring's real outline (confirmed against a reference image,
   2026-08-20 — "mi az a két-két vonal a peremen?"). No stroke, fill
   only. */
.hrc-iso-backing {
	stroke: none;
}

.hrc-iso-shadow {
	opacity: 1;
}

.hrc-callout-line {
	stroke: var( --hrc-dim );
	stroke-width: 1;
	fill: none;
}

.hrc-callout-label {
	font-size: 13px;
	font-weight: 600;
	fill: var( --hrc-dim );
}

.hrc-callout-label-muted {
	font-size: 12px;
	font-weight: 500;
	fill: var( --hrc-muted );
}

/* --- Plan / measurement view ------------------------------------------ */

.hrc-plan-outer {
	fill: none;
	stroke: var( --hrc-text );
	stroke-width: 1.5;
}

.hrc-plan-inner {
	fill: none;
	stroke: var( --hrc-dim );
	stroke-width: 1.5;
}

.hrc-plan-flange {
	fill: none;
	stroke: var( --hrc-muted );
	stroke-width: 1.25;
	stroke-dasharray: 5 4;
}

/* --- Cross-section (technical drawing) -------------------------------- */

.hrc-profile {
	fill: url(#hrc-hatch);
	stroke: var( --hrc-text );
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.hrc-profile-invalid {
	fill: var( --hrc-error-bg );
	stroke: var( --hrc-error );
}

.hrc-profile-base {
	fill: #eef0f2;
}

.hrc-centerline {
	stroke: #b7bcc4;
	stroke-width: 1;
	stroke-dasharray: 10 4 2 4;
}

.hrc-connector-line {
	stroke: #b0b6bf;
	stroke-width: 0.9;
}

.hrc-dim-line {
	stroke: var( --hrc-dim );
	stroke-width: 1;
}

.hrc-dim-ext {
	stroke: #b0b6bf;
	stroke-width: 0.75;
}

.hrc-dim-label {
	font-size: 13px;
	font-weight: 600;
	fill: var( --hrc-dim );
}

.hrc-dim-label-bg {
	fill: #fff;
	opacity: 0.92;
}

.hrc-section-caption {
	font-size: 12px;
	font-weight: 600;
	fill: var( --hrc-muted );
}

/* --- In-SVG warning banner (shown together with the red/invalid fill,
   never as the only feedback) ------------------------------------------ */

.hrc-warn-banner rect {
	fill: var( --hrc-error );
	opacity: 0.94;
}

.hrc-warn-banner text {
	fill: #fff;
	font-weight: 600;
}

/* --- Undrawable-geometry placeholder (see preview.js's isUndrawable())
   ------------------------------------------------------------------- */

.hrc-placeholder-ring {
	fill: none;
	stroke: var( --hrc-border-strong );
	stroke-width: 2;
	stroke-dasharray: 6 6;
}

.hrc-placeholder-caption {
	font-size: 13px;
	font-weight: 600;
	fill: var( --hrc-muted );
}

/* --- Magnify modal ---------------------------------------------------- */

.hrc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hrc-modal[hidden] {
	display: none;
}

.hrc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 32, 31, 29, 0.55 );
}

.hrc-modal-content {
	position: relative;
	width: 80vw;
	height: 80vh;
	max-width: 1400px;
	background: var( --hrc-card-bg );
	border-radius: var( --hrc-radius-lg );
	box-shadow: 0 24px 60px rgba( 32, 31, 29, 0.35 );
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hrc-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var( --hrc-border );
	flex: none;
}

.hrc-modal-body {
	flex: 1;
	padding: 24px;
	min-height: 0;
}

.hrc-modal-body .hrc-preview-svg {
	width: 100%;
	height: 100%;
}

/* --- Field help popover ("i" icons) — small, content-fit dialog,
   centered on all screen sizes (rather than an anchored popover) so
   it stays safely on-screen on narrow mobile viewports without any
   edge-collision positioning logic. Content comes from the plugin's
   own admin settings screen (rich text + images), never hardcoded
   here. ------------------------------------------------------------ */

.hrc-info-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hrc-info-modal[hidden] {
	display: none;
}

.hrc-info-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 32, 31, 29, 0.55 );
}

.hrc-info-modal-content {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 80vh;
	background: var( --hrc-card-bg );
	border-radius: var( --hrc-radius-lg );
	box-shadow: 0 24px 60px rgba( 32, 31, 29, 0.35 );
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hrc-info-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var( --hrc-border );
	flex: none;
}

.hrc-info-modal-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.hrc-info-modal-body {
	flex: 1;
	padding: 16px;
	overflow-y: auto;
	line-height: 1.55;
	font-size: 0.92rem;
}

.hrc-info-modal-body img {
	max-width: 100%;
	height: auto;
	border-radius: var( --hrc-radius-md );
}

.hrc-info-modal-body p:first-child {
	margin-top: 0;
}

.hrc-info-modal-body p:last-child {
	margin-bottom: 0;
}
