/*
 * Nawigacja w „Moim koncie” (/moje-konto/ i podstrony).
 * Ładowane przez inc/menu-moje-konto.php tylko na stronach konta.
 *
 * Kolory marki z nagłówka i przycisków: granat #004a6a, pomarańcz #ff4f18,
 * turkus #2cd6cc. Desktop: pionowa lista w karcie. Telefon: przewijany
 * poziomo rząd zakładek, żeby treść konta nie lądowała pod całym ekranem menu.
 */

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid #dfe8ec;
	border-radius: 16px;
}

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

/* Shortcode konta stoi w widgecie tekstowym Elementora, który dokleja <br>
   na początku każdego linku. Stąd był tekst przyklejony do dołu pudełka. */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a br {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 11px 16px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #004a6a;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible {
	background: #eaf8f7;
	color: #004a6a;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: #eaf8f7;
	box-shadow: inset 3px 0 0 #ff4f18;
	font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #dfe8ec;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #5f6f7a;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fdeeee;
	color: #c9303a;
}

@media (max-width: 768px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 24px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 8px;
		padding: 0 0 6px;
		overflow-x: auto;
		border: 0;
		border-radius: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
		flex: 0 0 auto;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		padding: 8px 14px;
		border: 1px solid #cfdde3;
		border-radius: 999px;
		font-size: 14px;
		white-space: nowrap;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
		background: #004a6a;
		border-color: #004a6a;
		box-shadow: none;
		color: #fff;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}
}

/*
 * Przyciski w treści konta według KV: pomarańczowa pigułka jak „Zapisz zmiany”
 * i przyciski Elementora. Przyciski w tabelach („Zobacz”, „Pobierz”, „Zapłać”)
 * łapały tylko ogólną regułę Astry z granatowym tłem #1e293b.
 */
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content a.button {
	display: inline-block;
	padding: 9px 20px;
	border: 0;
	border-radius: 100px;
	background: #ff4f18;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:focus-visible {
	background: #004a6a;
	color: #fff;
}

/* Tabele w koncie (zamówienia, pobrania): bez ciężkiej siatki, wiersze rozdzielone linią. */
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border: 1px solid #dfe8ec;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 16px;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 16px;
	border: 0;
	border-top: 1px solid #edf2f4;
	vertical-align: middle;
	font-size: 15px;
	line-height: 1.45;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
	border-top: 0;
	background: #f4f9fa;
	color: #004a6a;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}

/* Te same <br> i <p> z widgetu tekstowego Elementora, co w nawigacji. */
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table br {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table p {
	margin: 0;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-number a {
	color: #004a6a;
	font-weight: 600;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
	text-align: right;
	white-space: nowrap;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button + .button {
	margin-left: 6px;
}

/* Telefon: każde zamówienie to jedna karta z numerem u góry i przyciskiem na całą szerokość. */
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive {
		border: 0;
		border-radius: 0;
		overflow: visible;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody tr {
		display: block;
		margin-bottom: 12px;
		padding: 6px 16px 14px;
		border: 1px solid #dfe8ec;
		border-radius: 14px;
		background: #fff;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody th,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 7px 0;
		border: 0;
		background: transparent;
		text-align: right;
		font-size: 14px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody th::before,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody td::before {
		color: #5f6f7a;
		font-weight: 500;
		text-align: left;
	}

	body.woocommerce-account .woocommerce-orders-table__cell-order-number {
		padding: 10px 0 8px !important;
		border-bottom: 1px solid #edf2f4 !important;
		font-size: 16px !important;
	}

	body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
		padding-top: 12px !important;
	}

	body.woocommerce-account .woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
		flex: 1;
	}
}

/* Adresy: karty jak nawigacja konta, link „Dodaj/Edytuj” w kolorze akcji zamiast czerwieni.
   Link siedzi w <p> z <br> od widgetu tekstowego Elementora. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
	padding: 18px 20px;
	border: 1px solid #dfe8ec;
	border-radius: 16px;
	background: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address br {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address p {
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .woocommerce-Address-title {
	margin: 0 0 12px;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid #edf2f4;
	background: transparent;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	margin: 0 0 4px;
	color: #004a6a;
	font-size: 20px;
	text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit {
	float: none;
	margin: 0;
	padding: 0;
	background: transparent;
	color: #ff4f18;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover {
	color: #004a6a;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 15px;
	line-height: 1.6;
}
