/**
 * WooCommerce — Moje konto (layout jak makietowy AccountLayout / LoginView).
 */

/* ── Ogólne: kontener konta ─────────────────────────────── */
/* Treść konta jak w projekcie: białe tło (hero ma osobno paper-2). */
.ns-account {
	background: #fff;
	min-height: 60vh;
}

.ns-account__hero {
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	/* Padding poziomy tylko w .ns-account__hero-inner — unikamy podwójnego insetu z .container */
	padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 5vw, 64px);
}

.ns-account__hero-inner {
	max-width: min(1680px, 100%);
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
	box-sizing: border-box;
}

.ns-account__hero .ns-eyebrow {
	margin-bottom: 14px;
}

.ns-account__title {
	font-size: clamp(36px, 6vw, 64px);
	margin: 0;
	font-weight: 400;
	line-height: 1.05;
}

.ns-account__grid {
	max-width: min(1680px, 100%);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) clamp(48px, 8vw, 96px);
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: start;
	box-sizing: border-box;
}

/*
 * Pełna szerokość <main> dla konta: globalny .container ma max-width:1440px + duży padding,
 * a wewnątrz był kolejny max-width na .ns-account__grid — podwójne „pudełko” i wąski pas treści.
 */
body.woocommerce-account.ns-design-v1 main.ns-main .ns-page-section {
	width: 100%;
	max-width: none;
}

body.woocommerce-account.ns-design-v1 main.ns-main .ns-page-section .container {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	display: block !important;
}

body.woocommerce-account.ns-design-v1 main.ns-main .ns-page-section .container > .woocommerce {
	width: 100% !important;
	max-width: none !important;
}

/* Kolumna sidebaru: nawigacja na całą szerokość komórki siatki */
.ns-account__aside {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.ns-account__aside .woocommerce-MyAccount-navigation {
	display: block;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 900px) {
	.ns-account__grid {
		grid-template-columns: minmax(232px, 300px) minmax(0, 1fr);
		gap: clamp(32px, 4vw, 56px);
	}

	.ns-account__aside {
		position: sticky;
		top: 96px;
	}
}

.ns-account__main.woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	min-width: 0;
}

/* ── Nadpisania motywu rodzica (myaccount.scss): ::before z ikonami + width:max-content / 25% ── */
body.woocommerce-account .woocommerce:has(.ns-account) {
	display: block !important;
	gap: 0 !important;
	flex-direction: column !important;
}

@media (min-width: 992px) {
	body.woocommerce-account .woocommerce .ns-account .woocommerce-MyAccount-navigation {
		width: 100% !important;
		max-width: none !important;
		background: transparent !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}

	body.woocommerce-account .woocommerce .ns-account .woocommerce-MyAccount-content.ns-account__main {
		width: 100% !important;
		float: none !important;
	}
}

.ns-account .woocommerce-MyAccount-navigation ul.ns-account-nav__list {
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	overflow: visible !important;
	width: 100% !important;
	max-width: 100% !important;
}

.ns-account .woocommerce-MyAccount-navigation li {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
}

body.woocommerce-account.ns-design-v1 .ns-account .woocommerce-MyAccount-navigation li a.ns-account-nav__link::before,
body.woocommerce-account.ns-design-v1 .ns-account .woocommerce-MyAccount-navigation li a.ns-account-nav__link:before {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	background-image: none !important;
}

body.woocommerce-account .ns-account .woocommerce-MyAccount-navigation li a.ns-account-nav__link {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	min-height: 48px;
	border: 1px solid var(--line) !important;
	padding: 14px 18px !important;
	background: #fff !important;
	color: var(--ink) !important;
	font-weight: 600 !important;
	border-radius: 14px !important;
	box-sizing: border-box !important;
}

body.woocommerce-account .ns-account .woocommerce-MyAccount-navigation li.is-active a.ns-account-nav__link,
body.woocommerce-account .ns-account .woocommerce-MyAccount-navigation li a.ns-account-nav__link.is-active {
	background: var(--ink) !important;
	color: #fff !important;
	border-color: var(--ink) !important;
}

body.woocommerce-account .ns-account .woocommerce-MyAccount-navigation li:not(.is-active) a.ns-account-nav__link:hover {
	border-color: var(--line-2) !important;
	background: #fafafa !important;
	color: var(--ink) !important;
}

body.woocommerce-account .ns-account .woocommerce-MyAccount-navigation li.is-active a.ns-account-nav__link:hover {
	background: var(--ink) !important;
	color: #fff !important;
	border-color: var(--ink) !important;
}

/* ── Nawigacja konta ───────────────────────────────────── */
.ns-account-nav.woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
}

.ns-account-nav .ns-account-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ns-account-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 14px;
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.005em;
	text-align: left;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	width: 100%;
	box-sizing: border-box;
}

.ns-account-nav__link:hover {
	border-color: var(--line-2);
}

.ns-account-nav__link.is-active {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.ns-account-nav__icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--orange);
	line-height: 0;
}

.ns-account-nav__link.is-active .ns-account-nav__icon {
	color: var(--orange-2);
}

.ns-account-nav__label {
	flex: 1;
	min-width: 0;
}

@media (max-width: 899px) {
	.ns-account-nav .ns-account-nav__list {
		flex-flow: row wrap;
	}

	.ns-account-nav__link {
		flex: 1 1 calc(50% - 4px);
		min-width: 140px;
	}
}

/* ── Karty treści ───────────────────────────────────────── */
.ns-account-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(22px, 4vw, 36px);
	margin-bottom: 20px;
}

.ns-account-card__title {
	font-size: clamp(22px, 3vw, 28px);
	margin: 0 0 8px;
	font-weight: 400;
	line-height: 1.2;
}

.ns-account-card__lead {
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 24px;
	line-height: 1.5;
}

/* ── Kokpit: statystyki ─────────────────────────────────── */
.ns-account-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 24px;
}

@media (min-width: 640px) {
	.ns-account-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ns-account-stat {
	background: var(--paper-2);
	border-radius: 12px;
	padding: 16px 18px;
	border: 1px solid var(--line);
}

.ns-account-stat__k {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.ns-account-stat__v {
	font-family: var(--display);
	font-size: 28px;
	margin: 6px 0 2px;
	font-weight: 400;
	line-height: 1.1;
}

.ns-account-stat__sub {
	font-size: 12px;
	color: var(--muted);
}

/* ── Ostatnie zamówienie ────────────────────────────────── */
.ns-account-last-order {
	margin-top: 0;
}

.ns-account-last-order__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.ns-account-last-order__line {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	background: var(--paper-2);
	border-radius: 12px;
	border: 1px solid var(--line);
}

.ns-account-last-order__thumb {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(160deg, var(--paper-2), var(--paper-3));
	display: flex;
	align-items: center;
	justify-content: center;
}

.ns-account-last-order__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ns-account-last-order__meta {
	flex: 1;
	min-width: 0;
}

.ns-account-last-order__name {
	font-size: 14px;
	font-weight: 600;
}

.ns-account-last-order__sub {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
}

.ns-account-last-order__price {
	text-align: right;
}

.ns-account-last-order__price-val {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 400;
}

.ns-account-last-order__actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ns-account-tag--status {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--r-pill);
	font-size: 11px;
	font-weight: 600;
	background: var(--orange-tint);
	color: var(--orange-deep);
}

/* ── Skróty ─────────────────────────────────────────────── */
.ns-account-shortcuts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 20px;
}

@media (min-width: 768px) {
	.ns-account-shortcuts {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ns-account-shortcut {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-decoration: none;
	color: var(--ink);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-account-shortcut:hover {
	border-color: var(--line-2);
}

.ns-account-shortcut__icon-wrap {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--orange-tint);
	color: var(--orange-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.ns-account-shortcut__h {
	font-size: 14px;
	font-weight: 600;
}

.ns-account-shortcut__sub {
	font-size: 12px;
	color: var(--muted);
	margin-top: 4px;
	line-height: 1.5;
}

.ns-account-shortcut__cta {
	font-size: 12px;
	font-weight: 600;
	color: var(--orange-deep);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
}

/* ── Auth (logowanie / rejestracja) ─────────────────────── */
.ns-account--auth {
	background: #fff;
	min-height: 70vh;
}

.ns-account__hero--auth {
	padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 32px) clamp(28px, 4vw, 48px);
}

.ns-account__hero--auth .ns-account__title {
	font-size: clamp(32px, 5vw, 56px);
}

.ns-account-auth {
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 32px) clamp(48px, 8vw, 96px);
}

.ns-account-auth__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

@media (min-width: 900px) {
	.ns-account-auth__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

.ns-account-auth__promo {
	position: relative;
	padding: clamp(24px, 4vw, 36px);
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.ns-account-auth__promo .ns-trellis {
	position: absolute;
	inset: 0;
	opacity: 0.15;
	pointer-events: none;
}

.ns-account-auth__promo-inner {
	position: relative;
	z-index: 1;
}

.ns-account-auth__promo .ns-eyebrow {
	color: var(--orange-2);
	margin-bottom: 12px;
}

.ns-account-auth__promo h2 {
	font-size: clamp(22px, 3vw, 28px);
	margin: 0;
	font-weight: 400;
	color: #fff;
	line-height: 1.2;
}

.ns-account-auth__promo h2 em {
	color: var(--orange-2);
	font-style: italic;
}

.ns-account-auth__promo-lead {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 10px;
	line-height: 1.55;
}

.ns-account-auth__promo-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ns-account-auth__promo-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.5;
}

.ns-account-auth__promo-list .ns-account-auth__check {
	color: var(--orange-2);
	flex-shrink: 0;
	margin-top: 2px;
	line-height: 0;
}

.ns-account-auth__register-block {
	margin-top: clamp(32px, 5vw, 48px);
	padding-top: clamp(24px, 4vw, 40px);
	border-top: 1px solid var(--line);
}

.ns-account-auth__register-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

@media (min-width: 900px) {
	.ns-account-auth__register-grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 40px;
	}
}

.ns-account-auth__benefits {
	padding: clamp(24px, 3vw, 32px);
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

.ns-account-auth__benefits .ns-eyebrow {
	color: var(--orange-deep);
	margin-bottom: 14px;
}

.ns-account-auth__benefits h3 {
	font-size: 22px;
	margin: 0;
	font-weight: 400;
	line-height: 1.2;
}

.ns-account-auth__benefits-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ns-account-auth__benefits-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ns-account-auth__benefits-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--orange);
	flex-shrink: 0;
	line-height: 0;
}

.ns-account-auth__benefits-list strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.ns-account-auth__benefits-list span.desc {
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 2px;
	line-height: 1.5;
	display: block;
}

/* ── Pola formularza Woo ─────────────────────────────────── */
.ns-account-card .woocommerce-form-row {
	margin-bottom: 16px;
}

.ns-account-card .woocommerce-form-row label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
	display: block;
	margin-bottom: 8px;
}

.ns-account-field-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.ns-account-field-head label {
	margin-bottom: 0;
}

.ns-account-card .input-text,
.ns-account-card input[type='email'],
.ns-account-card input[type='password'],
.ns-account-card input[type='text'] {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	background: #fff;
	font-family: var(--sans);
	font-size: 14px;
	color: var(--ink);
	box-sizing: border-box;
}

.ns-account-password {
	position: relative;
	display: block;
}

.ns-account-password .input-text {
	padding-right: 48px;
}

.ns-account-password__toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--muted);
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.ns-account-card .woocommerce-form-login__rememberme,
.ns-account-card .woocommerce-form-register .form-row:not(.form-row-wide) {
	font-size: 13px;
	color: var(--ink-2);
}

.ns-account-card .woocommerce-form-login .form-row:last-of-type,
.ns-account-card .woocommerce-form-register .woocommerce-form-row.form-row:last-of-type {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.ns-account-card .woocommerce-form-login__submit,
.ns-account-card .woocommerce-form-register__submit,
.ns-account .woocommerce-button.button,
.ns-account .woocommerce-Button.button {
	font-family: var(--sans);
	font-weight: 600;
	border-radius: var(--r-pill);
	cursor: pointer;
	border: 0;
	transition: opacity 0.15s ease;
}

.ns-account-card .woocommerce-form-login__submit {
	min-height: 56px;
	width: 100%;
	background: var(--ink);
	color: #fff;
	font-size: 15px;
	margin-top: 4px;
}

.ns-account-card .woocommerce-form-register__submit {
	min-height: 56px;
	width: 100%;
	background: var(--orange);
	color: #fff;
	font-size: 15px;
}

.ns-account-card .woocommerce-form-register__submit:hover,
.ns-account-card .woocommerce-form-login__submit:hover {
	opacity: 0.92;
}

.ns-account-card .lost_password {
	margin: 0;
	font-size: 12px;
}

.ns-account-card .lost_password a {
	color: var(--orange-deep);
	font-weight: 600;
	text-decoration: none;
}

.ns-account-card .lost_password a:hover {
	text-decoration: underline;
}

.ns-account-field-head .lost_password_inline {
	font-size: 12px;
	font-weight: 600;
	color: var(--orange-deep);
	text-decoration: none;
	white-space: nowrap;
}

.ns-account-field-head .lost_password_inline:hover {
	text-decoration: underline;
}

a.ns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

.ns-account-last-order__actions .ns-btn {
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--r-pill);
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ns-account-edit-account .ns-account-password .input-text {
	width: 100%;
}

.ns-account-auth__switch {
	font-size: 12.5px;
	color: var(--muted);
	text-align: center;
	margin-top: 12px;
}

.ns-account-auth__switch a {
	color: var(--orange-deep);
	font-weight: 600;
	text-decoration: none;
}

/* ── Zamówienia — tabela ───────────────────────────────── */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account table.shop_table {
	width: 100%;
	box-sizing: border-box;
}

.ns-account-orders-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ns-account-orders-head .ns-account-card__title {
	margin-bottom: 0;
}

.ns-account-orders-count {
	font-size: 13px;
	color: var(--muted);
}

.ns-account-wrap-table {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 16px;
}

.ns-account .woocommerce-orders-table {
	border: 0;
	margin: 0;
	border-radius: 0;
}

.ns-account .woocommerce-orders-table thead th {
	background: var(--paper-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
}

.ns-account .woocommerce-orders-table tbody td,
.ns-account .woocommerce-orders-table tbody th {
	padding: 18px 20px;
	background: #fff;
	border-top: 1px solid var(--line);
	vertical-align: middle;
	font-size: 13px;
}

.ns-account .woocommerce-orders-table tbody tr:first-child td,
.ns-account .woocommerce-orders-table tbody tr:first-child th {
	border-top: none;
}

.ns-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number {
	font-weight: 600;
	font-size: 14px;
}

.ns-account .woocommerce-orders-table .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	font-size: 12px;
	border-radius: var(--r-pill);
	margin-right: 6px;
	margin-bottom: 4px;
	text-decoration: none;
	background: var(--ink);
	color: #fff;
}

.ns-account .woocommerce-orders-table .woocommerce-button:last-child {
	margin-right: 0;
}

@media (max-width: 768px) {
	.ns-account .woocommerce-orders-table thead {
		display: none;
	}

	.ns-account .woocommerce-orders-table tbody tr {
		display: block;
		padding: 16px;
		border-bottom: 1px solid var(--line);
	}

	.ns-account .woocommerce-orders-table tbody td,
	.ns-account .woocommerce-orders-table tbody th {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px 0;
		border: 0;
		width: 100%;
		text-align: right;
	}

	.ns-account .woocommerce-orders-table tbody td::before,
	.ns-account .woocommerce-orders-table tbody th::before {
		content: attr(data-title);
		font-weight: 700;
		text-transform: uppercase;
		font-size: 10px;
		letter-spacing: 0.08em;
		color: var(--muted);
		text-align: left;
		margin-right: 12px;
	}
}

/* ── Adresy ─────────────────────────────────────────────── */
.ns-account-addresses-intro {
	font-size: 13.5px;
	color: var(--muted);
	line-height: 1.6;
	margin: 0 0 28px;
	max-width: 640px;
}

.ns-account .woocommerce-Address {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 20px;
}

.ns-account .woocommerce-Address-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ns-account .woocommerce-Address-title h2,
.ns-account .woocommerce-Address-title h3 {
	font-family: var(--display);
	font-size: 22px;
	margin: 0;
	font-weight: 400;
}

.ns-account .woocommerce-Address-title .edit {
	font-size: 13px;
	font-weight: 600;
}

.ns-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.ns-account .woocommerce-Addresses {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Edycja konta ───────────────────────────────────────── */
.ns-account-edit-account .woocommerce-EditAccountForm fieldset {
	margin-top: 32px;
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--line-2);
	border-radius: 14px;
	background: #fff;
}

.ns-account-edit-account .woocommerce-EditAccountForm legend {
	padding: 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

.ns-account-edit-account .woocommerce-Button.button {
	min-height: 52px;
	padding: 0 28px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-pill);
	font-size: 15px;
	font-weight: 600;
	margin-top: 8px;
}

/* ── WooCommerce notices w obrębie konta ─────────────────── */
.ns-account .woocommerce-message,
.ns-account .woocommerce-error,
.ns-account .woocommerce-info {
	border-radius: var(--r-md);
	font-size: 14px;
}

/* ── Widok pojedynczego zamówienia (view-order) ───────────── */
.ns-account-view-order__status {
	border-bottom: 1px solid var(--line);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ns-account-view-order__lead {
	margin: 0;
	font-size: clamp(15px, 2vw, 17px);
	line-height: 1.65;
	color: var(--ink-2);
	font-weight: 500;
	letter-spacing: 0.01em;
}

.ns-account-view-order__lead mark.order-number,
.ns-account-view-order__lead mark.order-date,
.ns-account-view-order__lead mark.order-status {
	display: inline-block;
	background: rgba(26, 26, 26, 0.07);
	color: var(--ink);
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	margin: 0 1px;
	line-height: 1.35;
}

.ns-account-view-order__lead mark.order-status {
	background: rgba(232, 109, 49, 0.14);
	color: var(--orange-deep);
}

.ns-account-order-notes {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ns-note;
}

.ns-account-order-notes .woocommerce-OrderUpdate {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: var(--paper-2);
}

.ns-account-order-notes .woocommerce-OrderUpdate-meta {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin: 0 0 8px;
}

.ns-account-order-notes .woocommerce-OrderUpdate-description {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink);
	margin: 0;
}

/* Tabela szczegółów zamówienia — jak lista zamówień */
.ns-account-order-details {
	margin-bottom: 20px;
}

.ns-account-order-details .woocommerce-order-details__title {
	font-family: var(--display), Georgia, serif;
}

.ns-account .order_details {
	border: 0;
	margin: 0;
	width: 100%;
	border-collapse: collapse;
}

.ns-account .order_details thead th {
	background: var(--paper-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.ns-account .order_details thead th:last-child,
.ns-account .order_details tbody td:last-child,
.ns-account .order_details tfoot td:last-child {
	text-align: right;
}

.ns-account .order_details tbody td,
.ns-account .order_details tbody th {
	padding: 16px 18px;
	vertical-align: top;
	font-size: 14px;
	border-top: 1px solid var(--line);
	background: #fff;
}

.ns-account .order_details tbody tr:first-child td,
.ns-account .order_details tbody tr:first-child th {
	border-top: none;
}

.ns-account .order_details .product-name a {
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

.ns-account .order_details .product-name a:hover {
	color: var(--orange-deep);
}

.ns-account .order_details .wc-item-meta,
.ns-account .order_details ul.wc-item-meta {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: var(--muted);
}

.ns-account .order_details tfoot th,
.ns-account .order_details tfoot td {
	padding: 12px 18px;
	font-size: 14px;
	border-top: 1px solid var(--line);
	background: #fff;
}

.ns-account .order_details tfoot th {
	text-align: left;
	font-weight: 600;
	color: var(--ink);
}

.ns-account .order_details .order-actions-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	font-size: 13px;
	border-radius: var(--r-pill);
	margin-right: 8px;
	margin-bottom: 6px;
	text-decoration: none;
	background: var(--ink);
	color: #fff !important;
	font-weight: 600;
}

.ns-account-order-customer {
	margin-top: 0;
}

.ns-account-order-customer .woocommerce-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-top: 8px;
}

@media (min-width: 768px) {
	.ns-account-order-customer .woocommerce-columns--addresses {
		grid-template-columns: 1fr 1fr;
	}
}

.ns-account-order-customer__address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ink-2);
}

.ns-account-order-customer__address p {
	margin: 0.5em 0 0;
}

@media (max-width: 768px) {
	.ns-account .order_details tbody tr {
		display: table-row;
	}

	.ns-account .order_details.order_details-responsive tbody td:before {
		display: none;
	}
}
