/* 02.11.2026 Moje konto w stylu marki (inc/konto.php): jasna strona, czarne napisy, przyciski #FF8A00 z czarnym tekstem,
   linki ciemne z podkresleniem (kontrast >= 4,5:1), telefon 390 bez przewijania w bok. */
body.woocommerce-account .woocommerce { max-width: 1120px; margin: 0 auto; padding: 32px 16px 56px; color: #1e1e1e; font-size: 16px; line-height: 1.55; }
body.woocommerce-account .woocommerce::after { content: ""; display: table; clear: both; }
body.woocommerce-account .woocommerce a:not(.ah-btn):not(.button):not(.woocommerce-button) { color: #1e1e1e; text-decoration: underline; text-underline-offset: 2px; }
body.woocommerce-account .woocommerce h2, body.woocommerce-account .woocommerce h3 { font-family: var(--p, 'Poppins', Arial, sans-serif); color: #000; font-weight: 700; line-height: 1.25; margin: 0 0 16px; }
body.woocommerce-account .woocommerce h2 { font-size: 26px; }
body.woocommerce-account .woocommerce h3 { font-size: 20px; }

/* menu konta */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #1e1e1e; background: #fff; color: #1e1e1e !important; text-decoration: none !important; font-weight: 700; font-size: 15px; }
.woocommerce-MyAccount-navigation li.is-active a { background: #FF8A00; border-color: #FF8A00; color: #000 !important; }
.woocommerce-MyAccount-navigation li a:hover { background: #fff1e0; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { border-color: #8a8a8a; color: #3a3a3a !important; }
@media (min-width: 900px) {
	body.woocommerce-account.logged-in .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
	body.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; }
	.woocommerce-MyAccount-navigation li a { width: 100%; border-radius: 10px; }
	.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 12px 0 0; }
}
.woocommerce-MyAccount-content { min-width: 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; padding: 24px; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

/* tabela zamowien: na telefonie karty */
.woocommerce-orders-table, .woocommerce-table--order-details, .shop_table.order_details { width: 100%; border-collapse: collapse; font-size: 15px; }
.woocommerce-orders-table th, .woocommerce-orders-table td, .woocommerce-table--order-details th, .woocommerce-table--order-details td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: middle; color: #1e1e1e; }
.woocommerce-orders-table thead th, .woocommerce-table--order-details thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #595959; }
.woocommerce-orders-table .woocommerce-button, .woocommerce-MyAccount-content .button, .woocommerce-account .woocommerce-Button, .woocommerce-account button.button, .ah-ponow .ah-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; margin: 2px 6px 2px 0; border-radius: 8px; border: 0;
	background: #FF8A00; color: #000 !important; font-weight: 700; font-size: 14px; text-decoration: none !important; cursor: pointer; }
.woocommerce-orders-table .woocommerce-button.view { background: #fff; box-shadow: inset 0 0 0 1.5px #1e1e1e; }
@media (max-width: 767px) {
	.woocommerce-orders-table thead { display: none; }
	.woocommerce-orders-table tr { display: block; border: 1px solid #e5e5e5; border-radius: 12px; padding: 8px 14px; margin: 0 0 12px; }
	.woocommerce-orders-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; }
	.woocommerce-orders-table td::before { content: attr(data-title); color: #595959; font-size: 14px; }
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { display: block; padding-top: 8px; }
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { content: none; }
	.woocommerce-MyAccount-content { padding: 18px 16px; }
}
mark.order-status, mark.order-number, mark.order-date { background: none; color: #1e1e1e; font-weight: 700; }

/* adresy i formularze */
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.woocommerce-Address { border: 1px solid #e5e5e5; border-radius: 12px; padding: 18px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.woocommerce-Address address { font-style: normal; color: #1e1e1e; }
body.woocommerce-account .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
body.woocommerce-account .woocommerce form .form-row label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 15px; color: #000; }
body.woocommerce-account .woocommerce form .form-row .required { color: #b45309; text-decoration: none; }
body.woocommerce-account .woocommerce form .input-text, body.woocommerce-account .woocommerce form select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #8a8a8a; border-radius: 8px; background: #fff; color: #000; font-size: 16px; }
body.woocommerce-account .woocommerce form .input-text:focus { outline: 2px solid #000; outline-offset: 1px; border-color: #000; }
body.woocommerce-account .woocommerce fieldset { border: 1px solid #e5e5e5; border-radius: 12px; padding: 16px; margin: 8px 0 16px; }
body.woocommerce-account .woocommerce fieldset legend { font-weight: 700; padding: 0 6px; }
body.woocommerce-account .woocommerce em, body.woocommerce-account .woocommerce .description { color: #595959; font-size: 14px; }
@media (min-width: 640px) {
	body.woocommerce-account .woocommerce form .form-row-first, body.woocommerce-account .woocommerce form .form-row-last { width: calc(50% - 8px); float: left; }
	body.woocommerce-account .woocommerce form .form-row-last { float: right; }
	body.woocommerce-account .woocommerce form .clear { clear: both; }
}

/* logowanie i rejestracja (niezalogowany) */
body.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
body.woocommerce-account .u-columns .u-column1, body.woocommerce-account .u-columns .u-column2 { width: auto; float: none; max-width: none; }
body.woocommerce-account form.woocommerce-form-login, body.woocommerce-account form.woocommerce-form-register, body.woocommerce-account form.woocommerce-ResetPassword { background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; padding: 24px; margin: 0; }
body.woocommerce-account .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-weight: 400 !important; }

/* komunikaty */
body.woocommerce-account .woocommerce-message, body.woocommerce-account .woocommerce-info, body.woocommerce-account .woocommerce-error,
body.woocommerce-cart .woocommerce-message, body.woocommerce-cart .woocommerce-info { border: 0; border-left: 4px solid #FF8A00; background: #fff4e5; color: #1e1e1e; padding: 14px 16px; border-radius: 0 8px 8px 0; list-style: none; margin: 0 0 20px; }
body.woocommerce-account .woocommerce-error { border-left-color: #b42318; background: #fdecec; }
body.woocommerce-account .woocommerce-message::before, body.woocommerce-account .woocommerce-info::before, body.woocommerce-account .woocommerce-error::before { content: none; }

/* usuniecie konta */
.ah-konto-usun { margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid #e5e5e5; }
.ah-konto-usun h3 { font-size: 18px !important; }
.ah-konto-usun .ah-btn--obrys { background: #fff; color: #1e1e1e; box-shadow: inset 0 0 0 1.5px #1e1e1e; border: 0; min-height: 44px; padding: 0 18px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.ah-ponow { margin: 20px 0 0; }

/* komunikat po „Zamów ponownie” nad koszykiem */
.ah-ponow-info { max-width: 1120px; margin: 24px auto 0; padding: 0 16px; }
.ah-ponow-info p { margin: 0 0 10px; padding: 14px 16px; border-left: 4px solid #FF8A00; background: #fff4e5; color: #1e1e1e; border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.45; }
.ah-ponow-info .ah-ponow-info__pom { border-left-color: #6b6b6b; background: #f2f2f2; }
.ah-ponow-info .ah-ponow-info__blad { border-left-color: #b42318; background: #fdecec; }

/* poprawki po zrzucie 390 (02.11) */
body.woocommerce-account .woocommerce table.shop_table { border: 0; border-radius: 0; margin: 0; }
.woocommerce-orders-table .woocommerce-button.view, .woocommerce-orders-table a.button.view { background: #fff !important; color: #1e1e1e !important; box-shadow: inset 0 0 0 1.5px #1e1e1e; }
.woocommerce-orders-table__cell-order-actions { white-space: normal; }
@media (max-width: 767px) {
	.woocommerce-orders-table th.woocommerce-orders-table__cell { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; font-weight: 700; }
	.woocommerce-orders-table th.woocommerce-orders-table__cell::before { content: attr(data-title); color: #595959; font-size: 14px; font-weight: 400; }
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a { margin: 0; flex: 1 1 auto; }
	.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: 0; }
}
/* siatka 1024+: jawne miejsca (Woo dodaje wlasne float/width i dodatkowe elementy przed menu) */
body.woocommerce-account .woocommerce-MyAccount-navigation, body.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
@media (min-width: 900px) {
	body.woocommerce-account.logged-in .woocommerce > * { grid-column: 1 / -1; }
	body.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 2; }
	body.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; grid-row: 2; }
}
@media (max-width: 768px) { /* nadpisanie woocommerce-smallscreen.css */
	body.woocommerce-account .woocommerce table.shop_table_responsive tbody th { display: flex !important; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: left; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tbody th::before { content: attr(data-title); color: #595959; font-size: 14px; font-weight: 400; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions { display: flex !important; flex-wrap: wrap; gap: 8px; text-align: left; padding-top: 10px; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions::before { content: none !important; display: none; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions a { flex: 1 1 140px; margin: 0; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td::before { float: none; font-weight: 400; color: #595959; }
	body.woocommerce-account .woocommerce-MyAccount-content { border: 0; padding: 0; background: none; }
}
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td:not(.woocommerce-orders-table__cell-order-actions) { display: flex !important; justify-content: space-between; gap: 12px; text-align: right; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions a { justify-content: center; text-align: center; }
}
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td:not(.woocommerce-orders-table__cell-order-actions) { display: block !important; text-align: right; }
	body.woocommerce-account .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td:not(.woocommerce-orders-table__cell-order-actions)::before { float: left; }
}
/* clearfix Woo (::before/::after) nie moze zajmowac komorek siatki */
body.woocommerce-account .u-columns.col2-set::before, body.woocommerce-account .u-columns.col2-set::after { display: none; content: none; }

/* 02.11 v2 (Danusia: „krzywo”) ------------------------------------------------------------------ */
body.woocommerce-account .woocommerce { padding-top: 0; }
body.woocommerce-account.logged-in .woocommerce { row-gap: 0; }
body.woocommerce-account .woocommerce-notices-wrapper:empty { display: none; }
@media (min-width: 900px) { body.woocommerce-account.logged-in .woocommerce { column-gap: 40px; } }
/* tabela: wszystko do srodka w pionie */
body.woocommerce-account .woocommerce table.shop_table th, body.woocommerce-account .woocommerce table.shop_table td { vertical-align: middle !important; }
.woocommerce-orders-table__cell-order-number a { font-weight: 700; white-space: nowrap; }
/* pigulka statusu (kontrast >= 4,5:1) */
.ah-status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; background: #ececec; color: #1e1e1e; }
.ah-status--completed { background: #e3f4e8; color: #11592b; }
.ah-status--processing { background: #fff1de; color: #7a3e00; }
.ah-status--on-hold { background: #fff6cc; color: #5c4a00; }
.ah-status--pending { background: #eef0f3; color: #3a4350; }
.ah-status--cancelled, .ah-status--failed { background: #fde8e8; color: #8a1c1c; }
/* przyciski w liscie zamowien i w widoku zamowienia: 40 px, tekst na srodku, odstep 8 px, mniejsze niz glowne CTA */
.ah-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.woocommerce-account .woocommerce .ah-akcja, body.woocommerce-account .woocommerce-MyAccount-content a.button, body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button {
	display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; height: 40px !important; min-height: 0 !important; margin: 0 !important;
	padding: 0 16px !important; line-height: 1 !important; border-radius: 8px !important; border: 0 !important; font: 700 14px/1 var(--p, 'Poppins', Arial, sans-serif) !important;
	background: #FF8A00 !important; color: #000 !important; text-decoration: none !important; box-shadow: none !important; white-space: nowrap; }
body.woocommerce-account .woocommerce .ah-akcja--view, body.woocommerce-account .woocommerce-MyAccount-content a.button.view, body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button.view {
	background: #fff !important; box-shadow: inset 0 0 0 1.5px #1e1e1e !important; }
body.woocommerce-account .woocommerce-MyAccount-content .order-actions-button, body.woocommerce-account .woocommerce-table--order-details td a.button { margin-right: 8px !important; }
body.woocommerce-account .woocommerce-table--order-details tfoot td { display: table-cell; }
/* menu: Wyloguj jako link tekstowy pod menu, wyrownany z pozycjami */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { border: 0 !important; background: none !important; min-height: 40px; padding: 0 18px; color: #3a3a3a !important; text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700; }
@media (min-width: 900px) { .woocommerce-MyAccount-navigation ul { gap: 8px; } }
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions { display: block !important; }
	.ah-akcje { flex-direction: column; align-items: stretch; gap: 8px; }
	body.woocommerce-account .woocommerce .ah-akcja { width: 100%; }
	.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { padding: 0 8px; }
}
body.woocommerce-account .woocommerce .ah-akcje .ah-akcja { flex: none !important; }
@media (min-width: 769px) { .ah-akcje { flex-wrap: nowrap; } .woocommerce-orders-table__cell-order-actions { width: 1%; white-space: nowrap; } }
@media (min-width: 769px) and (max-width: 1199px) { /* 1024: tabela miesci sie w karcie - przyciski jeden pod drugim, rowna szerokosc */
	.ah-akcje { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
	.woocommerce-orders-table__cell-order-actions { width: auto; }
	body.woocommerce-account .woocommerce table.shop_table th, body.woocommerce-account .woocommerce table.shop_table td { padding-left: 8px; padding-right: 8px; }
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { display: inline-flex !important; align-items: center; min-height: 44px; }
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td.woocommerce-orders-table__cell-order-status { display: flex !important; justify-content: space-between; align-items: center; }
	body.woocommerce-account .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td.woocommerce-orders-table__cell-order-status::before { float: none; }
	body.woocommerce-account .woocommerce table.shop_table_responsive tr:nth-child(2n) td { background: none !important; }
}
/* Adresy: tytul do lewej, mniejszy, link „Dodaj/Edytuj” pod nim */
body.woocommerce-account .woocommerce-Address-title { display: block !important; text-align: left; }
body.woocommerce-account .woocommerce-Address-title h2, body.woocommerce-account .woocommerce-Address-title h3 { float: none !important; font-size: 20px !important; margin: 0 0 8px !important; text-align: left; }
body.woocommerce-account .woocommerce-Address-title a.edit { float: none !important; display: inline-flex; align-items: center; min-height: 40px; }
