/*
 * Grzejniki Lux — Moje konto „Atelier” (25.10.2026). Kokpit, lista i podgląd zamówienia: białe karty (promień 12 px) na
 * ciepłej bieli, czarne przyciski-pigułki, akcenty tylko z palety RAL (5014 gołębi niebieski = w toku, 3012 glina = czeka na
 * klienta, zieleń = zrealizowane). Bez pomarańczu. Ładowany po atelier.css tylko na stronach konta (inc/konto.php).
 */
.kt { display: grid; gap: 16px; min-width: 0; }
.kt-card { min-width: 0; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.kt-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.kt-h { margin: 0 !important; font: 600 19px/1.2 var(--d); letter-spacing: -0.02em; }
.kt-eyebrow { margin: 0 0 6px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.kt-muted { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--mute); }
.kt-more, .kt-link { font-weight: 600; font-size: 14.5px; color: var(--ink) !important; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.kt-more:hover, .kt-link:hover { text-decoration-color: var(--ink); }
.kt-link--bad { color: #8A2E1C !important; }

/* witaj */
.kt-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 4px 2px 8px; }
.kt-hello__title { margin: 0 !important; font: 600 clamp(28px, 3vw, 40px)/1.05 var(--d) !important; letter-spacing: -0.035em; }
.kt-facts { display: flex; gap: 10px; margin: 0; }
.kt-facts div { min-width: 118px; padding: 12px 16px; border-radius: var(--r); background: var(--panel); }
.kt-facts dt { font-size: 12.5px; color: var(--mute); }
.kt-facts dd { margin: 2px 0 0; font: 600 26px/1 var(--d); letter-spacing: -0.03em; }

/* numery, daty, statusy */
.kt-num { font: 600 20px/1.2 var(--d); letter-spacing: -0.02em; color: var(--ink) !important; text-decoration: none !important; }
.kt-num:hover { text-decoration: underline !important; }
.kt-sub { display: block; margin-top: 3px; font-size: 14px; color: var(--mute); }
.kt-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; border-radius: var(--pill); background: var(--panel); font: 600 13px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.kt-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kt-pill--ink { background: #E6ECF2; color: #2B4663; }
.kt-pill--ok { background: var(--ok-bg); color: var(--ok); }
.kt-pill--wait { background: #F5E4DD; color: #8A4630; }
.kt-pill--off { background: var(--panel); color: var(--mute); }

/* przebieg */
.kt-steps { display: flex; margin: 4px 0 18px; padding: 0; list-style: none; }
.kt-steps__s { position: relative; display: grid; flex: 1 1 0; justify-items: start; align-content: start; gap: 5px; min-width: 0; padding-right: 6px; font-size: 13px; line-height: 1.25; color: var(--mute); }
.kt-steps__s::before { content: ""; position: absolute; top: 9px; left: 24px; right: 4px; height: 2px; background: var(--line-2); }
.kt-steps__s:last-child::before { display: none; }
.kt-steps__s.is-done::before { background: var(--ink); }
.kt-steps__dot { position: relative; z-index: 1; width: 20px; height: 20px; border: 2px solid var(--line-3); border-radius: 50%; background: var(--white); }
.kt-steps__s.is-done .kt-steps__dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--white), 0 0 0 0 transparent; }
.kt-steps__s.is-done .kt-steps__dot { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: none; }
.kt-steps__s.is-current .kt-steps__dot { border-color: #61809E; box-shadow: 0 0 0 4px #E6ECF2; }
.kt-steps__s.is-stop .kt-steps__dot { border-color: var(--mute); background: var(--mute); }
.kt-steps__s.is-done, .kt-steps__s.is-current { color: var(--ink); }
.kt-steps__l { font-weight: 600; }
.kt-steps small { font-size: 12.5px; color: var(--mute); }
.kt-steps--big { margin-bottom: 4px; }
.kt-steps--big .kt-steps__s { font-size: 14.5px; }
.kt-track { margin-top: 16px; }

/* pozycje */
.kt-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kt-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.kt-line__img { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.kt-line__img img { width: 100%; height: 100%; object-fit: cover; }
.kt-line__body { display: grid; gap: 5px; min-width: 0; }
.kt-line__body strong { font: 600 15.5px/1.3 var(--font); }
.kt-line__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--mute); }
.kt-color { display: inline-flex; align-items: center; gap: 7px; }
.kt-color i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(22, 18, 15, 0.22); }
.kt-line__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--ink-2); }
.kt-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--pill); background: #F5E4DD; color: #8A4630; font: 600 12.5px/1 var(--font); }
.kt-line__qty { font-size: 14.5px; color: var(--mute); white-space: nowrap; }
.kt-line--more { display: block; padding-left: 78px; font-size: 13.5px; color: var(--mute); }

/* stopki kart */
.kt-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.kt-open .kt-card__foot { justify-content: flex-start; }
.kt-card__foot .btn, .kt-sum__acts .btn, .kt-pager .btn, .kt-empty .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.kt-total { font: 600 22px/1 var(--d); letter-spacing: -0.03em; }
.kt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* lista zamówień */
.kt-search input { width: 100%; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: var(--white); font: 400 15.5px var(--font); }
.kt-search input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.kt-order[hidden], .kt-none[hidden] { display: none; }
.kt-none { margin: 0; padding: 20px; text-align: center; color: var(--mute); }
.kt-pager { display: flex; gap: 10px; justify-content: center; }
.kt-recent { display: grid; margin: 0; padding: 0; list-style: none; }
.kt-recent li { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.kt-recent li:first-child { border-top: 0; padding-top: 0; }
.kt-recent .kt-sub { margin: 0; }
.kt-recent .kt-num { font-size: 17px; }

/* kolumny kart */
.kt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kt-cols > .kt-card { display: flex; flex-direction: column; }
.kt-cols .kt-card__head { margin-bottom: 10px; }
.kt-addr address, .kt--view address { font-style: normal; line-height: 1.6; font-size: 15px; }
.kt-dl { display: grid; gap: 8px; margin: 0 0 12px; }
.kt-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15px; }
.kt-dl dt { color: var(--mute); }
.kt-dl dd { margin: 0; font-weight: 600; }
.kt-news { display: grid; gap: 12px; }
.kt-news label { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--mute); }
.kt-news input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.kt-news .btn { justify-self: start; min-height: 44px; padding: 0 20px; font-size: 15px; }
.kt-contact__list { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.kt-contact__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; }
.kt-contact__list a { font-weight: 600; color: var(--ink) !important; }
.kt-contact__list small { width: 100%; padding-left: 30px; color: var(--mute); }
.kt-empty { text-align: left; }
.kt-empty p { margin: 8px 0 18px; color: var(--mute); }

/* podgląd zamówienia */
.kt-back { justify-self: start; font-weight: 600; font-size: 14.5px; color: var(--ink) !important; text-decoration: none !important; }
.kt-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.kt-sum__facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; }
.kt-sum__facts dt { font-size: 12.5px; color: var(--mute); margin-bottom: 5px; }
.kt-sum__facts dd { margin: 0; font-size: 15.5px; font-weight: 600; }
.kt-sum__total { display: grid; justify-items: end; gap: 2px; text-align: right; }
.kt-sum__total span { font-size: 13px; color: var(--mute); }
.kt-sum__total strong { font: 600 30px/1 var(--d); letter-spacing: -0.035em; }
.kt-sum__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.kt-alert { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: var(--r); background: #F5E4DD; color: #6E3826; font-size: 14.5px; line-height: 1.5; }
.kt-totals { display: grid; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.kt-totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.kt-totals dt { color: var(--mute); }
.kt-totals dd { margin: 0; text-align: right; font-weight: 600; }
.kt-totals div:last-child { font-size: 17px; }
.kt-notes { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.kt-notes li { padding: 12px 14px; border-radius: var(--r); background: var(--paper); font-size: 15px; }
.kt-notes small { display: block; margin-bottom: 4px; color: var(--mute); }
.kt-notes p { margin: 0; }
.kt--view > .kt-card .kt-h { margin-bottom: 14px !important; }

/* konto bez własnego wąskiego marginesu treści: kokpit sam rysuje karty */
.woocommerce-account .woocommerce-MyAccount-content:has(> .kt) { padding: 0; background: transparent; box-shadow: none; }

@media (max-width: 760px) {
	.kt-cols { grid-template-columns: 1fr; }
	.kt-sum { grid-template-columns: 1fr; }
	.kt-sum__total { justify-items: start; text-align: left; }
	.kt-line { grid-template-columns: 52px minmax(0, 1fr); }
	.kt-line__img { width: 52px; height: 52px; }
	.kt-line__qty { grid-column: 2; }
	.kt-line--more { padding-left: 0; }
	.kt-recent li { grid-template-columns: auto 1fr auto; }
	.kt-recent .kt-link { grid-column: 1 / -1; }
	.kt-steps__s { font-size: 11.5px; padding-right: 2px; }
	.kt-steps--big .kt-steps__s { font-size: 12.5px; }
	.kt-steps__s::before { left: 22px; }
	.kt-card__foot .btn { flex: 1 1 auto; }
	.kt-facts div { min-width: 0; flex: 1; }
	.kt-facts { width: 100%; }
}

/* przyciski w treści konta: reguła „a:not(.button)” z styl.css nie może przyciemniać napisów */
.woocommerce-MyAccount-content .kt .btn--ink { color: #fff; }
.woocommerce-MyAccount-content .kt .btn--line { color: var(--ink); }
.woocommerce-MyAccount-content .kt .btn--line:hover { color: #fff; }
.kt-recent .kt-pill { justify-self: start; }
.kt-recent li { grid-template-columns: auto auto auto 1fr auto; }
.kt-recent li strong { justify-self: end; }
.kt-sum__total strong * { font: inherit; letter-spacing: inherit; }
.kt-totals div:last-child { font-size: 15px; }
.kt-totals div:nth-last-child(2) { font-size: 17px; }
.kt-totals dd small { font-size: 12.5px; font-weight: 400; color: var(--mute); }
