/* Logowanie / rejestracja, Moje konto. */

.fm-login { padding-top: 56px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: start; }
.fm-login__l { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.fm-login__lead { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 48ch; }
.fm-login__ben { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.fm-login__b { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.fm-login__ok { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.fm-login__card { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.fm-seg { display: flex; background: var(--paper); border-radius: 100px; padding: 4px; }
.fm-seg__b { cursor: pointer; flex: 1; border: none; border-radius: 100px; padding: 11px; font-size: 14px; font-weight: 700; background: transparent; color: var(--ink); }
.fm-seg__b.is-on { background: var(--ink); color: #fff; }
.fm-login__form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.fm-login__hint { font-size: 13px; color: var(--muted); }
.fm-login__or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.fm-login__or span:first-child, .fm-login__or span:last-child { flex: 1; height: 1px; background: var(--line); }
.fm-login__form .woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); line-height: 1.45; }
.fm-login__form .woocommerce-privacy-policy-text a { text-decoration: underline; }

.fm-acc-head { padding-top: 56px; padding-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fm-acc-head__l { display: flex; flex-direction: column; gap: 6px; }
.fm-acc-head__mail { font-size: 14px; color: var(--muted); }
.fm-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; align-items: start; }
.fm-account__nav { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.fm-account__tab { border-radius: 12px; padding: 13px 16px; text-align: left; font-size: 14px; font-weight: 700; color: var(--ink); }
.fm-theme .fm-account__tab.is-on { background: var(--ink); color: #fff; }
.fm-account__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fm-account__pages { display: flex; gap: 8px; }

.fm-ocard { background: #fff; border-radius: 20px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.fm-ocard__l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fm-ocard__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fm-ocard__no { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.fm-ocard__date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fm-ocard__st { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 100px; }
.fm-ocard__items { font-size: 15px; font-weight: 700; }
.fm-ocard__imgs { display: flex; gap: 8px; }
.fm-ocard__imgs img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.fm-ocard__r { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fm-ocard__total { font-size: 18px; font-weight: 700; }
.fm-ocard__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.fm-addrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.fm-addr { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; color: var(--ink); }
.fm-addr.is-def { border-color: var(--ink); }
.fm-theme .fm-addr:hover { color: var(--ink); border-color: var(--ink); }
.fm-addr__k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.fm-addr__k.is-sage { color: var(--sage-ink); }
.fm-addr__v { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fm-addr__e { font-size: 13px; font-weight: 700; text-decoration: underline; margin-top: 4px; }
.fm-addr--add { background: transparent; border: 1px dashed #b9b8b1; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--muted); min-height: 120px; }

.fm-acard { background: #fff; border-radius: 20px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; line-height: 1.5; }
.fm-acard--col, .fm-acard--form { flex-direction: column; align-items: flex-start; }
.fm-acard--form { align-items: stretch; gap: 14px; margin: 0; }
.fm-acard__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-pass summary { cursor: pointer; font-size: 14px; font-weight: 700; margin-bottom: 12px; }

/* Formularz adresu (Woo) */
.fm-account__main .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.fm-account__main .form-row { margin: 0; display: flex; flex-direction: column; gap: 6px; float: none; width: auto; }
.fm-account__main .form-row-wide { grid-column: 1 / -1; }
.fm-account__main .form-row label { font-size: 13px; font-weight: 700; }
.fm-theme .fm-account__main .input-text, .fm-theme .fm-account__main select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; background: #fff; box-shadow: none; height: auto; }
.fm-account__main form > h3, .fm-account__main > h2 { font-size: 20px; margin-bottom: 12px; }
.fm-theme .fm-account__main button[name="save_address"] { margin-top: 14px; cursor: pointer; border: none; background: var(--ink); color: #fff; border-radius: 100px; padding: 13px 20px; font-size: 14px; font-weight: 700; }
.fm-account__main .woocommerce-order-details, .fm-account__main .woocommerce-customer-details { background: #fff; border-radius: 20px; padding: 22px; }
.fm-account__main table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fm-account__main th, .fm-account__main td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
