/* NTC: nowa sekcja "Dobierz akumulator" (tylko strona główna). */

/* Stara sekcja konfiguratora jest ukryta do czasu wstawienia nowej (bez przeskoku układu).
   Gdyby skrypt nie zadziałał, po 4 s stara sekcja wraca sama. */
body.ntcx-dobor-pending .ntcx-old-never { visibility: hidden; }
@keyframes ntcx-dobor-show { to { visibility: visible; } }
.ntcx-old-dobor { display: none !important; }

.ntcx-dobor { --y: #ffcc00; --yd: #e6b800; --ink: #0d0d0d; position: relative; width: 100vw; margin-left: calc(50% - 50vw); background: #101010; color: #fff; overflow: hidden; padding: 96px 0; isolation: isolate; box-sizing: border-box; }
.ntcx-dobor * { box-sizing: border-box; }
.ntcx-dobor::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 480px at 12% 20%, rgba(255, 204, 0, .14), transparent 62%), radial-gradient(640px 460px at 95% 90%, rgba(255, 204, 0, .10), transparent 60%); }
.ntcx-d-wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }

/* Lewa kolumna */
.ntcx-d-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--y); margin-bottom: 14px; }
.ntcx-dobor h2 { font-family: var(--ntcx-font-head, inherit); font-size: clamp(36px, 4.6vw, 62px); line-height: 1.03; font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; color: #fff; text-transform: none; }
.ntcx-dobor h2 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ntcx-dobor h2 .ln > span { display: block; }
.ntcx-dobor h2 em { font-style: normal; color: var(--y); }
.ntcx-d-desc { color: #b9b9b9; font-size: 17px; max-width: 440px; margin: 0 0 34px; }
.ntcx-d-track { position: relative; display: grid; gap: 26px; padding-left: 4px; }
.ntcx-d-line { position: absolute; left: 21px; top: 18px; bottom: 18px; width: 2px; background: rgba(255, 255, 255, .1); }
.ntcx-d-line i { display: block; width: 100%; height: 100%; background: var(--y); transform-origin: top; transform: scaleY(0); }
.ntcx-d-st { position: relative; display: flex; align-items: center; gap: 16px; color: #8d8d8d; font-weight: 600; font-size: 15px; transition: color .25s; }
.ntcx-d-st .n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #1b1b1b; border: 2px solid #333; font-weight: 800; color: #aaa; transition: all .25s; position: relative; z-index: 1; }
.ntcx-d-st.on { color: #fff; }
.ntcx-d-st.on .n { background: var(--y); border-color: var(--y); color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 204, 0, .16); }
.ntcx-d-st.done .n { background: #1c8a4a; border-color: #1c8a4a; color: #fff; }

/* Panel kreatora */
.ntcx-panel { --mx: 50%; --my: 0%; position: relative; background: linear-gradient(180deg, #1c1c1c, #151515); border: 1px solid #2c2c2c; border-radius: 24px; padding: 34px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.ntcx-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 260px at var(--mx) var(--my), rgba(255, 204, 0, .10), transparent 65%); }
.ntcx-prog { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: rgba(255, 255, 255, .06); }
.ntcx-prog i { display: block; height: 100%; width: 100%; background: var(--y); transform-origin: left; transform: scaleX(.33); box-shadow: 0 0 14px rgba(255, 204, 0, .6); }
.ntcx-step { position: relative; }
.ntcx-step[hidden] { display: none; }
.ntcx-q { font-family: var(--ntcx-font-head, inherit); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; color: #fff; }
.ntcx-sub { color: #9d9d9d; font-size: 14px; margin: 0 0 22px; }

.ntcx-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; perspective: 900px; }
.ntcx-use { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; border-radius: 16px; background: #1f1f1f; border: 1.5px solid #303030; color: #e8e8e8; font: inherit; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; transform-style: preserve-3d; transition: border-color .2s, background .2s; will-change: transform; }
.ntcx-use:hover { border-color: rgba(255, 204, 0, .6); background: #232323; }
.ntcx-use svg { width: 34px; height: 34px; color: var(--y); }
.ntcx-use .ck { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; transform: scale(0); }
.ntcx-use .ck svg { width: 13px; height: 13px; color: var(--ink); }
.ntcx-use.sel { border-color: var(--y); background: rgba(255, 204, 0, .08); }
.ntcx-skip { background: none; border: 0; color: #9d9d9d; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; margin-top: 16px; padding: 4px 0; }
.ntcx-skip:hover { color: var(--y); }

.ntcx-lab { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8d8d8d; margin: 18px 0 10px; }
.ntcx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ntcx-chip { padding: 11px 16px; border-radius: 12px; background: #1f1f1f; border: 1.5px solid #303030; color: #e8e8e8; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ntcx-chip:hover { border-color: rgba(255, 204, 0, .6); }
.ntcx-chip.sel { background: var(--y); border-color: var(--y); color: var(--ink); }
.ntcx-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.ntcx-go { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 12px; border: 0; background: var(--y); color: var(--ink); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; }
.ntcx-go:hover { background: var(--yd); color: var(--ink); box-shadow: 0 12px 28px -8px rgba(255, 204, 0, .55); }
.ntcx-go svg { width: 18px; height: 18px; transition: transform .25s; }
.ntcx-go:hover svg { transform: translateX(5px); }
.ntcx-back { background: none; border: 0; color: #bdbdbd; font: inherit; font-weight: 700; cursor: pointer; padding: 12px 6px; }
.ntcx-back:hover { color: #fff; }

/* Ładowanie: trzy słupki baterii */
.ntcx-load { display: none; align-items: center; gap: 16px; padding: 40px 0; color: #bdbdbd; font-weight: 600; }
.ntcx-load.on { display: flex; }
.ntcx-bars { display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.ntcx-bars i { width: 10px; height: 100%; border-radius: 3px; background: var(--y); transform-origin: bottom; transform: scaleY(.25); }

/* Wyniki */
.ntcx-res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ntcx-res-head b { font-size: 22px; font-family: var(--ntcx-font-head, inherit); font-weight: 800; }
.ntcx-res-head b span { color: var(--y); }
.ntcx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ntcx-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: #1f1f1f; border: 1.5px solid #303030; border-radius: 16px; padding: 12px; color: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.ntcx-card:hover { border-color: var(--y); transform: translateY(-3px); color: #fff; }
.ntcx-card .im { width: 96px; height: 96px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.ntcx-card .im img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ntcx-card .nm { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ntcx-card .sp { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ntcx-card .sp i { font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255, 204, 0, .16); color: var(--y); border-radius: 20px; padding: 2px 9px; }
.ntcx-card .st { font-size: 12px; font-weight: 700; }
.ntcx-card .st.in { color: #36c477; } .ntcx-card .st.out { color: #ff6b6b; }
.ntcx-card .pr { font-weight: 800; font-size: 15px; margin-top: 2px; }
.ntcx-card .pr .woocommerce-price-suffix { font-size: 11px; font-weight: 500; color: #9d9d9d; }
.ntcx-empty { display: none; padding: 26px 0; color: #cfcfcf; }
.ntcx-empty.on { display: block; }
.ntcx-empty a { color: var(--y); font-weight: 700; }
.ntcx-fallback { display: none; margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(255, 107, 107, .1); color: #ffb3b3; font-size: 14px; }
.ntcx-fallback.on { display: block; }

@media (max-width: 1000px) {
	.ntcx-dobor { padding: 64px 0; }
	.ntcx-d-wrap { grid-template-columns: 1fr; gap: 34px; }
	.ntcx-d-track { display: none; }
	.ntcx-uses { grid-template-columns: repeat(2, 1fr); }
	.ntcx-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ntcx-d-wrap { padding: 0 18px; }
	.ntcx-panel { padding: 24px 18px; border-radius: 18px; }
	.ntcx-q { font-size: 21px; }
	.ntcx-card { grid-template-columns: 80px 1fr; } .ntcx-card .im { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { .ntcx-dobor * { animation: none !important; transition: none !important; } }

/* ---- Odporność na style przycisków Woodmart (wielkie litery, jasne tło po najechaniu) ---- */
.ntcx-dobor button, .ntcx-dobor button:hover, .ntcx-dobor button:focus, .ntcx-dobor button:active { text-transform: none; letter-spacing: normal; text-shadow: none; box-shadow: none; min-height: 0; }
.ntcx-dobor .ntcx-use { color: #e8e8e8; background: #1f1f1f; }
.ntcx-dobor .ntcx-use span { color: inherit; text-transform: none; }
.ntcx-dobor .ntcx-use:hover, .ntcx-dobor .ntcx-use:focus-visible { color: var(--y) !important; background: #262626 !important; border-color: rgba(255, 204, 0, .7); }
.ntcx-dobor .ntcx-use.sel, .ntcx-dobor .ntcx-use.sel:hover { color: var(--y) !important; background: rgba(255, 204, 0, .08) !important; border-color: var(--y); }
.ntcx-dobor .ntcx-chip { color: #e8e8e8; background: #1f1f1f; }
.ntcx-dobor .ntcx-chip:hover { color: var(--y) !important; background: #262626 !important; border-color: rgba(255, 204, 0, .7); }
.ntcx-dobor .ntcx-chip.sel, .ntcx-dobor .ntcx-chip.sel:hover { background: var(--y) !important; border-color: var(--y); color: var(--ink) !important; }
.ntcx-dobor .ntcx-skip, .ntcx-dobor .ntcx-skip:hover, .ntcx-dobor .ntcx-skip:focus, .ntcx-dobor .ntcx-back, .ntcx-dobor .ntcx-back:hover, .ntcx-dobor .ntcx-back:focus { background: none !important; border: 0; }
.ntcx-dobor .ntcx-skip { color: #9d9d9d; }
.ntcx-dobor .ntcx-skip:hover, .ntcx-dobor .ntcx-skip:focus-visible { color: var(--y) !important; }
.ntcx-dobor .ntcx-back { color: #bdbdbd; }
.ntcx-dobor .ntcx-back:hover, .ntcx-dobor .ntcx-back:focus-visible { color: var(--y) !important; }
.ntcx-dobor .ntcx-go, .ntcx-dobor .ntcx-go:focus { background: var(--y) !important; color: var(--ink) !important; }
.ntcx-dobor .ntcx-go:hover { background: var(--yd) !important; color: var(--ink) !important; box-shadow: 0 12px 28px -8px rgba(255, 204, 0, .55); }
