/* Lanakila Bundle Creator – Bundle-Seite. Schwarz/Weiß wie der Shop, Überschriften/Preise in Bebas Neue. */
.lkb {
	--lkb-ink: #111;
	--lkb-line: #e4e4e0;
	--lkb-soft: #f6f5f2;
	--lkb-muted: #6b6b68;
	--lkb-ok: #1d7a3e;
	--lkb-err: #b32d2e;
	--lkb-display: "Bebas Neue", cursive;
	margin: 22px 0 10px;
	display: grid;
	gap: 18px;
	color: var(--lkb-ink);
}

/* Kopf */
.lkb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lkb-title { font-family: var(--lkb-display); font-size: 20px; letter-spacing: .04em; line-height: 1; }
.lkb-status { font-size: 12px; color: var(--lkb-muted); display: inline-flex; align-items: center; gap: 6px; }
.lkb-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d9a400; }
.lkb-status.is-done { color: var(--lkb-ok); }
.lkb-status.is-done::before { background: var(--lkb-ok); }

/* Bestandteile */
.lkb-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lkb-line); }
.lkb-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--lkb-line); margin: 0; }
.lkb-img { position: relative; display: block; width: 84px; aspect-ratio: 4 / 5; background: var(--lkb-soft); overflow: hidden; }
.lkb-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.lkb-img:hover img { transform: scale(1.04); }
.lkb-check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--lkb-ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.lkb-check svg { width: 14px; height: 14px; stroke-width: 2.4; }
.lkb-item.is-done .lkb-check { opacity: 1; transform: none; }
.lkb-body { display: grid; gap: 10px; align-content: center; min-width: 0; }
.lkb-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lkb-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--lkb-ink); text-decoration: none; }
.lkb-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.lkb-qty { color: var(--lkb-muted); font-weight: 400; }
.lkb-price { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--lkb-muted); }
.lkb-onesize { font-size: 12px; color: var(--lkb-muted); }

/* Größen als Knöpfe */
.lkb-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lkb-chip { position: relative; margin: 0; cursor: pointer; }
.lkb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lkb-chip span { display: grid; place-items: center; min-width: 42px; height: 36px; padding: 0 10px; border: 1px solid #d4d4cf; background: #fff; font-size: 13px; font-weight: 500; line-height: 1; transition: border-color .15s, background .15s, color .15s; }
.lkb-chip:hover span { border-color: var(--lkb-ink); }
.lkb-chip input:checked + span { background: var(--lkb-ink); border-color: var(--lkb-ink); color: #fff; }
.lkb-chip input:focus-visible + span { outline: 2px solid var(--lkb-ink); outline-offset: 2px; }
.lkb-chip.is-out { cursor: not-allowed; }
.lkb-chip.is-out span { color: #b5b5b0; border-color: var(--lkb-line); background: linear-gradient(to top left, transparent calc(50% - .5px), var(--lkb-line) 50%, transparent calc(50% + .5px)); }
.lkb-chip.is-out:hover span { border-color: var(--lkb-line); }
.lkb-item.is-missing .lkb-chip:not(.is-out) span { border-color: var(--lkb-err); }
.lkb-item.is-missing .lkb-sizes { animation: lkb-shake .35s; }
@keyframes lkb-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Preisbox */
.lkb-box { background: var(--lkb-soft); padding: 18px 20px 20px; display: grid; gap: 16px; }
.lkb-calc { margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.lkb-calc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lkb-calc > div[hidden] { display: none; }
.lkb-calc dt, .lkb-calc dd { margin: 0; font-size: 14px; font-weight: 400; }
.lkb-calc dt { color: var(--lkb-muted); }
.lkb-calc-save dd { color: var(--lkb-ok); font-weight: 600; }
.lkb-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; background: var(--lkb-ok); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; vertical-align: 1px; }
.lkb-calc-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid #dcdbd6; }
.lkb-calc-total dt { color: var(--lkb-ink); font-weight: 600; }
.lkb-calc .lkb-total { font-family: var(--lkb-display); font-size: 32px; line-height: 1; letter-spacing: .02em; }

.lkb-actions { display: flex; gap: 10px; align-items: stretch; }
.lkb-stepper { display: flex; border: 1px solid #d4d4cf; background: #fff; flex: none; }
.lkb-stepper button { width: 38px; border: 0; background: none; color: var(--lkb-ink); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.lkb-stepper button:hover { background: var(--lkb-soft); }
.lkb .lkb-stepper input { width: 40px; height: auto; min-height: 0; align-self: stretch; line-height: normal; margin: 0; border: 0; padding: 0; text-align: center; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.lkb-stepper input::-webkit-outer-spin-button, .lkb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lkb .lkb-add { flex: 1; min-height: 52px; margin: 0; width: auto; }
.lkb .lkb-add[disabled] { opacity: .6; cursor: progress; }
.lkb-error { margin: 0; color: var(--lkb-err); font-size: 13px; }
.lkb-unavailable { margin: 0; padding: 14px 16px; background: #fbeaea; font-weight: 600; color: var(--lkb-err); }

/* Hinweise */
.lkb-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lkb-notes li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--lkb-muted); }
.lkb-notes li:has(> span:empty) { display: none; }
.lkb-notes svg { margin-top: 1px; color: var(--lkb-ink); }

@media (max-width: 480px) {
	.lkb-item { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
	.lkb-img { width: 68px; }
	.lkb-box { padding: 16px; }
	.lkb-chip span { min-width: 40px; }
}

/* Preis + MwSt in einer Zeile (über der Linie) */
.single-product .entry-summary .lkb-price-single { align-items: flex-end; justify-content: space-between; gap: 16px; }
.lkb-price-single .legal-price-info, .lkb-price-single .legal-price-info p { margin: 0; text-align: right; line-height: 1.4; }
.lkb-price-single .legal-price-info { padding-bottom: 4px; }

/* Beschreibung: Desktop links unter den Bildern, Handy unter dem Kaufbereich */
.lkb-description { margin: 48px 0 0; }
.lkb-description-title { font-family: "Bebas Neue", cursive; font-size: 24px; letter-spacing: .04em; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #e4e4e0; }
.lkb-description-text { font-size: 14px; line-height: 1.75; color: #444; }
.lkb-description-text > :last-child { margin-bottom: 0; }
.lkb-description--below { display: none; }
@media (max-width: 991px) {
	.lkb-description--side { display: none; }
	.lkb-description--below { display: block; margin: 32px auto 40px; padding: 0 15px; }
}
.lkb-name, .lkb-img { cursor: zoom-in; }

/* Schnellansicht */
html.lkb-noscroll { overflow: hidden; }
.lkb-modal { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: #fff; color: #111; box-shadow: 0 24px 80px rgba(0,0,0,.25); overflow: hidden; }
.lkb-modal::backdrop { background: rgba(17,17,17,.55); backdrop-filter: blur(2px); }
.lkb-modal:not([open]) { display: none !important; }
.lkb-modal[open] { display: block; position: fixed; inset: 0; margin: auto; animation: lkb-in .2s ease-out; }
@keyframes lkb-in { from { opacity: 0; transform: translateY(12px); } }
.lkb-modal-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-height: calc(100vh - 48px); position: relative; }
.lkb-modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.lkb-modal-close:hover { background: #111; color: #fff; }
.lkb-modal-media { position: relative; background: #f6f5f2; min-height: 0; }
.lkb-modal-track { display: flex; height: 100%; max-height: calc(100vh - 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lkb-modal-track::-webkit-scrollbar { display: none; }
.lkb-modal-track img { flex: 0 0 100%; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; display: block; }
.lkb-modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.lkb-modal-nav[data-dir="-1"] { left: 12px; }
.lkb-modal-nav[data-dir="1"] { right: 12px; }
.lkb-modal-nav[hidden] { display: none; }
.lkb-modal-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.lkb-modal-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(17,17,17,.25); transition: background .2s; }
.lkb-modal-dots span.is-on { background: #111; }
.lkb-modal-info { padding: 40px 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lkb-modal-title { font-family: "Bebas Neue", cursive; font-size: 30px; line-height: 1.05; letter-spacing: .02em; margin: 0; padding-right: 36px; }
.lkb-modal-price { margin: 0; font-size: 16px; color: #6b6b68; }
.lkb-modal-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.lkb-modal-sizes .lkb-chip { border: 0; background: none; padding: 0; }
.lkb-modal-sizes .lkb-chip.is-on span { background: #111; border-color: #111; color: #fff; }
.lkb-modal-text { font-size: 14px; line-height: 1.7; color: #444; border-top: 1px solid #e4e4e0; padding-top: 14px; }
.lkb-modal-text img { max-width: 100%; height: auto; }
.lkb-modal-text table { width: 100%; font-size: 13px; }
.lkb-modal .lkb-modal-back { margin-top: auto; width: 100%; min-height: 48px; }
@media (max-width: 700px) {
	.lkb-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
	.lkb-modal-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; max-height: none; }
	.lkb-modal-track { max-height: 55dvh; }
	.lkb-modal-track img { aspect-ratio: auto; height: 55dvh; }
	.lkb-modal-info { padding: 20px 18px 18px; }
}
.lkb-modal-text h1, .lkb-modal-text h2, .lkb-modal-text h3, .lkb-modal-text h4 { font-size: 18px; line-height: 1.25; margin: 18px 0 8px; letter-spacing: .03em; }
.lkb-modal-text > :first-child { margin-top: 0; }
.lkb-modal-text ul { margin: 0 0 12px; padding-left: 18px; }

/* Größenberater in der Schnellansicht */
.lkb-advisor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.lkb-adv-open { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #111; background: #fff; color: #111; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.lkb-adv-open:hover { background: #111; color: #fff; }
.lkb-adv-table { background: none; border: 0; padding: 0; min-height: 40px; font-size: 13px; color: #111; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Schnellansicht: feste Höhe, rechte Spalte scrollt selbst (sonst wächst sie mit langem Text und wird abgeschnitten) */
.lkb-modal-inner { height: min(860px, calc(100vh - 48px)); grid-template-rows: minmax(0, 1fr); }
.lkb-modal-media, .lkb-modal-info { min-height: 0; }
.lkb-modal-info { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lkb-modal-track { height: 100%; max-height: none; }
.lkb-modal-track img { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) {
	.lkb-modal-inner { height: 100dvh; grid-template-rows: auto minmax(0, 1fr); }
	.lkb-modal-track { height: 45dvh; }
	.lkb-modal-track img { height: 45dvh; }
}

/* Raster-Spalte nie breiter als der Kaufbereich (sonst schieben die Größenknöpfe auf schmalen Handys alles über den Rand) */
.lkb { grid-template-columns: minmax(0, 1fr); }
.lkb > * { min-width: 0; }
.lkb-box { grid-template-columns: minmax(0, 1fr); }
.lkb-box > *, .lkb-actions > * { min-width: 0; }
.lkb .lkb-add { white-space: normal; line-height: 1.15; padding-left: 14px; padding-right: 14px; }
@media (max-width: 360px) { .lkb-box { padding: 14px 12px 16px; } .lkb-stepper button { width: 32px; } .lkb .lkb-stepper input { width: 32px; } }
/* Theme setzt nowrap + line-height 64px auf den Button: auf schmalen Handys umbrechen statt abschneiden */
.lkb .lkb-actions .single_add_to_cart_button.lkb-add { white-space: normal !important; height: auto !important; min-height: 52px; line-height: 1.15 !important; padding: 10px 12px !important; }
@media (max-width: 480px) { .lkb .lkb-actions .single_add_to_cart_button.lkb-add { letter-spacing: .5px; font-size: 17px; } }
