/**
 * FlowAccount — „Moje konto” w ramie panelu. Pola i przyciski dziedziczą z floworder-checkout.css
 * (rama ma klasy .fo-app.fo-co), tu tylko układ konta i elementy WooCommerce, których checkout nie ma.
 */
.fo-app .fo-acct-main { padding: 22px 28px 48px; }
.fo-app .fo-acct-head { max-width: 760px; margin: 0 auto 18px; display: flex; flex-direction: column; gap: 10px; }
.fo-app .fo-acct-head .fo-h1 { font-size: 24px; }
.fo-app .fo-acct-content { max-width: 760px; margin: 0 auto; }
.fo-app.fo-acct .woocommerce { max-width: none; width: 100%; margin: 0; }
/* Nawigację WooCommerce zastępują nasze zakładki nad treścią. */
.fo-app.fo-acct .woocommerce-MyAccount-navigation { display: none !important; }
.fo-app.fo-acct .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
.fo-app.fo-acct .woocommerce-MyAccount-content > p:first-child:empty { display: none; }

/* karty treści */
.fo-app.fo-acct .woocommerce-EditAccountForm, .fo-app.fo-acct .woocommerce-form-login, .fo-app.fo-acct .lost_reset_password,
.fo-app.fo-acct .woocommerce-address-fields, .fo-app.fo-acct .woocommerce-Address { border: 1px solid var(--fo-line); border-radius: 12px; padding: 20px 22px 22px; background: #fff; margin: 0; }
.fo-app.fo-acct form.login, .fo-app.fo-acct form.lost_reset_password { max-width: 520px; }
.fo-app.fo-acct .woocommerce-form-row, .fo-app.fo-acct .form-row { margin: 0 0 12px !important; }
.fo-app.fo-acct .form-row label { display: block; font-weight: 700; font-size: 11.5px; color: var(--fo-text); margin-bottom: 4px; }
.fo-app.fo-acct .form-row .input-text, .fo-app.fo-acct .form-row select { width: 100%; }
.fo-app.fo-acct .woocommerce-form-row--wide { width: 100%; float: none; }
/* Siatka zamiast floatów WooCommerce — telefon bez pary (w adresach nie ma NIP-u) nie zostawia dziury. */
.fo-app.fo-acct .woocommerce-address-fields__field-wrapper, .fo-app.fo-acct .woocommerce-EditAccountForm { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 12px; }
.fo-app.fo-acct .woocommerce-EditAccountForm > *, .fo-app.fo-acct .woocommerce-address-fields__field-wrapper > * { grid-column: span 6; min-width: 0; }
.fo-app.fo-acct .form-row.form-row-first, .fo-app.fo-acct .form-row.form-row-last { grid-column: span 3; width: 100%; float: none; }
.fo-app.fo-acct .form-row.fo-co-third { grid-column: span 2; width: 100%; float: none; }
/* W adresach nie ma NIP-u — firma i telefon zajmują cały wiersz. */
.fo-app.fo-acct #billing_company_field, .fo-app.fo-acct #shipping_company_field, .fo-app.fo-acct #billing_phone_field, .fo-app.fo-acct #shipping_phone_field { grid-column: span 6; }
.fo-app.fo-acct .woocommerce-EditAccountForm > button, .fo-app.fo-acct .woocommerce-EditAccountForm > p:has(> button) { justify-self: start; }
/* WooCommerce (.woocommerce form .form-row .input-text) ma wyższą specyficzność niż reguły checkoutu. */
.fo-app.fo-acct form .form-row .input-text, .fo-app.fo-acct form .form-row select { height: 40px; padding: 0 12px; border: 1px solid var(--fo-line-input); border-radius: 8px; background: #fff; font-family: inherit; font-size: 13.5px; color: var(--fo-ink); box-shadow: none; }
.fo-app.fo-acct form .form-row .input-text:focus { border-color: var(--fo-ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); outline: none; }
.fo-app.fo-acct form .form-row .password-input .input-text { padding-right: 40px; }
.fo-app.fo-acct fieldset { border: 0; padding: 0; margin: 22px 0 0; }
.fo-app.fo-acct legend, .fo-app.fo-acct .woocommerce-Address-title h2, .fo-app.fo-acct h2, .fo-app.fo-acct h3 { font-weight: 800; font-size: 15px; margin: 0 0 10px; padding: 0; }
.fo-app.fo-acct .woocommerce-Address-title h2 { margin: 0; }
.fo-app.fo-acct .description, .fo-app.fo-acct em { font-size: 11.5px; color: var(--fo-dim); font-style: normal; }
/* Przełącznik „pokaż hasło” WooCommerce: bez arkusza rdzenia (zdjęty w ramie) był pustym prostokątem POD polem
   (zgłoszenie Michała 23.08 — „dziwne kółko na dole”). Tu: ikona oka w prawym rogu pola, własny SVG. */
.fo-app .password-input { position: relative; display: block; width: 100%; }
.fo-app .password-input .input-text { padding-right: 42px !important; }
.fo-app .show-password-input { position: absolute !important; top: 50% !important; right: 8px !important; transform: translateY(-50%); width: 28px !important; height: 28px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>") center/18px 18px no-repeat !important; box-shadow: none !important; cursor: pointer; font-size: 0 !important; line-height: 0 !important; color: transparent !important; }
.fo-app .show-password-input::before, .fo-app .show-password-input::after { display: none !important; content: none !important; }
.fo-app .show-password-input:hover { background-color: #f2f2f2 !important; }
.fo-app .show-password-input.display-password { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/><line x1='1' y1='1' x2='23' y2='23'/></svg>") !important; }

/* przyciski WooCommerce w stylu panelu */
.fo-app.fo-acct .button, .fo-app.fo-acct button.woocommerce-Button, .fo-app.fo-acct button[type="submit"] { background: var(--fo-ink) !important; color: #fff !important; border: 1px solid var(--fo-ink) !important; border-radius: 8px !important; font-family: inherit; font-weight: 800; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; padding: 13px 22px !important; cursor: pointer; line-height: 1 !important; }
.fo-app.fo-acct .button:hover, .fo-app.fo-acct button[type="submit"]:hover { opacity: .88; }
.fo-app.fo-acct .woocommerce-Address-title .edit { float: none; font-weight: 700; font-size: 12px; text-decoration: underline; }
.fo-app.fo-acct .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fo-app.fo-acct .woocommerce-Addresses .woocommerce-Address { width: 100%; float: none; }
.fo-app.fo-acct .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.fo-app.fo-acct .woocommerce-Address address { font-style: normal; font-size: 13px; line-height: 1.7; color: var(--fo-text); }
.fo-app.fo-acct .woocommerce-Address .edit::after { display: none; }

/* logowanie */
.fo-app.fo-acct .woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; margin: 0 0 14px; }
.fo-app.fo-acct .woocommerce-form-login .woocommerce-form-login__rememberme input { width: 18px; height: 18px; accent-color: var(--fo-ink); margin: 0; }
.fo-app.fo-acct .woocommerce-form-login__submit { width: 100%; }
.fo-app.fo-acct .woocommerce-LostPassword { font-size: 12px; margin: 12px 0 0; }
.fo-app.fo-acct .woocommerce-LostPassword a { text-decoration: underline; font-weight: 600; }
.fo-app.fo-acct .lost_reset_password p:first-child { font-size: 13px; color: var(--fo-muted); line-height: 1.6; margin: 0 0 14px; }
.fo-app.fo-acct .woocommerce-Button.button { margin-top: 4px; }
.fo-app .fo-acct-register { max-width: 520px; margin-top: 18px; padding: 18px 22px; border: 1px solid var(--fo-line); border-radius: 12px; background: var(--fo-bg-soft); }
.fo-app .fo-acct-register-title { font-weight: 800; font-size: 14px; }
.fo-app .fo-acct-register-text { font-size: 12.5px; color: var(--fo-muted); line-height: 1.65; margin: 6px 0 12px; }
.fo-app .fo-acct-register .fo-btn { display: inline-flex; }

/* komunikaty */
.fo-app.fo-acct .woocommerce-message, .fo-app.fo-acct .woocommerce-error, .fo-app.fo-acct .woocommerce-info, .fo-app.fo-acct .woocommerce-notices-wrapper > div { border: 1px solid var(--fo-line); border-left: 4px solid var(--fo-green-dark); border-radius: 8px; background: #fff; padding: 12px 16px !important; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; list-style: none; }
.fo-app.fo-acct .woocommerce-error { border-left-color: var(--fo-red); }
.fo-app.fo-acct .woocommerce-info { border-left-color: var(--fo-blue); }
.fo-app.fo-acct .woocommerce-message::before, .fo-app.fo-acct .woocommerce-error::before, .fo-app.fo-acct .woocommerce-info::before { display: none; }
.fo-app.fo-acct .woocommerce-error li { margin: 0; }

/* zgody e-mail/SMS (Consents::account_fields) */
.fo-app.fo-acct .fo-consents-account { margin-top: 22px; }

@media (max-width: 760px) {
	.fo-app .fo-acct-main { padding: 14px 14px 36px; }
	.fo-app.fo-acct .form-row.form-row-first, .fo-app.fo-acct .form-row.form-row-last, .fo-app.fo-acct .form-row.fo-co-third { grid-column: span 6; }
	.fo-app.fo-acct .woocommerce-Addresses { grid-template-columns: 1fr; }
}
/* Nagłówek „Logowanie” WooCommerce dubluje nasz h1. */
.fo-app.fo-acct .woocommerce > h2, .fo-app.fo-acct .u-columns > h2, .fo-app.fo-acct #customer_login h2 { display: none; }
/* Kolumny WooCommerce (.col2-set .col-1/.col-2: float + 48%) → siatka. */
.fo-app.fo-acct .woocommerce-Addresses > .u-column1, .fo-app.fo-acct .woocommerce-Addresses > .u-column2, .fo-app.fo-acct .col2-set .col-1, .fo-app.fo-acct .col2-set .col-2 { width: 100% !important; float: none !important; margin: 0; max-width: none; }
.fo-app.fo-acct .woocommerce-Address-title h2 { flex: 1; }
.fo-app.fo-acct .woocommerce-Address-title .edit { white-space: nowrap; }
/* Clearfix WooCommerce (::before/::after) wchodził do siatki jako pierwsza komórka. */
.fo-app.fo-acct .woocommerce-Addresses::before, .fo-app.fo-acct .woocommerce-Addresses::after { display: none !important; content: none; }
.fo-app.fo-acct .fo-consents-account .form-row { margin-bottom: 8px !important; }
/* YITH Customize My Account (prod) wstrzykuje własną nawigację z avatarem — zakładki mamy swoje. */
.fo-app.fo-acct .yith-wcmap, .fo-app.fo-acct .yith-wcmap-sidebar, .fo-app.fo-acct #my-account-menu { display: none !important; }
/* Prod: obcy arkusz daje nagłówkom adresów tło, ramkę i padding. */
.fo-app.fo-acct .woocommerce-Address-title, .fo-app.fo-acct header.title { border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }

/* Widok gościa (logowanie, odzyskiwanie hasła): nagłówek, formularz i box rejestracji tworzą
   JEDNĄ kolumnę. Wcześniej blok miał 760 px, a formularz 520 px i siedział przy lewej krawędzi —
   wyglądało to na rozjechane (zgłoszenie Michała 23.08). */
.fo-app.fo-acct-guest .fo-acct-head,
.fo-app.fo-acct-guest .fo-acct-content { max-width: 520px; }
.fo-app.fo-acct-guest form.login,
.fo-app.fo-acct-guest form.lost_reset_password,
.fo-app.fo-acct-guest .fo-acct-register { max-width: none; }
.fo-app.fo-acct-guest .woocommerce-notices-wrapper > div,
.fo-app.fo-acct-guest .woocommerce-error,
.fo-app.fo-acct-guest .woocommerce-message,
.fo-app.fo-acct-guest .woocommerce-info { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Autouzupełnianie Chrome maluje pole na niebiesko — trzymamy tło i kolor z naszej palety. */
.fo-app.fo-acct input:-webkit-autofill,
.fo-app.fo-acct input:-webkit-autofill:hover,
.fo-app.fo-acct input:-webkit-autofill:focus,
.fo-app.fo-co input:-webkit-autofill,
.fo-app.fo-co input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--fo-ink);
	-webkit-box-shadow: 0 0 0 40px #fff inset;
	box-shadow: 0 0 0 40px #fff inset;
	caret-color: var(--fo-ink);
}
