/*
 * VeniDesign Toolkit — kit-builder.css
 * „Skompletuj podłogę" — rozwijany flow pytań (accordion) w kolumnie summary.
 * Ładowane warunkowo na karcie produktu (v1.9.6).
 */

/* Bez ramki/nagłówka — same karty pytań (redundancję usunięto v1.10.2). */
.vdt-kit { margin: 8px 0 0; }

/* ── Pytanie (details/summary lub statyczne) ── */
.vdt-kit__q {
	background: #fff;
	border: 1px solid var(--theme-palette-color-5, #e6e4d6);
	border-radius: 10px;
	margin-bottom: 8px;
	overflow: hidden;
}
.vdt-kit__q-head {
	display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
	padding: 12px 14px; cursor: pointer; list-style: none;
	font-size: .88rem;
}
.vdt-kit__q-head::-webkit-details-marker { display: none; }
/* Focus-ring standard projektu (WORKFLOW §7); offset ujemny, bo .vdt-kit__q ma overflow:hidden. */
.vdt-kit__q-head:focus-visible { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: -2px; }
.vdt-kit__q-head--static { cursor: default; }
.vdt-kit__q-title { font-weight: 700; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__q-hint { font-size: .74rem; color: var(--theme-palette-color-3, #1d2917); opacity: .55; }
/* strzałka */
.vdt-kit__q:not(.vdt-kit__install) .vdt-kit__q-head::after {
	content: ""; margin-left: auto; width: 8px; height: 8px; flex: none;
	border-right: 2px solid var(--theme-palette-color-2, #3FA744);
	border-bottom: 2px solid var(--theme-palette-color-2, #3FA744);
	transform: rotate(45deg); transition: transform .2s; margin-top: 2px;
}
details.vdt-kit__q[open] .vdt-kit__q-head::after { transform: rotate(-135deg); }
.vdt-kit__q--gift { border-color: var(--theme-palette-color-2, #3FA744); box-shadow: 0 0 0 1px var(--theme-palette-color-2, #3FA744); }
.vdt-kit__q--gift .vdt-kit__q-title { color: var(--theme-palette-color-4, #243018); }
.vdt-kit__q-body { padding: 0 14px 14px; }

/* ── Karta „Warto dobrać:" (podkład + listwy razem, v1.13.1) ── */
.vdt-kit__q.vdt-kit__extras .vdt-kit__q-head::after { content: none; }
.vdt-kit__extras .vdt-kit__q-head { padding-bottom: 8px; }
.vdt-kit__extras .vdt-kit__q-body > .vdt-kit__ask + .vdt-kit__ask { margin-top: 8px; }
.vdt-kit__extras .vdt-kit__note { border: none; padding: 4px 0 8px; margin: 0; }

/* ── Głośny baner promocji „podkład gratis" ── */
.vdt-kit__promo {
	display: flex; flex-direction: column; gap: 6px;
	background: linear-gradient(135deg, var(--theme-palette-color-2, #3FA744), var(--theme-palette-color-3, #16361b));
	color: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
	box-shadow: 0 8px 20px -10px rgba(22,54,27,.7);
}
.vdt-kit__promo-badge {
	align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .04em;
	background: var(--theme-palette-color-1, #f98d00); color: #fff;
	padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.vdt-kit__promo-desc { font-size: .86rem; font-weight: 600; line-height: 1.35; }
.vdt-kit__promo-desc strong { font-weight: 800; }
.vdt-kit__promo-timer {
	display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
	font-size: .78rem; font-weight: 600; margin-top: 2px;
	background: rgba(255,255,255,.14); border-radius: 8px; padding: 6px 10px; align-self: flex-start;
}
.vdt-kit__promo-timer svg { flex: none; }
.vdt-kit__promo-clock {
	font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .02em;
	background: var(--theme-palette-color-1, #f98d00); color: #fff;
	padding: 2px 8px; border-radius: 6px;
}
.vdt-kit__promo-timer.is-ending .vdt-kit__promo-clock { animation: vdt-kit-pulse 1s ease-in-out infinite; }
@keyframes vdt-kit-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .vdt-kit__promo-timer.is-ending .vdt-kit__promo-clock { animation: none; } }
/* przycisk „Tak, dobierz podkład — 0 zł" przy promocji */
.vdt-kit__ask-in:checked + .vdt-kit__ask-btn--gift {
	border-color: var(--theme-palette-color-1, #f98d00);
	box-shadow: 0 0 0 1px var(--theme-palette-color-1, #f98d00);
}
.vdt-kit__ask-in:checked + .vdt-kit__ask-btn--gift::before {
	border-color: var(--theme-palette-color-1, #f98d00);
	background-color: var(--theme-palette-color-1, #f98d00);
}

/* ── Komunikat (zintegrowany / brak akcesoriów) ── */
.vdt-kit__note {
	display: flex; align-items: center; gap: 9px;
	background: #fff; border: 1px solid var(--theme-palette-color-5, #e6e4d6);
	border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
	font-size: .82rem; font-weight: 600; color: var(--theme-palette-color-4, #243018);
}
.vdt-kit__note svg { flex: none; color: var(--theme-palette-color-3, #1d2917); opacity: .6; }
.vdt-kit__note--ok { color: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__note--ok svg { color: var(--theme-palette-color-2, #3FA744); opacity: 1; }

/* ── Wiersz produktu (Dodaj +) ── */
.vdt-kit__rows { display: flex; flex-direction: column; gap: 8px; }
.vdt-kit__row {
	display: flex; align-items: center; gap: 10px;
	background: var(--theme-palette-color-6, #eef1e6);
	border-radius: 8px; padding: 8px 10px;
}
.vdt-kit__row-img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex: none; background: #fff; }
.vdt-kit__row-body { flex: 1; min-width: 0; }
.vdt-kit__row-name { display: block; font-size: .8rem; font-weight: 600; line-height: 1.25; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__row-meta { display: block; font-size: .78rem; font-weight: 700; margin-top: 2px; color: var(--theme-palette-color-3, #1d2917); }
.vdt-kit__row-meta .vdt-kit__muted { font-weight: 500; opacity: .55; font-size: .72rem; }
.vdt-kit__add {
	flex: none; padding: 8px 13px; border: none; border-radius: 4px;
	background: var(--theme-palette-color-3, #16361b); color: #fff;
	font-size: .76rem; font-weight: 700; cursor: pointer; transition: background .2s; white-space: nowrap;
}
.vdt-kit__add:hover:not(:disabled) { background: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__add:disabled { opacity: .45; cursor: not-allowed; }
.vdt-kit__add.is-added { background: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__add:focus-visible { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }

/* ── Obwód listew ── */
.vdt-kit__perimeter { margin-bottom: 10px; }
.vdt-kit__label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 4px; }
.vdt-kit__perimeter-wrap { display: inline-flex; align-items: center; gap: 6px; }
.vdt-kit__perimeter-wrap input {
	width: 92px; height: 40px; padding: 0 12px; font-size: 16px; font-weight: 600;
	border: 1.5px solid #d9d8c6; border-radius: 8px; background: #fbf9f4 !important; color: #1d2917 !important;
}
.vdt-kit__perimeter-wrap input:focus-visible { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }
.vdt-kit__hint { font-size: .74rem; color: #4b5563; margin: 0 0 8px; }

/* ── Darmowy podkład (radio) ── */
.vdt-kit__free { display: flex; flex-direction: column; gap: 8px; }
.vdt-kit__free-opt { display: block; cursor: pointer; margin: 0; }
.vdt-kit__free-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vdt-kit__free-body {
	display: flex; align-items: center; gap: 10px;
	background: var(--theme-palette-color-6, #eef1e6);
	border: 1.5px solid transparent; border-radius: 8px; padding: 8px 10px; transition: border-color .15s, box-shadow .15s;
}
.vdt-kit__free-opt input:checked + .vdt-kit__free-body {
	border-color: var(--theme-palette-color-2, #3FA744);
	box-shadow: 0 0 0 1px var(--theme-palette-color-2, #3FA744);
	background: #fff;
}
.vdt-kit__free-opt input:focus-visible + .vdt-kit__free-body { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }
.vdt-kit__free-body img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex: none; background: #fff; }
.vdt-kit__free-name { flex: 1; font-size: .8rem; font-weight: 600; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__free-badge {
	flex: none; font-size: .66rem; font-weight: 800; letter-spacing: .04em;
	background: var(--theme-palette-color-2, #3FA744); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.vdt-kit__free-opt--none .vdt-kit__free-name { font-weight: 500; opacity: .65; }

/* ── Pytanie z ujawnianiem opcji (jeden przycisk „Tak, dobierz…") ── */
.vdt-kit__ask-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vdt-kit__ask-btn {
	cursor: pointer;
	display: flex; align-items: center; gap: 10px;
	background: var(--theme-palette-color-6, #eef1e6);
	border: 1.5px solid transparent; border-radius: 8px; padding: 11px 14px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.vdt-kit__ask-btn:hover { border-color: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__ask-btn::before {
	content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px;
	border: 1.5px solid #cfc6b3; background: #fff;
	background-position: center; background-repeat: no-repeat; background-size: 12px;
	transition: background-color .15s, border-color .15s;
}
.vdt-kit__ask-txt { display: flex; flex-direction: column; gap: 1px; }
.vdt-kit__ask-btn strong { font-size: .84rem; color: #111; }
.vdt-kit__ask-txt > span { font-size: .72rem; color: #4b5563; line-height: 1.25; }
.vdt-kit__ask-in:checked + .vdt-kit__ask-btn {
	border-color: var(--theme-palette-color-2, #3FA744);
	box-shadow: 0 0 0 1px var(--theme-palette-color-2, #3FA744);
	background: #fff;
}
.vdt-kit__ask-in:checked + .vdt-kit__ask-btn::before {
	border-color: var(--theme-palette-color-2, #3FA744);
	background-color: var(--theme-palette-color-2, #3FA744);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.vdt-kit__ask-in:focus-visible + .vdt-kit__ask-btn {
	outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px;
}
.vdt-kit__reveal { display: none; margin-top: 12px; }
.vdt-kit__ask-in:checked ~ .vdt-kit__reveal { display: block; }

/* Disabled (zintegrowany podkład): checkbox zaznaczony + wyszarzony, nieklikalny. */
.vdt-kit__ask--disabled { margin-bottom: 8px; }
.vdt-kit__ask--disabled .vdt-kit__ask-btn { cursor: default; opacity: .6; }
.vdt-kit__ask--disabled .vdt-kit__ask-btn:hover { border-color: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__ask--disabled .vdt-kit__ask-in:checked + .vdt-kit__ask-btn { background: var(--theme-palette-color-6, #eef1e6); }

/* ── Montaż (wybór self / pro) ── */
.vdt-kit__choice-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vdt-kit__choice-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: stretch; }
.vdt-kit__choice-btn {
	height: 100%; cursor: pointer;
	display: flex; flex-direction: column; justify-content: center; gap: 2px;
	background: var(--theme-palette-color-6, #eef1e6);
	border: 1.5px solid transparent; border-radius: 8px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.vdt-kit__choice-btn strong { font-size: .82rem; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__choice-btn span { font-size: .72rem; color: #4b5563; line-height: 1.25; }
#vdt-install-self:checked ~ .vdt-kit__choice-btns label[for="vdt-install-self"],
#vdt-install-pro:checked ~ .vdt-kit__choice-btns label[for="vdt-install-pro"] {
	border-color: var(--theme-palette-color-2, #3FA744);
	box-shadow: inset 0 0 0 1px var(--theme-palette-color-2, #3FA744);
	background: #fff;
}
#vdt-install-self:focus-visible ~ .vdt-kit__choice-btns label[for="vdt-install-self"],
#vdt-install-pro:focus-visible ~ .vdt-kit__choice-btns label[for="vdt-install-pro"] {
	outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px;
}
.vdt-kit__panel { display: none; margin-top: 10px; }
#vdt-install-self:checked ~ .vdt-kit__panel--self { display: block; }
#vdt-install-pro:checked ~ .vdt-kit__panel--pro { display: block; }

/* ── Kontakt (montaż z ekipą) ── */
.vdt-kit__contact { background: var(--theme-palette-color-6, #eef1e6); border-radius: 8px; padding: 12px 14px; }
.vdt-kit__contact p { margin: 0 0 10px; font-size: .8rem; line-height: 1.5; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__contact-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px; border-radius: 4px;
	background: var(--theme-palette-color-2, #3FA744); color: #fff !important;
	font-size: .82rem; font-weight: 700; text-decoration: none !important; transition: filter .15s;
}
.vdt-kit__contact-btn:hover { filter: brightness(1.08); }
.vdt-kit__contact-btn:focus-visible { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }

/* ── Status ── */
.vdt-kit__status { margin: 8px 0 0; font-size: .82rem; font-weight: 600; min-height: 1.2em; }
.vdt-kit__status.is-success { color: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__status.is-error { color: #d63638; }
.vdt-kit__status a { text-decoration: underline; }

@media (max-width: 600px) {
	.vdt-kit__perimeter-wrap input { font-size: 16px; }
}

/* ── Opcja wyboru (radio: podkład / listwy / gratis) ── */
.vdt-kit__opts { display: flex; flex-direction: column; gap: 8px; }
.vdt-kit__opt { display: block; cursor: pointer; margin: 0; }
.vdt-kit__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vdt-kit__opt-body {
	display: flex; align-items: center; gap: 12px;
	background: var(--theme-palette-color-6, #eef1e6);
	border: 1.5px solid transparent; border-radius: 8px; padding: 12px 14px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.vdt-kit__opt input:checked + .vdt-kit__opt-body {
	border-color: var(--theme-palette-color-2, #3FA744);
	box-shadow: 0 0 0 1px var(--theme-palette-color-2, #3FA744);
	background: #fff;
}
.vdt-kit__opt input:focus-visible + .vdt-kit__opt-body { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }
.vdt-kit__opt-body img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; background: #fff; }
.vdt-kit__opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vdt-kit__opt-name { font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__opt-meta { font-size: .74rem; font-weight: 600; color: var(--theme-palette-color-3, #1d2917); opacity: .8; }
.vdt-kit__opt-meta--gift {
	align-self: flex-start; opacity: 1; font-size: .66rem; font-weight: 800; letter-spacing: .04em;
	background: var(--theme-palette-color-2, #3FA744); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.vdt-kit__opt--none .vdt-kit__opt-name { font-weight: 500; opacity: .65; }

/* ── Podsumowanie wybranej pozycji ── */
.vdt-kit__pick-total {
	margin-top: 8px; font-size: .8rem; font-weight: 700; min-height: 1.1em;
	color: var(--theme-palette-color-3, #1d2917);
}
.vdt-kit__pick-total.is-active { color: var(--theme-palette-color-2, #3FA744); }

/* ── Montaż z ekipą: szacunek 8% VAT + zapytanie (v1.13.0) ── */
form.cart.vdt-kit-pro-on .single_add_to_cart_button { display: none !important; }
.vdt-kit__est { background: #fff; border: 1px solid var(--theme-palette-color-5, #e6e4d6); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.vdt-kit__est-title { margin: 0 0 10px; font-size: .84rem; font-weight: 700; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__est-vat { display: block; font-size: .7rem; font-weight: 500; opacity: .6; margin-top: 2px; }
.vdt-kit__est-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; padding: 3px 0; }
.vdt-kit__est-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vdt-kit__est-row--note { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--theme-palette-color-5, #e6e4d6); }
.vdt-kit__est-row--note b { font-weight: 600; font-style: italic; color: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__est-total { display: flex; justify-content: flex-end; font-weight: 800; font-size: .95rem; border-top: 1px dashed var(--theme-palette-color-5, #e6e4d6); margin-top: 8px; padding-top: 8px; font-variant-numeric: tabular-nums; }
.vdt-kit__inq { position: relative; }
.vdt-kit__inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vdt-kit__inq-field { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--theme-palette-color-4, #243018); }
.vdt-kit__inq-field--wide { grid-column: 1 / -1; }
.vdt-kit__inq-field input, .vdt-kit__inq-field textarea { border: 1px solid var(--theme-palette-color-5, #e6e4d6); border-radius: 7px; padding: 10px 12px; font: inherit; font-size: .84rem; background: #fff; width: 100%; box-sizing: border-box; }
.vdt-kit__inq-field input:focus, .vdt-kit__inq-field textarea:focus { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }
.vdt-kit__inq-send { display: block; width: 100%; margin-top: 12px; padding: 14px 18px; background: var(--theme-palette-color-1, #f98d00); color: #fff; border: none; border-radius: 7px; font-weight: 800; font-size: .9rem; cursor: pointer; transition: filter .15s; }
.vdt-kit__inq-send:hover { filter: brightness(1.06); }
.vdt-kit__inq-send:focus-visible { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }
.vdt-kit__inq-send:disabled { opacity: .65; cursor: not-allowed; }
.vdt-kit__inq-msg { margin: 10px 0 0; font-size: .8rem; font-weight: 600; }
.vdt-kit__inq-msg.is-ok { color: var(--theme-palette-color-2, #3FA744); }
.vdt-kit__inq-msg.is-err { color: #b32d2e; }
.vdt-kit__inq-alt { margin-top: 10px; }
.vdt-kit__inq-alt a { color: var(--theme-palette-color-2, #3FA744); font-weight: 700; text-decoration: none; }
.vdt-kit__inq-consent { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: #6b6357; cursor: pointer; }
.vdt-kit__inq-consent input[type="checkbox"] { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--theme-palette-color-2, #3FA744); cursor: pointer; }
.vdt-kit__inq-consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--theme-palette-color-1, #f98d00); outline-offset: 2px; }
.vdt-kit__inq-consent a { color: var(--theme-palette-color-2, #3FA744); text-decoration: underline; }
.vdt-kit__inq-consent .vdt-kit__req { color: #f98d00; font-weight: 700; }
.vdt-kit__inq-turnstile { margin: 12px 0 0; }
@media (max-width: 560px) { .vdt-kit__inq-grid { grid-template-columns: 1fr; } }
