/**
 * ETA — Moje konto (WooCommerce My Account)
 * Sidebar jako przyciski + czytelne zamówienia / pobrania
 */

body.eta-shop-skin.woocommerce-account {
	--eta-acc-sidebar-w: 280px;
	--eta-acc-gap: 28px;
}

/* ── Layout: nawigacja + treść ─────────────────────────────────────── */
body.eta-shop-skin.woocommerce-account .woocommerce {
	display: flex;
	flex-direction: column;
	gap: var(--eta-acc-gap);
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 64px;
	font-family: inherit;
}

@media (min-width: 900px) {
	body.eta-shop-skin.woocommerce-account .woocommerce {
		flex-direction: row;
		align-items: flex-start;
	}
}

/* ── Panel boczny — przyciski nawigacji ───────────────────────────── */
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	flex: 0 0 auto;
	background: var(--eta-bg);
	border: 1px solid var(--eta-border);
	border-radius: var(--eta-radius);
	padding: 20px 16px;
	box-shadow: var(--eta-shadow);
}

@media (min-width: 900px) {
	body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation {
		flex: 0 0 var(--eta-acc-sidebar-w);
		width: var(--eta-acc-sidebar-w) !important;
		position: sticky;
		top: 24px;
	}
}

body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Kolory/stany: eta-buttons-global.css — tu tylko layout sidebaru */
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	font-size: 15px;
	box-sizing: border-box;
}

/* ── Treść konta — panel główny ───────────────────────────────────── */
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	flex: 1 1 auto;
	min-width: 0;
	background: var(--eta-bg);
	border: 1px solid var(--eta-border);
	border-radius: var(--eta-radius);
	padding: 28px 32px;
	box-shadow: var(--eta-shadow);
}

@media (max-width: 767px) {
	body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-content {
		padding: 22px 18px;
	}
}

/* ── Kokpit — nagłówek + siatka przycisków ─────────────────────────── */
body.eta-shop-skin.woocommerce-account .eta-account-dashboard {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

body.eta-shop-skin.woocommerce-account .eta-account-dashboard__header {
	margin: 0;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--eta-border);
}

body.eta-shop-skin.woocommerce-account .eta-account-dashboard__greeting {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--eta-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

body.eta-shop-skin.woocommerce-account .eta-account-dashboard__user {
	margin: 0;
	font-size: 50px;
	font-weight: 700;
	line-height: 1.05;
	color: var(--eta-navy);
	font-family: inherit;
	word-break: break-word;
}

body.eta-shop-skin.woocommerce-account .eta-account-dashboard__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--eta-text);
	max-width: 52ch;
}

body.eta-shop-skin.woocommerce-account .eta-account-dashboard__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 4px 0 0;
}

@media (min-width: 640px) {
	body.eta-shop-skin.woocommerce-account .eta-account-dashboard__actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.eta-shop-skin.woocommerce-account .eta-account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: var(--eta-radius-sm);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
	box-sizing: border-box;
}

body.eta-shop-skin.woocommerce-account .eta-account-btn--primary {
	/* kolory: eta-buttons-global.css (.eta-btn--primary) */
}

body.eta-shop-skin.woocommerce-account .eta-account-btn--logout {
	grid-column: 1 / -1;
	justify-self: start;
	min-width: 160px;
}

@media (max-width: 479px) {
	body.eta-shop-skin.woocommerce-account .eta-account-dashboard__user {
		font-size: clamp(36px, 11vw, 50px);
	}

	body.eta-shop-skin.woocommerce-account .eta-account-dashboard__actions {
		grid-template-columns: 1fr;
	}

	body.eta-shop-skin.woocommerce-account .eta-account-btn--logout {
		width: 100%;
		justify-self: stretch;
	}
}

/* ── Nagłówki sekcji ──────────────────────────────────────────────── */
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-content h2,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-content h3 {
	color: var(--eta-navy);
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 700;
	margin: 0 0 20px;
	line-height: 1.25;
}

body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-content h3 {
	font-size: 16px;
	margin-top: 28px;
}

/* ── Zamówienia — tabela ─────────────────────────────────────────── */
body.eta-shop-skin.woocommerce-account .woocommerce-orders-table,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--eta-border);
	border-radius: var(--eta-radius-sm);
	overflow: hidden;
	font-size: 14px;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table thead th,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads thead th {
	background: var(--eta-bg-soft);
	color: var(--eta-text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 14px 16px;
	border-bottom: 1px solid var(--eta-border);
	text-align: left;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody td,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody td {
	padding: 16px;
	border-bottom: 1px solid var(--eta-border);
	color: var(--eta-text);
	vertical-align: middle;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody tr:last-child td,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody tr:last-child td {
	border-bottom: 0;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody tr:hover td,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody tr:hover td {
	background: rgba(242, 248, 251, 0.65);
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads a {
	color: var(--eta-link);
	font-weight: 600;
	text-decoration: none;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover,
body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads a:hover {
	color: var(--eta-link-strong);
	text-decoration: underline;
}

/* Kolory przycisków w treści konta: eta-buttons-global.css */

/* Kolumna DZIAŁANIA — jedna szerokość, pionowy stos, tokeny .eta-btn */
body.eta-shop-skin.woocommerce-account .woocommerce-orders-table__cell-order-actions .eta-order-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	max-width: 260px;
	margin: 0;
	padding: 0;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table__cell-order-actions .eta-order-actions .woocommerce-button,
body.eta-shop-skin.woocommerce-account .woocommerce-orders-table__cell-order-actions .eta-order-actions .eta-btn {
	width: 100% !important;
	margin: 0 !important;
	min-height: 44px;
	padding: 10px 16px !important;
	box-sizing: border-box;
	text-align: center;
	white-space: normal;
	line-height: 1.25;
}

body.eta-shop-skin.woocommerce-account .woocommerce-orders-table__cell-order-actions .eta-order-actions .eta-btn--outline {
	background: var(--eta-btn-outline-bg) !important;
	color: var(--eta-btn-outline-text) !important;
	border: 1px solid var(--eta-btn-outline-border) !important;
	border-radius: 6px !important;
}

body.eta-shop-skin.woocommerce-account .woocommerce-Message,
body.eta-shop-skin.woocommerce-account .woocommerce-info,
body.eta-shop-skin.woocommerce-account .woocommerce-message {
	border-radius: var(--eta-radius-sm);
	border-left: 4px solid var(--eta-link);
	background: var(--eta-bg-soft);
	color: var(--eta-text);
	padding: 14px 18px;
	margin-bottom: 20px;
}

/* Puste stany */
body.eta-shop-skin.woocommerce-account .woocommerce-Message--info {
	background: var(--eta-bg-soft);
	border: 1px dashed var(--eta-border);
	border-left: 4px solid var(--eta-link);
}

/* ── Formularze (logowanie, dane konta, adresy) ─────────────────── */
body.eta-shop-skin.woocommerce-account .woocommerce-form-login,
body.eta-shop-skin.woocommerce-account .woocommerce-form-register,
body.eta-shop-skin.woocommerce-account .woocommerce-EditAccountForm,
body.eta-shop-skin.woocommerce-account .woocommerce-address-fields {
	max-width: 520px;
}

body.eta-shop-skin.woocommerce-account .woocommerce-form-row label {
	color: var(--eta-text-muted);
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
}

body.eta-shop-skin.woocommerce-account .woocommerce-form-row input.input-text,
body.eta-shop-skin.woocommerce-account .woocommerce-form-row select,
body.eta-shop-skin.woocommerce-account .woocommerce-form-row textarea {
	border: 1px solid var(--eta-border) !important;
	border-radius: var(--eta-radius-btn) !important;
	padding: 12px 14px !important;
	min-height: 48px;
	font-size: 15px;
	color: var(--eta-navy);
	background: #fff;
	box-shadow: none;
}

body.eta-shop-skin.woocommerce-account .woocommerce-form-row input.input-text:focus,
body.eta-shop-skin.woocommerce-account .woocommerce-form-row select:focus,
body.eta-shop-skin.woocommerce-account .woocommerce-form-row textarea:focus {
	border-color: var(--eta-link) !important;
	box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15) !important;
	outline: none;
}

body.eta-shop-skin.woocommerce-account .woocommerce-form-login__submit,
body.eta-shop-skin.woocommerce-account .woocommerce-form-register__submit,
body.eta-shop-skin.woocommerce-account button[type="submit"].button {
	/* kolory: eta-buttons-global.css (primary) */
	min-height: 48px;
	padding: 12px 24px !important;
}

body.eta-shop-skin.woocommerce-account .u-columns.col2-set {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 768px) {
	body.eta-shop-skin.woocommerce-account .u-columns.col2-set {
		grid-template-columns: 1fr 1fr;
	}
}

body.eta-shop-skin.woocommerce-account .u-column1,
body.eta-shop-skin.woocommerce-account .u-column2 {
	background: var(--eta-bg);
	border: 1px solid var(--eta-border);
	border-radius: var(--eta-radius);
	padding: 28px 24px;
	box-shadow: var(--eta-shadow);
	width: 100% !important;
	float: none !important;
}

body.eta-shop-skin.woocommerce-account .u-column1 h2,
body.eta-shop-skin.woocommerce-account .u-column2 h2 {
	margin-top: 0;
	color: var(--eta-navy);
	font-size: 20px;
}

/* ── Adresy — książka adresowa (ETA) + legacy WC reset ───────────── */
body.eta-shop-skin.woocommerce-account .woocommerce-Addresses,
body.eta-shop-skin.woocommerce-account .woocommerce-Addresses.col2-set {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 20px;
	float: none !important;
	width: 100% !important;
}

@media (min-width: 700px) {
	body.eta-shop-skin.woocommerce-account .woocommerce-Addresses,
	body.eta-shop-skin.woocommerce-account .woocommerce-Addresses.col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

body.eta-shop-skin.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.eta-shop-skin.woocommerce-account .woocommerce-Addresses .u-column1,
body.eta-shop-skin.woocommerce-account .woocommerce-Addresses .u-column2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	clear: none !important;
	position: relative !important;
	background: var(--eta-bg-soft);
	border: 1px solid var(--eta-border);
	border-radius: var(--eta-radius-sm);
	padding: 20px;
	min-width: 0;
}

body.eta-shop-skin.woocommerce-account .woocommerce-Address-title,
body.eta-shop-skin.woocommerce-account .addresses .title {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

body.eta-shop-skin.woocommerce-account .woocommerce-Address-title h2,
body.eta-shop-skin.woocommerce-account .woocommerce-Address-title h3,
body.eta-shop-skin.woocommerce-account .addresses .title h2,
body.eta-shop-skin.woocommerce-account .addresses .title h3 {
	float: none !important;
	margin: 0;
	flex: 1 1 auto;
}

body.eta-shop-skin.woocommerce-account .woocommerce-Address .edit,
body.eta-shop-skin.woocommerce-account .addresses .title .edit {
	float: none !important;
	margin: 0;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border-radius: var(--eta-radius-btn);
	border: 1px solid var(--eta-border);
	background: #fff;
	color: var(--eta-link);
	font-weight: 600;
	text-decoration: none;
}

body.eta-shop-skin.woocommerce-account .woocommerce-Address .edit:hover,
body.eta-shop-skin.woocommerce-account .addresses .title .edit:hover {
	border-color: var(--eta-link);
}

body.eta-shop-skin.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	line-height: 1.55;
}

/* ── Mobile: tabela zamówień jako karty ───────────────────────────── */
@media (max-width: 768px) {
	body.eta-shop-skin.woocommerce-account .woocommerce-orders-table thead,
	body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads thead {
		display: none;
	}

	body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody tr,
	body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody tr {
		display: block;
		margin-bottom: 14px;
		border: 1px solid var(--eta-border);
		border-radius: var(--eta-radius-sm);
		background: #fff;
	}

	body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody td,
	body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		border-bottom: 1px solid var(--eta-border);
		padding: 12px 14px;
	}

	body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody td:last-child,
	body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody td:last-child {
		border-bottom: 0;
		flex-direction: column;
		align-items: stretch;
	}

	body.eta-shop-skin.woocommerce-account .woocommerce-orders-table__cell-order-actions .eta-order-actions {
		max-width: none;
		width: 100%;
	}

	body.eta-shop-skin.woocommerce-account .woocommerce-orders-table tbody td::before,
	body.eta-shop-skin.woocommerce-account .woocommerce-table--order-downloads tbody td::before {
		content: attr(data-title);
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--eta-text-muted);
		flex: 0 0 42%;
	}
}
