/* ============================================================
   Moje konto — PANEL (FAZA C): kokpit, zamówienia, adresy, szczegóły, pobrania.
   Override: woocommerce/myaccount/{my-account,navigation,dashboard,orders,view-order,
   downloads,my-address,form-edit-address,form-edit-account}.php. Klasy tech-acct*.
   Wygląd 1:1 z „Moje-konto-standalone/*". Layout pełnej szerokości + zerowanie spacingu
   Astry są w konto.css (współdzielone z logowaniem). Tu tylko widoki panelu.
   ⚠️ GOTCHA 3 Astry: input/button/select oraz h1..h6 (kolor) wymagają !important.
   ============================================================ */

/* ---------- Nagłówek + siatka [sidebar | treść] ---------- */
.tech-acct__h1 {
	margin: 0 0 2rem !important;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: var(--tech-fw-extrabold);
	letter-spacing: var(--tech-tracking-tight);
	color: var(--tech-ink) !important;
}
/* ⚠️ WooCommerce core CSS floatuje nawigację (width:30%) i treść (width:68%) — to psuje
   siatkę (ściśnięty sidebar, wąska treść). Wymuszamy grid + zabijamy float/width na dzieciach.
   Prefiks .tech-konto-page podbija specyficzność nad `.woocommerce-account …` (WC). */
.tech-konto-page .tech-acct__layout {
	display: grid !important;
	grid-template-columns: 1fr; gap: 1.5rem; align-items: start;
}
@media (min-width: 1024px) {
	.tech-konto-page .tech-acct__layout { grid-template-columns: 280px minmax(0, 1fr) !important; gap: 2.5rem; }
}
.tech-konto-page .tech-acct__layout > .woocommerce-MyAccount-navigation,
.tech-konto-page .tech-acct__layout > .tech-acct-nav {
	float: none !important; width: auto !important; margin: 0 !important;
}
.tech-konto-page .tech-acct__layout > .woocommerce-MyAccount-content,
.tech-konto-page .tech-acct__layout > .tech-acct__content {
	float: none !important; width: auto !important; min-width: 0 !important;
}
/* Tryb solo (view-order/view-subscription): treść NIE jest w .tech-acct__layout, więc
   float/width WooCommerce (68%, float:right) trzeba zabić osobno — inaczej blok ucieka w prawo. */
.tech-konto-page .tech-acct__content--solo {
	float: none !important; width: auto !important; min-width: 0 !important;
	max-width: 64rem; margin-inline: auto;
}

/* Miękkie przejścia (konto-panel.js): delikatne przygaszenie podczas fetch. */
.tech-acct.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s ease; }

/* Tryb solo (view-order / view-subscription) — bez sidebara, węziej, wyśrodkowane. */
.tech-acct__content--solo { max-width: 64rem; margin-inline: auto; }

/* ---------- Sidebar ---------- */
.tech-acct-nav { min-width: 0; }
@media (min-width: 1024px) {
	.tech-acct-nav { position: sticky; top: 7rem; }
}
.tech-acct-nav__user {
	display: flex; align-items: center; gap: .75rem;
	padding: 1.25rem; margin-bottom: 1rem;
	background: var(--tech-mist); border: 1px solid var(--tech-border);
	border-radius: var(--tech-radius);
}
.tech-acct-nav__avatar {
	flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 9999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--tech-ink); color: var(--tech-white);
	font-weight: var(--tech-fw-bold); font-size: var(--tech-fs-sm);
}
.tech-acct-nav__id { min-width: 0; }
.tech-acct-nav__name {
	font-weight: var(--tech-fw-bold); color: var(--tech-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tech-acct-nav__email {
	font-size: var(--tech-fs-xs); color: var(--tech-slate);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ⚠️ BEZ overflow:hidden — border + radius + overflow:hidden + tło aktywnej pozycji zjadało
   1px ramki w narożnikach. Zamiast klipowania zaokrąglamy pierwszy/ostatni link (o promień
   pomniejszony o grubość ramki), więc tło aktywnego/hover nie wystaje poza ramkę. */
.tech-acct-nav__list {
	list-style: none; margin: 0 !important; padding: 0 !important;
	border: 1px solid var(--tech-border); border-radius: var(--tech-radius);
}
/* ⚠️⚠️ KONFLIKT: WooCommerce wstrzykuje w <head> inline `#woocommerce-general-inline-css`:
     body .woocommerce-MyAccount-navigation-link   { border:1px solid var(--ast-border-color) }  (spec 0,1,1)
     body .woocommerce-MyAccount-navigation-link a { display:block; padding:.5em 1em }            (spec 0,1,2)
   Nasze <li> noszą klasę WC `woocommerce-MyAccount-navigation-link` (zgodność) → te reguły trafiają
   i biją nasze jednoklasowe `.tech-acct-nav__*` (0,1,0): szara ramka gray-300 na każdym <li>,
   ciasny padding .5em, display:block zamiast flex, brak radiusa. Kontra = prefiks `.tech-acct-nav`
   (klasa samego <nav>, zawsze obecna) podbija specyficzność do (0,2,0)/(0,3,0) → wygrywamy bez !important. */
.tech-acct-nav .tech-acct-nav__item { border: 0; }
.tech-acct-nav .tech-acct-nav__item + .tech-acct-nav__item { border-top: 1px solid var(--tech-border); }
.tech-acct-nav .tech-acct-nav__item:first-child .tech-acct-nav__link {
	border-top-left-radius: calc(var(--tech-radius) - 1px);
	border-top-right-radius: calc(var(--tech-radius) - 1px);
}
.tech-acct-nav .tech-acct-nav__item:last-child .tech-acct-nav__link {
	border-bottom-left-radius: calc(var(--tech-radius) - 1px);
	border-bottom-right-radius: calc(var(--tech-radius) - 1px);
}
.tech-acct-nav .tech-acct-nav__link {
	display: flex; align-items: center; gap: .75rem;
	padding: .875rem 1.25rem;
	font-weight: var(--tech-fw-semibold); font-size: 1rem; line-height: 1.5;
	color: var(--tech-ink);
	text-decoration: none !important; transition: background .15s ease, color .15s ease;
}
.tech-acct-nav .tech-acct-nav__link:hover { background: var(--tech-mist); color: var(--tech-ink); }
.tech-acct-nav__ico { flex: 0 0 auto; color: var(--tech-slate); }
.tech-acct-nav__item.is-active .tech-acct-nav__link { background: var(--tech-ink); color: var(--tech-white); }
.tech-acct-nav__item.is-active .tech-acct-nav__ico { color: var(--tech-white); }

/* ---------- Karty panelu (współdzielone) ---------- */
.tech-acct-card {
	border: 1px solid var(--tech-gray-200) !important;
	border-radius: var(--tech-radius-lg); padding: 1.5rem;
}
@media (min-width: 640px) { .tech-acct-card { padding: 2rem; } }
.tech-acct-card__title {
	margin: 0 !important; font-size: 1.5rem; font-weight: var(--tech-fw-bold);
	letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink) !important;
}
.tech-acct-card__title span { color: var(--tech-ink); }

/* ---------- Badge statusu (współdzielony: zamówienia/subskrypcje) ---------- */
.tech-badge {
	display: inline-block; border-radius: 9999px; border: 1px solid transparent;
	font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-semibold);
	padding: .25rem .625rem; line-height: 1.25;
}
.tech-badge--mint { background: var(--tech-mint-50); color: var(--tech-ink); border-color: var(--tech-mint-100); }
.tech-badge--mist { background: var(--tech-mist); color: var(--tech-ink); border-color: var(--tech-gray-200); }
.tech-badge--red  { background: var(--tech-red-50); color: var(--tech-red-700); border-color: var(--tech-red-200); }

/* ---------- Przyciski pill (współdzielone; !important przeciw Astrze) ---------- */
.tech-acct-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	border-radius: var(--tech-radius-pill) !important; border: 1px solid transparent !important;
	font-weight: var(--tech-fw-semibold) !important; font-size: var(--tech-fs-sm) !important;
	padding: .625rem 1.25rem !important; min-width: 0 !important;
	text-decoration: none !important; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.tech-acct-btn--primary { background: var(--tech-ink) !important; color: var(--tech-white) !important; border-color: var(--tech-ink) !important; }
.tech-acct-btn--primary:hover { background: var(--tech-ink-hover) !important; color: var(--tech-white) !important; }
.tech-acct-btn--outline { background: transparent !important; color: var(--tech-ink) !important; border-color: var(--tech-ink) !important; }
.tech-acct-btn--outline:hover { background: var(--tech-ink) !important; color: var(--tech-white) !important; }
.tech-acct-btn--danger { background: transparent !important; color: var(--tech-red-700) !important; border-color: var(--tech-red-300) !important; }
.tech-acct-btn--danger:hover { background: var(--tech-red-600) !important; color: var(--tech-white) !important; border-color: var(--tech-red-600) !important; }

/* ---------- KOKPIT ---------- */
.tech-acct-kokpit__lead {
	margin: .75rem 0 0 !important; max-width: 42rem;
	color: var(--tech-slate); line-height: var(--tech-lh-normal);
}
.tech-acct-kokpit__help {
	display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem;
	padding: .75rem 1.25rem; border-radius: var(--tech-radius-pill);
	background: var(--tech-mist); border: 1px solid var(--tech-border);
	font-size: var(--tech-fs-sm); color: var(--tech-ink);
}
.tech-acct-kokpit__help svg { flex: 0 0 auto; color: var(--tech-slate); }
.tech-acct-kokpit__help a {
	margin-left: .25rem; font-weight: var(--tech-fw-semibold);
	color: var(--tech-ink); text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- Przycisk „sm" + link tekstowy ---------- */
.tech-acct-btn--sm { padding: .5rem 1rem !important; font-size: var(--tech-fs-xs) !important; }
.tech-acct-link {
	font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold);
	color: var(--tech-ink); text-decoration: none !important; white-space: nowrap;
}
.tech-acct-link:hover { opacity: .7; }

/* ---------- ZAMÓWIENIA (tabela) ---------- */
.tech-acct-orders {
	border: 1px solid var(--tech-gray-200) !important;
	border-radius: var(--tech-radius-lg); overflow: hidden;
}
.tech-acct-orders__head { padding: 1.5rem; border-bottom: 1px solid var(--tech-border); }
@media (min-width: 640px) { .tech-acct-orders__head { padding: 2rem; } }
.tech-acct-orders__head-title {
	margin: 0 !important; font-size: 1.5rem; font-weight: var(--tech-fw-bold);
	letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink) !important;
}
.tech-acct-table__hrow { display: none; }
@media (min-width: 640px) {
	.tech-acct-table__hrow {
		display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr auto; gap: 1rem;
		padding: .75rem 2rem; background: var(--tech-mist);
		font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold);
		text-transform: uppercase; letter-spacing: .04em; color: var(--tech-slate);
	}
	.tech-acct-table__hrow .tech-acct-table__action { width: 6rem; }
}
.tech-acct-table__row {
	display: grid; grid-template-columns: 1fr; gap: .25rem; padding: 1rem 1.5rem;
}
@media (min-width: 640px) {
	.tech-acct-table__row {
		grid-template-columns: 1.2fr 1fr 1.2fr 1fr auto; gap: 1rem;
		padding: 1rem 2rem; align-items: center;
	}
}
.tech-acct-table__row + .tech-acct-table__row { border-top: 1px solid var(--tech-border); }
.tech-acct-table__num  { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-acct-table__date { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-acct-table__amt  { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-acct-table__amt del { color: var(--tech-slate); font-weight: 400; margin-right: .35rem; }
@media (min-width: 640px) { .tech-acct-table__action { width: 6rem; } }

/* Paginacja */
.tech-acct-pager {
	display: flex; align-items: center; justify-content: center; gap: 1rem;
	padding: 1.25rem; border-top: 1px solid var(--tech-border);
}
.tech-acct-pager__info { font-size: var(--tech-fs-sm); color: var(--tech-slate); }

/* ---------- Pusty stan (zamówienia/pobrania) ---------- */
.tech-acct-empty { padding: 2.5rem 1.5rem; text-align: center; }
.tech-acct-empty__ico {
	width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 9999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--tech-mist); color: var(--tech-slate);
}
.tech-acct-empty__title { margin: 1rem 0 0 !important; font-size: 1.5rem; font-weight: var(--tech-fw-bold); color: var(--tech-ink) !important; }
.tech-acct-empty__text { margin: .5rem auto 0 !important; max-width: 28rem; color: var(--tech-slate); }
.tech-acct-empty .tech-acct-btn { margin-top: 1.5rem; padding: .875rem 1.75rem !important; }

/* ============================================================
   ADRESY (my-address.php) — mockup Panel-konta §ADRESY
   ============================================================ */
.tech-acct-addr__h2 {
	margin: 0 0 1.25rem !important; font-size: 1.5rem; font-weight: var(--tech-fw-bold);
	letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink) !important;
}
.tech-acct-addr__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .tech-acct-addr__grid { grid-template-columns: 1fr 1fr; } }
.tech-acct-addr__card { padding: 1.5rem !important; }
.tech-acct-addr__cardhead {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem;
}
.tech-acct-addr__cardtitle { margin: 0 !important; font-size: var(--tech-fs-base); font-weight: var(--tech-fw-bold); color: var(--tech-ink) !important; }
.tech-acct-addr__body { font-size: var(--tech-fs-sm); line-height: var(--tech-lh-relaxed, 1.7); color: var(--tech-slate); }
.tech-acct-addr__empty { color: var(--tech-slate); }

/* ============================================================
   EDYCJA ADRESU / SZCZEGÓŁY KONTA — formularze (natywne pola WC + tech-acct)
   ============================================================ */
.tech-acct-editaddr__head { margin-bottom: 1rem; }
.tech-acct-editaddr__head .tech-acct-link { display: inline-flex; align-items: center; gap: .375rem; }
.tech-acct-editaddr__form .tech-acct-card__title,
.tech-acct-editacc__form .tech-acct-card__title { margin: 0 0 1.5rem !important; }

/* Natywne pola WC (woocommerce_form_field) — jednokolumnowo, bez floatów WC. */
.tech-acct-fields .form-row {
	width: 100% !important; float: none !important; padding: 0 !important; margin: 0 0 1.25rem !important;
}
.tech-acct-fields .form-row:last-child { margin-bottom: 0 !important; }
.tech-acct-fields .woocommerce-input-wrapper { display: block; width: 100%; }
.tech-acct-fields select.tech-acct__input { height: auto !important; }
/* select2 (kraj/województwo) do stylu pill inputa */
.tech-acct-fields .select2-container--default .select2-selection--single {
	height: auto !important; min-height: 0 !important;
	border: 1px solid var(--tech-gray-200) !important; border-radius: .75rem !important;
	padding: .55rem .75rem !important; background: var(--tech-white) !important;
}
.tech-acct-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.4 !important; padding: 0 !important; color: var(--tech-ink) !important;
}
.tech-acct-fields .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; top: 0 !important; right: .5rem !important; }

/* Sekcja „Zmiana hasła" — oddzielona kreską (mockup border-t). */
.tech-acct-editacc__body { margin-top: 0; }
.tech-acct-editacc__pass { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tech-border); }
.tech-acct-editacc__pass-title { margin-bottom: 1rem; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }

.tech-acct-editaddr__actions, .tech-acct-editacc__actions { margin: 1.75rem 0 0 !important; }

/* ============================================================
   SZCZEGÓŁY ZAMÓWIENIA (tryb solo) — mockup Zamowienie.html
   ============================================================ */
.tech-order { max-width: 56rem; margin-inline: auto; }
.tech-order__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.tech-order__back {
	flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--tech-gray-200); color: var(--tech-ink);
	text-decoration: none !important; transition: background .15s ease;
}
.tech-order__back:hover { background: var(--tech-mist); }
.tech-order__h1 {
	margin: 0 !important; font-size: clamp(1.5rem, 3.5vw, 1.875rem);
	font-weight: var(--tech-fw-extrabold); letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink) !important;
}
.tech-order__intro { margin: 0 0 2rem !important; color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-order__intro strong { color: var(--tech-ink); font-weight: var(--tech-fw-semibold); }
.tech-order__intro .tech-badge { vertical-align: middle; }

.tech-order__table {
	border: 1px solid var(--tech-gray-200) !important; border-radius: var(--tech-radius-lg); overflow: hidden;
}
.tech-order__thead {
	display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .875rem 1.5rem;
	background: var(--tech-mist); font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold);
	text-transform: uppercase; letter-spacing: .04em; color: var(--tech-slate);
}
@media (min-width: 640px) { .tech-order__thead { padding: .875rem 2rem; } }
.tech-order__col-r { text-align: right; }
.tech-order__row {
	display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
	padding: 1rem 1.5rem;
}
@media (min-width: 640px) { .tech-order__row { padding: 1rem 2rem; } }
.tech-order__row + .tech-order__row { border-top: 1px solid var(--tech-border); }
.tech-order__pname { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-order__qty  { color: var(--tech-slate); font-weight: 400; }
.tech-order__pamt { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); text-align: right; white-space: nowrap; }
.tech-order__sk   { color: var(--tech-slate); }
.tech-order__sv   { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); text-align: right; }
.tech-order__sv--muted { font-weight: 400; }
.tech-order__row--total { background: var(--tech-mist); }
.tech-order__tk { font-weight: var(--tech-fw-bold); color: var(--tech-ink); }
.tech-order__tv { font-size: 1.125rem; font-weight: var(--tech-fw-extrabold); color: var(--tech-ink); text-align: right; }

.tech-order__pickup {
	display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.5rem;
	padding: 1.25rem; border-radius: var(--tech-radius); background: var(--tech-mist);
	border: 1px solid var(--tech-border);
}
.tech-order__pickup svg { flex: 0 0 auto; margin-top: .125rem; color: var(--tech-ink); }
.tech-order__pickup-k { font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold); text-transform: uppercase; letter-spacing: .1em; color: var(--tech-slate); }
.tech-order__pickup-v { margin-top: .125rem; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }

.tech-order__addr { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .tech-order__addr { grid-template-columns: 1fr 1fr; } }
.tech-order__addr .tech-acct-card { padding: 1.5rem; }
.tech-order__addr-title { margin: 0 0 .75rem !important; font-size: 1.0625rem; font-weight: var(--tech-fw-bold); color: var(--tech-ink) !important; }
.tech-order__addr-body { color: var(--tech-slate); line-height: var(--tech-lh-normal); font-size: .9375rem; }

.tech-order__foot { margin-top: 2rem; }
.tech-order__backlink { display: inline-flex; align-items: center; gap: .5rem; }

/* ============================================================
   ABONAMENTY — lista (my-subscriptions.php) — mockup Panel-konta §ABONAMENTY
   ============================================================ */
.tech-acct-subs__list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.tech-acct-subs__card {
	display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
	padding: 1.25rem !important;
}
@media (min-width: 640px) {
	.tech-acct-subs__card { grid-template-columns: auto 1fr auto; gap: 1.25rem; padding: 1.5rem !important; }
}
.tech-acct-subs__thumb {
	flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: var(--tech-radius);
	overflow: hidden; background: var(--tech-mist);
}
.tech-acct-subs__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tech-acct-subs__body { min-width: 0; }
.tech-acct-subs__row { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem; }
.tech-acct-subs__name { font-weight: var(--tech-fw-bold); color: var(--tech-ink); }
.tech-acct-subs__meta { margin-top: .25rem; font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-acct-subs__amount { margin-top: .375rem; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-acct-subs__amount .subscription-details,
.tech-acct-subs__amount .amount { white-space: nowrap; }
.tech-acct-subs__action { grid-column: 1 / -1; }
@media (min-width: 640px) { .tech-acct-subs__action { grid-column: auto; }  }
.tech-acct-subs__hint { margin: 1.25rem 0 0 !important; font-size: var(--tech-fs-sm); color: var(--tech-slate); }

/* ============================================================
   SUBSKRYPCJA — widok solo (view-subscription.php) — mockup Subskrypcja.html
   Kontener węższy dziedziczy 64rem z .tech-acct__content--solo. Nagłówek reużywa
   .tech-order__back/__h1 (współdzielone z widokiem zamówienia).
   ============================================================ */
.tech-sub__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }

/* Status + akcje */
.tech-sub__status { padding: 1.5rem !important; }
@media (min-width: 640px) { .tech-sub__status { padding: 2rem !important; } }
.tech-sub__status-top { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem; }
.tech-sub__status-name { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-sub__metrics { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .tech-sub__metrics { grid-template-columns: repeat(3, 1fr); } }
.tech-sub__metric-k {
	font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold);
	text-transform: uppercase; letter-spacing: .14em; color: var(--tech-slate);
}
.tech-sub__metric-v { margin-top: .25rem; font-size: 1.125rem; font-weight: var(--tech-fw-extrabold); color: var(--tech-ink); }
.tech-sub__metric-v .amount { font-weight: var(--tech-fw-extrabold); }
.tech-sub__actions {
	display: flex; flex-wrap: wrap; gap: .75rem;
	margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--tech-border);
}

/* Karty ustawień */
.tech-sub__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .tech-sub__grid { grid-template-columns: 1fr 1fr; } }
.tech-sub__card { padding: 1.5rem !important; }
.tech-sub__card--items { grid-column: 1 / -1; }
.tech-sub__card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.tech-sub__card-title { margin: 0 !important; font-size: var(--tech-fs-base); font-weight: var(--tech-fw-bold); color: var(--tech-ink) !important; }
.tech-sub__card-ico { flex: 0 0 auto; color: var(--tech-slate); }
.tech-sub__card-btn { margin-top: 1.25rem; }

.tech-sub__pm {
	display: flex; align-items: center; gap: .75rem;
	padding: .875rem 1rem; border-radius: var(--tech-radius);
	background: var(--tech-mist); border: 1px solid var(--tech-border);
}
.tech-sub__pm svg { flex: 0 0 auto; color: var(--tech-ink); }
.tech-sub__pm-name { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }

.tech-sub__addr { font-size: .9375rem; line-height: var(--tech-lh-normal); color: var(--tech-slate); }
.tech-sub__addr .tech-sub__addr-name { display: block; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }

.tech-sub__items { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tech-sub__item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.tech-sub__item + .tech-sub__item { padding-top: 1rem; border-top: 1px solid var(--tech-border); }
.tech-sub__item-thumb {
	flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: var(--tech-radius);
	overflow: hidden; background: var(--tech-mist);
}
.tech-sub__item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tech-sub__item-body { min-width: 0; }
.tech-sub__item-name { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-sub__item-meta { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-sub__item-meta p { margin: 0 !important; }
.tech-sub__item-qty { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-sub__item-price { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); white-space: nowrap; }

.tech-sub__related { margin-top: 1.5rem; }

/* Przycisk danger wypełniony (potwierdzenie w modalu) */
.tech-acct-btn--danger-fill {
	background: var(--tech-red-600) !important; color: var(--tech-white) !important; border-color: var(--tech-red-600) !important;
}
.tech-acct-btn--danger-fill:hover { background: var(--tech-red-700) !important; color: var(--tech-white) !important; border-color: var(--tech-red-700) !important; }

/* ============================================================
   MODAL ANULOWANIA (view-subscription.php) — mockup Subskrypcja.html §MODAL
   ============================================================ */
.tech-sub-modal {
	position: fixed; inset: 0; z-index: 70; display: none;
	align-items: center; justify-content: center; padding: 1rem;
	background: rgba(56, 63, 69, .4); backdrop-filter: blur(4px);
}
.tech-sub-modal.is-open { display: flex; }
.tech-sub-modal__card {
	width: 100%; max-width: 28rem; padding: 1.5rem;
	background: var(--tech-white); border-radius: var(--tech-radius-lg);
}
@media (min-width: 640px) { .tech-sub-modal__card { padding: 2rem; } }
.tech-sub-modal__title { margin: 0 !important; font-size: 1.25rem; font-weight: var(--tech-fw-bold); color: var(--tech-ink) !important; }
.tech-sub-modal__text { margin: .75rem 0 0 !important; color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-sub-modal__field { margin-top: 1rem; }
.tech-sub-modal__label { display: block; margin-bottom: .375rem; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-sub-modal__opt { color: var(--tech-slate); font-weight: 400; }
.tech-sub-modal__select {
	width: 100% !important; padding: .75rem 1rem !important;
	border: 1px solid var(--tech-gray-200) !important; border-radius: .75rem !important;
	background: var(--tech-white) !important; color: var(--tech-ink) !important;
	font-size: var(--tech-fs-sm) !important; cursor: pointer;
}
.tech-sub-modal__select:focus { outline: none; border-color: var(--tech-ink) !important; }
.tech-sub-modal__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .tech-sub-modal__actions { flex-direction: row; } }
.tech-sub-modal__actions .tech-acct-btn { flex: 1; padding: .875rem 1.25rem !important; }

