/* bauxo Zaun-Konfigurator */
.bxfc-app {
	--bxfc-accent: rgb(0, 120, 88);
	--bxfc-border: #e2e5e9;
	--bxfc-bg: #f7f8f9;
	margin: 0 auto;
	max-width: 1200px;
	font-size: 15px;
	line-height: 1.55;
}

/* Neutralize theme button styling (uppercase etc.) inside the configurator. */
.bxfc-app button,
.bxfc-app .bxfc-card,
.bxfc-app .bxfc-pill,
.bxfc-app .bxfc-swatch,
.bxfc-app .bxfc-step {
	text-transform: none;
	letter-spacing: normal;
	font-weight: normal;
}
.bxfc-app .bxfc-card strong,
.bxfc-app .bxfc-btn { font-weight: 600; }

.bxfc-head h2 { margin: 0 0 .3em; }
.bxfc-head p { color: #555; margin: 0 0 1.2em; }

/* Live preview */
.bxfc-preview {
	border: 1px solid var(--bxfc-border);
	border-radius: 12px;
	background: linear-gradient(#fdfdfd, #f2f4f5);
	padding: 18px 20px 8px;
	margin: 0 0 22px;
}
.bxfc-svg { width: 100%; height: auto; display: block; }
.bxfc-svg-dim { font-size: 13px; fill: #5a6067; font-family: inherit; }
.bxfc-svg-label { font-size: 12px; fill: #5a6067; font-family: inherit; }
.bxfc-preview-caption {
	text-align: center;
	color: #777;
	font-size: .85em;
	margin: 4px 0 8px;
}

/* Step navigation */
.bxfc-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	counter-reset: step;
}
.bxfc-step {
	display: inline-flex;
	border: 1px solid var(--bxfc-border);
	border-radius: 999px;
	background: #fff;
	font-size: .94em;
	line-height: 1.2;
	user-select: none;
}
.bxfc-step-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 10px;
	background: none;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
/* Fixed box + fixed font size: the circle must not grow or shrink with the
   label ("✓" vs "10") - all bubbles stay identical. */
.bxfc-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e7eaec;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
}
.bxfc-step.is-active { border-color: var(--bxfc-accent); box-shadow: 0 0 0 1px var(--bxfc-accent) inset; }
.bxfc-step.is-active .bxfc-step-num { background: var(--bxfc-accent); color: #fff; }
.bxfc-step.is-done { color: var(--bxfc-accent); }
.bxfc-step.is-done .bxfc-step-num { background: var(--bxfc-accent); color: #fff; }
.bxfc-step-label { white-space: nowrap; }

/* Narrow screens: only the current step keeps its label, the rest shrink
   to their number bubble - eight steps stay one readable row. */
@media (max-width: 640px) {
	.bxfc-steps { gap: 6px; }
	.bxfc-step:not(.is-active) .bxfc-step-label { display: none; }
	.bxfc-step:not(.is-active) .bxfc-step-btn { padding: 6px; }
}

.bxfc-stepnav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
}
.bxfc-stepnav .bxfc-btn { width: auto; min-width: 130px; }
.bxfc-btn--next { margin-left: auto; }

/* Gifts */
.bxfc-gift { margin: 10px 0; }
.bxfc-gift--granted {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	background: #eef8f2;
	border: 1px solid #bfe3cd;
	border-radius: 8px;
	padding: 8px 12px;
}
.bxfc-gift--granted strong { color: #00753b; }
.bxfc-gift-bar {
	height: 8px;
	border-radius: 999px;
	background: #e4e7ea;
	overflow: hidden;
	margin-bottom: 4px;
}
.bxfc-gift-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--bxfc-accent);
	transition: width .4s ease;
}
.bxfc-row-gift td { background: #f4fbf7; }
.bxfc-gratis { color: #00753b; }

/* Mengenrabatt / Gratis-Versand preview (auto-apply coupons) */
.bxfc-disc {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	background: #eef8f2;
	border: 1px solid #bfe3cd;
	border-radius: 8px;
	padding: 6px 12px;
	margin: 10px 0;
	font-size: .92em;
}
.bxfc-disc strong { color: #00753b; white-space: nowrap; }
.bxfc-disc-next { margin: 10px 0; }
.bxfc-disc-next small { color: #777; }
.bxfc-disc-after { text-align: right; color: #00753b; margin: 2px 0 0; }
.bxfc-disc-summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #d5d9dd;
	color: #00753b;
	font-size: .95em;
}
.bxfc-disc-summary strong { white-space: nowrap; }
.bxfc-total--after { color: #00753b; margin-top: 4px; }

.bxfc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
	gap: clamp(20px, 3vw, 36px);
	align-items: start;
}
@media (max-width: 880px) {
	.bxfc-layout { grid-template-columns: 1fr; }
}

.bxfc-section {
	border: 1px solid var(--bxfc-border);
	border-radius: 12px;
	padding: 24px 26px;
	margin: 0 0 22px;
	background: #fff;
}
.bxfc-section > h3 { margin: 0 0 18px; font-size: 1.1em; }

.bxfc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 22px 26px;
}
.bxfc-field--wide { grid-column: 1 / -1; }

/* Fields are flex columns: the description absorbs the free space, so the
   controls of neighbouring fields line up even when labels/descriptions
   wrap to a different number of lines. */
.bxfc-field { display: flex; flex-direction: column; align-items: stretch; }
.bxfc-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.bxfc-field small { display: block; margin-top: 6px; }
.bxfc-fielddesc { display: block; margin: -2px 0 auto; padding-bottom: 8px; }

.bxfc-input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--bxfc-border);
	border-radius: 8px;
	background: #fff;
	font: inherit;
}
.bxfc-input--small { width: 76px; }

.bxfc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}
/* Gate cards carry inline configuration - two per row gives the
   dropdowns and steppers room to breathe. */
.bxfc-cards--gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bxfc-cards--gates .bxfc-card-img { height: 190px; }
.bxfc-cards--gates .bxfc-gatecfg-grid {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
@media (max-width: 560px) {
	.bxfc-cards--gates { grid-template-columns: 1fr; }
}
.bxfc-card {
	position: relative;
	text-align: left;
	padding: 16px 18px;
	border: 2px solid var(--bxfc-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	line-height: 1.45;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bxfc-card-desc { display: block; color: #666; font-size: .88em; margin-top: 4px; }
.bxfc-card.is-active { border-color: var(--bxfc-accent); box-shadow: 0 0 0 1px var(--bxfc-accent) inset; }
.bxfc-card:hover { border-color: #c6ccd2; box-shadow: 0 4px 16px rgba(25, 35, 45, .08); }
.bxfc-card.is-active:hover {
	border-color: var(--bxfc-accent);
	box-shadow: 0 0 0 1px var(--bxfc-accent) inset, 0 4px 16px rgba(25, 35, 45, .08);
}
/* Check badge on the selected card. */
.bxfc-card.is-active::after {
	content: "✓";
	position: absolute;
	top: 10px;
	right: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--bxfc-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 26px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.bxfc-pills { display: flex; flex-wrap: wrap; gap: 9px; }

/* Number input with an explanatory unit next to it (e.g. coverage meters). */
.bxfc-inputrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.bxfc-inputrow .bxfc-input { flex: 0 0 110px; width: 110px; }
.bxfc-inputrow .bxfc-unit { color: #555; font-size: .9em; }
.bxfc-field .bxfc-pills + .bxfc-inputrow + small,
.bxfc-field .bxfc-pills + small { margin-top: 10px; }
.bxfc-pill {
	padding: 9px 16px;
	border: 1px solid var(--bxfc-border);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font: inherit;
}
.bxfc-pill.is-active { background: var(--bxfc-accent); border-color: var(--bxfc-accent); color: #fff; }

.bxfc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bxfc-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid var(--bxfc-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font: inherit;
}
.bxfc-swatch.is-active { border-color: var(--bxfc-accent); box-shadow: 0 0 0 1px var(--bxfc-accent) inset; }
.bxfc-swatch-dot {
	width: 16px; height: 16px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,.15);
	display: inline-block;
}

.bxfc-remove {
	border: none; background: none;
	font-size: 20px; line-height: 1;
	cursor: pointer; color: #a00;
	padding: 4px 8px;
}

.bxfc-summary {
	position: sticky;
	top: 20px;
	border: 1px solid var(--bxfc-border);
	border-radius: 12px;
	padding: 24px 26px;
	background: var(--bxfc-bg);
}
.bxfc-summary h3 { margin: 0 0 14px; }

.bxfc-table { width: 100%; border-collapse: collapse; margin: 0 0 10px; }
.bxfc-table td {
	padding: 7px 4px;
	border-bottom: 1px solid var(--bxfc-border);
	vertical-align: top;
	font-size: .92em;
}
.bxfc-table strong { display: block; }
.bxfc-table small { color: #777; display: block; }
.bxfc-qty-col { white-space: nowrap; width: 40px; font-weight: 600; }
.bxfc-price-col { white-space: nowrap; text-align: right; width: 90px; }

.bxfc-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 1.2em;
	margin: 14px 0;
	padding-top: 8px;
	border-top: 2px solid #333;
}

/* A new quote is calculating: the shown numbers belong to the previous state. */
.bxfc-total--pending strong {
	opacity: 0.45;
	transition: opacity 0.15s;
}

.bxfc-btn {
	display: inline-block;
	width: 100%;
	padding: 13px 18px;
	border-radius: 8px;
	border: 1px solid var(--bxfc-accent);
	background: #fff;
	color: var(--bxfc-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.bxfc-btn--primary { background: var(--bxfc-accent); color: #fff; }
.bxfc-btn--primary:hover { filter: brightness(1.08); }
.bxfc-btn--primary[disabled] { opacity: .6; cursor: wait; }
.bxfc-btn--ghost { width: auto; }

.bxfc-notes { color: #666; font-size: .9em; padding-left: 1.2em; }
.bxfc-editnote {
	background: #fff8e1;
	border: 1px solid #f0d780;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.bxfc-muted { color: #777; }
.bxfc-small { font-size: .85em; }
.bxfc-error { color: #b00020; font-weight: 600; }
.bxfc-warning { color: #8a6d00; }
.bxfc-loading { padding: 40px 0; text-align: center; color: #777; }

/* Step intro */
.bxfc-stepintro {
	color: #555;
	background: #f4f6f7;
	border-left: 3px solid var(--bxfc-accent);
	border-radius: 0 8px 8px 0;
	padding: 12px 16px;
	margin: 0 0 20px;
}

/* Cards with a small product image beside the text (e.g. post systems) */
.bxfc-card--media { display: flex; gap: 12px; align-items: flex-start; }
.bxfc-card-img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 84px;
	background: #f2f4f5;
}
.bxfc-card-body { display: block; }
.bxfc-ab { display: block; margin-top: 5px; font-style: normal; font-weight: 600; color: var(--bxfc-accent); font-size: .9em; }

/* Model cards: full-width image on top, key facts below, price pinned to the bottom */
.bxfc-card--model {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}
.bxfc-card--model .bxfc-card-img {
	width: 100%;
	height: 160px;
	flex: 0 0 auto;
	object-fit: contain;
	border-radius: 0;
	box-sizing: border-box;
	padding: 12px 16px;
	background: linear-gradient(#fdfdfd, #f2f4f5);
	border-bottom: 1px solid var(--bxfc-border);
}
.bxfc-card--model .bxfc-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 14px 16px 16px;
}
.bxfc-card--model .bxfc-card-body > strong { font-size: 1.02em; }
.bxfc-card--model .bxfc-ab { margin-top: auto; padding-top: 12px; font-size: .95em; }

.bxfc-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bxfc-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--bxfc-bg);
	border: 1px solid var(--bxfc-border);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: .78em;
	color: #555;
	white-space: nowrap;
}
.bxfc-card-colors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-top: 10px;
}
.bxfc-card-colors .bxfc-swatch-dot { width: 15px; height: 15px; }
.bxfc-card-colors-label { color: #777; font-size: .8em; margin-left: 3px; }

/* Gate cards reuse the model-card template; the extras below are tiny:
   a count pill ("2× eingeplant"), an add-affordance line and a photo
   placeholder. Disabled cards (gate limit reached) fade out. */
.bxfc-card-count {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--bxfc-accent);
	color: #fff;
	font-size: .78em;
	font-weight: 600;
}
.bxfc-card-add {
	display: block;
	margin-top: 8px;
	color: var(--bxfc-accent);
	font-size: .9em;
	font-weight: 600;
}
.bxfc-card-noimg { display: block; }
.bxfc-card:disabled,
.bxfc-card:disabled:hover {
	opacity: .55;
	cursor: default;
	box-shadow: none;
	border-color: var(--bxfc-border);
}

/* Planned gate cards: the configuration (width, options, position,
   quantity) lives INSIDE the card as compact labeled dropdowns - the
   card is a <div> then, not a <button>, so the controls stay usable. */
.bxfc-card--gatecfg { cursor: default; }
.bxfc-gatecfg {
	border-top: 1px solid var(--bxfc-border);
	background: var(--bxfc-bg);
	padding: 12px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bxfc-gatecfg-block + .bxfc-gatecfg-block {
	border-top: 1px dashed var(--bxfc-border);
	padding-top: 10px;
}
.bxfc-gatecfg-blockhead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 22px;
	margin-bottom: 2px;
}
.bxfc-gatecfg-blockhead .bxfc-remove { padding: 0 2px; }
.bxfc-gatecfg-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.bxfc-gateopt { display: flex; flex-direction: column; gap: 4px; }
.bxfc-gateopt-label { font-size: .78em; font-weight: 600; color: #555; }
.bxfc-gateopt .bxfc-input { padding: 8px 10px; font-size: .92em; }
.bxfc-stepper {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	border: 1px solid var(--bxfc-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.bxfc-stepper-btn {
	width: 36px;
	height: 34px;
	border: none;
	background: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	color: var(--bxfc-accent);
}
.bxfc-stepper-btn:hover:not(:disabled) { background: var(--bxfc-bg); }
.bxfc-stepper-btn:disabled { color: #bbb; cursor: default; }
.bxfc-stepper-val {
	min-width: 36px;
	text-align: center;
	font-weight: 600;
	border-left: 1px solid var(--bxfc-border);
	border-right: 1px solid var(--bxfc-border);
	align-self: stretch;
	line-height: 34px;
}
.bxfc-gatecfg-more {
	border: 1px dashed var(--bxfc-border);
	border-radius: 8px;
	background: #fff;
	padding: 8px 10px;
	font: inherit;
	font-size: .88em;
	font-weight: 600;
	color: var(--bxfc-accent);
	cursor: pointer;
	text-align: center;
}
.bxfc-gatecfg-more:hover { border-color: var(--bxfc-accent); }

/* Selected-choice chip (Zubehör) */
.bxfc-choicechip {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 6px 8px;
	border: 1px solid var(--bxfc-border);
	border-radius: 8px;
	background: var(--bxfc-bg);
	font-size: .85em;
	color: #444;
}
.bxfc-choicechip img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; }

/* Sidebar facts */
.bxfc-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	margin: 0 0 12px;
	font-size: .92em;
}
.bxfc-facts dt { color: #777; }
.bxfc-facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bxfc-facts .bxfc-swatch-dot { width: 13px; height: 13px; }

/* Products strip ("wird automatisch eingeplant") */
.bxfc-products { margin-top: 16px; }
.bxfc-products h4 { margin: 0 0 8px; font-size: .95em; color: #444; }
.bxfc-products-list {
	border: 1px solid var(--bxfc-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.bxfc-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-bottom: 1px solid var(--bxfc-border);
	text-decoration: none;
	color: inherit;
}
.bxfc-product:last-child { border-bottom: none; }
.bxfc-product:hover { background: var(--bxfc-bg); }
.bxfc-product img,
.bxfc-product-noimg {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 44px;
	background: #eef0f2;
}
.bxfc-product-body { flex: 1; min-width: 0; }
.bxfc-product-body strong { display: block; font-size: .92em; }
.bxfc-product-body small { color: #777; display: block; font-size: .8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxfc-product-price { white-space: nowrap; font-weight: 600; font-size: .92em; }

/* Übersicht thumbnails */
.bxfc-img-col { width: 50px; }
.bxfc-img-col img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef0f2; }
.bxfc-table small a { color: var(--bxfc-accent); }

/* Cart integration */
.bxfc-edit-link {
	display: inline-block;
	margin-left: 8px;
	font-size: .85em;
	text-decoration: underline;
}
.bxfc-qty { font-weight: 600; white-space: nowrap; }

/* --- v1.5: accessibility, drafts, sharing ------------------------------- */

/* Visually hidden but available to screen readers (aria-live price region). */
.bxfc-sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Visible keyboard focus on all interactive controls (BITV/WCAG 2.4.7). */
.bxfc-app button:focus-visible,
.bxfc-app input:focus-visible,
.bxfc-app select:focus-visible,
.bxfc-app a:focus-visible {
	outline: 2px solid var(--bxfc-accent);
	outline-offset: 2px;
}
.bxfc-app h3:focus { outline: none; }

/* Link-styled button (draft reset, share). */
.bxfc-linkbtn {
	background: none;
	border: none;
	padding: 0;
	color: var(--bxfc-accent);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
	font-size: .92em;
}
.bxfc-share { display: block; margin: 10px auto 0; }

.bxfc-shareurl { margin-top: 8px; }
.bxfc-shareurl small { display: block; color: #00753b; margin-bottom: 4px; }
.bxfc-shareurl input { font-size: .85em; }

.bxfc-draftnote { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* --- v1.6: choice cards, lightbox, icons -------------------------------- */

/* Inline SVG icons (share etc.) align with the text baseline. */
.bxfc-ico { vertical-align: -2px; margin-right: 2px; }

/* Visual choice cards (e.g. Sichtschutz variants with product photos). */
.bxfc-choicecards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}
.bxfc-choicecard {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 2px solid var(--bxfc-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	text-align: left;
}
.bxfc-choicecard:hover { border-color: #c6ccd2; }
.bxfc-choicecard.is-active { border-color: var(--bxfc-accent); box-shadow: 0 0 0 1px var(--bxfc-accent) inset; }
.bxfc-choicecard.is-active:hover { border-color: var(--bxfc-accent); }
.bxfc-choicecard img,
.bxfc-choicecard-noimg {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
	background: #f2f4f5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aab0b6;
	font-size: 22px;
}
.bxfc-choicecard-label { font-size: .88em; line-height: 1.35; }
.bxfc-choicecard .bxfc-ab { margin-top: auto; }

/* Zoomable thumbnails + native <dialog> lightbox. */
.bxfc-zoomable { cursor: zoom-in; }
.bxfc-lightbox {
	border: none;
	border-radius: 12px;
	padding: 16px;
	max-width: min(92vw, 860px);
	box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
}
.bxfc-lightbox::backdrop { background: rgba(20, 23, 26, .7); }
.bxfc-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 76vh;
	margin: 0 auto;
	border-radius: 8px;
}
.bxfc-lightbox p { text-align: center; color: #555; margin: 10px 0 0; font-size: .92em; }
.bxfc-lightbox-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: none;
	background: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px 8px;
}
.bxfc-lightbox-close:hover { color: #000; }

/* --- v1.11: responsive overhaul ------------------------------------------ */

/* Static option display (e.g. the only allowed Eck-Ausführung). */
.bxfc-static { margin: 0; font-weight: 600; }

/* Long product names / German compounds must wrap instead of overflowing
   narrow cards and table cells. */
.bxfc-card-body,
.bxfc-product-body,
.bxfc-choicecard-label,
.bxfc-table td { overflow-wrap: break-word; min-width: 0; }

/* Card grids respond to the width of the form column, not the viewport:
   with the sidebar next to it the column is much narrower than the screen.
   Older browsers ignore this and keep the media-query fallbacks below. */
.bxfc-form { container-type: inline-size; }
@container (max-width: 620px) {
	.bxfc-cards--gates { grid-template-columns: 1fr; }
	.bxfc-cards--gates .bxfc-card-img { height: 170px; }
}

/* Desktop: the sticky summary must scroll itself when it is taller than
   the viewport - otherwise its lower half is unreachable. */
@media (min-width: 881px) {
	.bxfc-summary { max-height: calc(100vh - 40px); overflow-y: auto; }
}

/* Comfortable touch targets on touch devices. */
@media (pointer: coarse) {
	.bxfc-stepper-btn { width: 42px; height: 40px; }
	.bxfc-stepper-val { line-height: 40px; min-width: 40px; }
	.bxfc-remove { padding: 6px 10px; }
}

/* Compact fixed total bar: on small screens the summary sidebar sits below
   the form, so price + primary action stay visible while configuring. */
.bxfc-mobilebar { display: none; }
@media (max-width: 880px) {
	.bxfc-app { padding-bottom: 76px; }
	.bxfc-mobilebar:not(:empty) {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 350;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--bxfc-border);
		box-shadow: 0 -4px 16px rgba(25, 35, 45, .12);
	}
	.bxfc-mobilebar-total { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
	.bxfc-mobilebar-total small { color: #777; font-size: .78em; }
	.bxfc-mobilebar-total strong { font-size: 1.1em; white-space: nowrap; }
	.bxfc-mobilebar .bxfc-btn { width: auto; flex: 0 1 auto; padding: 11px 16px; }
	.bxfc-summary { position: static; }
}

/* Small screens: tighter boxes, full-size tap targets, no iOS focus zoom. */
@media (max-width: 640px) {
	.bxfc-section,
	.bxfc-summary { padding: 16px 14px; border-radius: 10px; }
	.bxfc-preview { padding: 12px 12px 4px; border-radius: 10px; margin-bottom: 16px; }
	.bxfc-grid { gap: 16px; }
	.bxfc-cards,
	.bxfc-choicecards { gap: 12px; }
	.bxfc-stepintro { padding: 10px 12px; margin-bottom: 16px; }
	/* iOS zooms into inputs below 16px font size - keep form controls at 16px. */
	.bxfc-input,
	.bxfc-app select { font-size: 16px; }
	.bxfc-table td { padding: 6px 3px; }
	.bxfc-img-col { width: 40px; }
	.bxfc-img-col img { width: 36px; height: 36px; }
	.bxfc-price-col { width: auto; }
	.bxfc-lightbox { padding: 10px; max-width: 96vw; }
}

/* Very narrow phones: the prev/next buttons share the row evenly. */
@media (max-width: 420px) {
	.bxfc-stepnav .bxfc-btn { min-width: 0; flex: 1 1 auto; }
	.bxfc-cards { grid-template-columns: 1fr; }
}
