/* Panel konta użytkownika. Wspólna baza: /styles.css oraz /admin/admin.css. */
body.account {
  --font-display: Arial, sans-serif;
  --font-body: Arial, sans-serif;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  background: var(--paper);
}

.account-wrap { padding-top: 24px; }
.account h1,
.account .panel h2 {
  margin: 0 0 10px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 26px;
  color: var(--ink);
}
.account .panel h3,
.account p,
.account label,
.account button,
.account input,
.account a,
.account span { font-family: Arial, sans-serif; }
.account .muted,
.account .err,
.account .top-link,
.account .panel label { font-size: 13px; line-height: 20px; }
.account .brand { font-family: Arial, sans-serif; font-size: 20px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-actions .top-link { margin-left: 0; }

.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}
.account-heading p { margin: 0; }

.account-tabs {
  gap: 6px;
  align-items: stretch;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}
.account-tabs .tab {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 0;
}
.account-tabs .tab:hover { color: var(--ink); background: var(--hover); }
.account-tabs .tab.active {
  border-color: var(--amber);
  background: var(--amber);
  color: #fff;
}

.account .panel { padding: 24px 26px; }
.panel-spaced { margin-top: 18px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 14px;
}
.profile-grid .span-2 { grid-column: span 2; }
.password-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.account .panel input[type="email"],
.account .panel input[type="tel"] {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.account input:focus-visible,
.account button:focus-visible,
.account a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--amber) 45%, transparent);
  outline-offset: 2px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 4px;
}
.form-result { color: var(--green); }
.form-result.error { color: #A33A2A; }
.account .btn-primary {
  background: var(--amber);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
}
.account .btn-primary:hover { background: #c94702; color: #fff; }
.account .btn-secondary {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.panel-title-row h2,
.panel-title-row p { margin-bottom: 0; }
.share-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #9dc8ad;
  border-radius: 8px;
  background: #f1faf4;
}
.share-result[hidden] { display: none; }
.share-result input {
  flex: 1;
  min-width: 0;
  height: 36px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: #fff;
}

.offer-list { display: flex; flex-direction: column; gap: 14px; }
.account-offer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 230px;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.account-offer-photo {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(16, 41, 59, .15), rgba(109, 207, 246, .22)),
    linear-gradient(35deg, #a8c3d3 0%, #e7edf0 55%, #7896aa 100%);
}
.account-offer-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-offer-photo .photo-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(16, 41, 59, .86);
  color: #fff;
  font-weight: 700;
}
.account-offer-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 28px;
}
.offer-location {
  color: #57bce8;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.offer-title-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.offer-title-row h3 {
  margin: 0;
  color: #001f70;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 26px;
  text-transform: none;
  letter-spacing: 0;
}
.offer-stars { color: #e39b2d; letter-spacing: 2px; font-size: 16px; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.offer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: #001f70;
}
.offer-operator { margin-top: auto; color: var(--muted); }
.account-offer-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  padding: 20px;
  border-left: 4px solid var(--amber);
  background: #fbfaf6;
  text-align: right;
}
.offer-price-main { color: #001f70; font-size: 20px; line-height: 26px; font-weight: 700; }
.offer-price-person { color: var(--muted); }
.offer-price-old { color: var(--muted); text-decoration: line-through; }
.offer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.offer-action {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--amber);
  border-radius: 8px;
  background: var(--amber);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.offer-action.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.offer-action.danger { background: #fff; color: #a33a2a; border-color: #d8aaa3; }
.reservation-status {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fff3d5;
  color: #7a5510;
  font-weight: 700;
}
.reservation-status.confirmed,
.reservation-status.completed { background: #e9f7ee; color: #176d40; }
.reservation-status.cancelled { background: #fbeceb; color: #9b3026; }
.reservation-status.in_progress { background: #e9f2ff; color: #174f91; }
.reservation-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 20px;
}
.reservation-details dt { color: var(--muted); }
.reservation-details dd { margin: 0; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.reservation-countdown { margin: 0; color: var(--muted); font-size: 13px; }
.empty-state,
.empty-panel {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.empty-state { min-height: 140px; border: 1px dashed var(--line); border-radius: 9px; }
.wishtrip-heading { margin-bottom: 18px; }
.wishtrip-heading p { margin: 0; }
.wishtrip-list { padding-bottom: 40px; }

@media (max-width: 980px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-offer { grid-template-columns: 180px minmax(0, 1fr); }
  .account-offer-price { grid-column: 1 / -1; border-left: 0; border-top: 4px solid var(--amber); align-items: flex-start; text-align: left; }
  .offer-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .account-wrap { padding-left: 12px; padding-right: 12px; }
  .account .panel { padding: 18px 16px; }
  .account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; }
  .account-tabs .tab { border: 1px solid var(--line); border-radius: 8px; }
  .profile-grid,
  .password-grid { grid-template-columns: 1fr; }
  .profile-grid .span-2 { grid-column: span 1; }
  .panel-title-row { align-items: stretch; flex-direction: column; }
  .panel-title-row .btn-secondary { align-self: flex-start; }
  .share-result { align-items: stretch; flex-direction: column; }
  .account-offer { grid-template-columns: 1fr; }
  .account-offer-photo { min-height: 190px; }
  .account-offer-body { padding: 18px 16px; }
  .account-offer-price { grid-column: auto; }
}

/* ---- etap285: rejestracja w panelu, dodawanie rezerwacji, komunikat z linku ---- */
.account-switch { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.account-switch-link { color: var(--navy); text-decoration: underline; padding: 0; font-size: 13px; }
.account .panel label.account-consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.account-consent input { margin-top: 3px; }
.account-notice {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; line-height: 20px;
  background: #E8F5EE; border: 1px solid #B5DCC5; color: #1E5C3A;
}
.account-notice.error { background: #FCEBE8; border-color: #E7B3A8; color: #A33A2A; }

/* =====================================================================
 * etap312: nowy panel klienta — makieta C „Pulpit”
 * (menu z boku, liczby na górze, lista + karta obok). Wszystko pod .acc,
 * żeby nie mieszać się ze starszymi regułami tego pliku ani z admin.css.
 * ===================================================================== */
.acc {
  --acc-navy: #10293B; --acc-ink: #182631; --acc-muted: #66747F; --acc-bg: #F4F6F8; --acc-line: #E1E6EA;
  --acc-or: #E25303; --acc-green: #1E7F4F; --acc-amber: #B86E00; --acc-blue: #1F6FEB; --acc-red: #C9472B;
  /* etap316: część strony, nie „okno” — bez ramki, zaokrągleń i szarego tła całości */
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  background: transparent; color: var(--acc-ink);
  font-size: var(--acc-base, 18px); line-height: 1.45; min-height: 640px;
  /* etap314: czcionka ze strony WordPress (widget ustawia --acc-font / --acc-head-font) */
  font-family: var(--wp--preset--font-family--raleway, Raleway); font-weight: 400; font-style: normal;
}
.acc button, .acc input, .acc select, .acc textarea, .acc b, .acc label, .acc small, .acc a, .acc span, .acc p, .acc div, .acc td, .acc th, .acc dt, .acc dd, .acc summary { font-family: inherit; }
.acc h1, .acc h3, .acc-logo { font-family: var(--wp--preset--font-family--domine, Domine); font-weight: 700; }
/* rozmiary nagłówków jak w WordPress (Personalizowanie › Typografia): H3 26px, H5 20px */
.acc .acc-hd h1 { font-size: 26px; line-height: 1.3; }
.acc .acc-card h3 { font-size: 20px; line-height: 1.3; }
.acc .acc-logo { font-size: 26px; }
.acc *, .acc *::before, .acc *::after { box-sizing: border-box; }
.acc h1, .acc h3, .acc p, .acc dl, .acc dd { margin: 0; }

/* --- menu z boku --- */
.acc-side { background: #013D70; color: #C9D4DC; padding: 20px 14px; }
.acc.re .acc-side { background: #0E2E3F; }
.acc-side { display: flex; flex-direction: column; }
.acc-logo { color: #fff; font-weight: 800; font-size: calc(var(--acc-base, 18px) * 20 / 13); padding: 0 8px 16px; }
.acc-sw { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.acc-sw button { all: unset; text-align: center; padding: 7px 4px; border-radius: 8px; font-weight: 600; font-size: calc(var(--acc-base, 18px) - 2px); cursor: pointer; color: #C9D4DC; font-family: inherit; }
.acc-sw button.on { background: #fff; color: var(--acc-navy); }
.acc-sw em { font-style: normal; color: #ff8a6f; }
.acc-logout { all: unset; cursor: pointer; margin-top: auto; padding: 18px 10px 0; font-size: calc(var(--acc-base, 18px) - 2px); color: #9FB0BC; font-family: inherit; }
.acc-logout:hover { color: #fff; text-decoration: underline; }
.acc-soon { display: inline-block; font-size: calc(var(--acc-base, 18px) - 5px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #E6EFFD; color: var(--acc-blue); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.acc-btn.or .acc-soon { background: rgba(255,255,255,.25); color: #fff; }
.acc-soon.big { font-size: calc(var(--acc-base, 18px) - 2px); padding: 3px 8px; margin: 4px 0 2px; }
.acc-soon-card { font-weight: 700; color: var(--acc-navy); font-size: calc(var(--acc-base, 18px) * 14 / 13); }
.acc-soon-card p { font-weight: 400; font-size: var(--acc-base, 18px); margin-top: 6px; }
.acc-hd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc .tone-muted { color: var(--acc-muted); }
.acc-lnk.off { color: #9AA6AF; cursor: default; }
.acc-lnk.off:hover { text-decoration: none; }
.acc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--acc-bg); }
.acc-toggle:first-of-type { border-top: 0; }
.acc-sw2 { flex: 0 0 auto; width: 36px; height: 20px; border-radius: 20px; background: var(--acc-green); position: relative; opacity: .55; }
.acc-sw2::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.acc-sw2.off { background: #C8D0D6; }
.acc-sw2.off::after { right: auto; left: 2px; }
.acc-dl a { color: var(--acc-blue); font-weight: 600; cursor: pointer; text-decoration: none; }
a.acc-btn { display: inline-block; text-decoration: none; }
.acc .acc-nav { display: flex; flex-direction: column; gap: 2px; border: 0; margin: 0; flex-wrap: nowrap; }
.acc .acc-nav .tab {
  all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; padding: 9px 10px; border-radius: 8px; font-weight: 500; font-size: var(--acc-base, 18px); color: #C9D4DC; cursor: pointer;
}
.acc .acc-nav .tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.acc .acc-nav .tab.active { background: rgba(255,255,255,.14); color: #fff; }
.acc .acc-nav .tab:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.acc .acc-nav .tab i { font-style: normal; font-size: calc(var(--acc-base, 18px) - 3px); background: rgba(255,255,255,.12); border-radius: 999px; padding: 0 7px; }
.acc .acc-nav h6 { font-size: calc(var(--acc-base, 18px) - 5px); letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin: 16px 10px 6px; color: #C9D4DC; font-weight: 700; }

/* --- treść --- */
.acc-main { padding: 0 0 0 26px; min-width: 0; }
.acc .tabpane { display: none; }
.acc .tabpane.active { display: block; }
.acc-hd { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.acc .acc-hd h1 { font-size: calc(var(--acc-base, 18px) * 20 / 13); line-height: 1.3; color: var(--acc-navy); }
.acc-m { color: var(--acc-muted); }
.acc-m.small, .acc .small { font-size: calc(var(--acc-base, 18px) - 2px); }
.acc-stars { color: #E8A317; letter-spacing: 1px; font-size: .85em; white-space: nowrap; }
.acc-lnk { color: var(--acc-blue); font-weight: 600; font-size: calc(var(--acc-base, 18px) - 2px); cursor: pointer; background: none; border: 0; padding: 0; text-decoration: none; font-family: inherit; }
.acc-lnk:hover { text-decoration: underline; }
.acc-lnk.danger { color: var(--acc-red); }
.acc-empty { color: var(--acc-muted); text-align: center; padding: 26px 14px; background: #fff; border: 1px dashed var(--acc-line); border-radius: 12px; margin-bottom: 10px; }
.acc-loading { color: var(--acc-muted); padding: 18px 4px; }

.acc-btn { border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 700; font-size: calc(var(--acc-base, 18px) - 2px); cursor: pointer; white-space: nowrap; font-family: inherit; line-height: 1.3; }
.acc-btn.or { background: var(--acc-or); color: #fff; }
.acc-btn.or:hover { filter: brightness(.95); }
.acc-btn.gh { background: #fff; border: 1px solid var(--acc-line); color: var(--acc-navy); }
.acc-btn.gh:hover { border-color: #B9C4CC; }
.acc-btn.wide { width: 100%; }
.acc-btn:disabled { opacity: .55; cursor: default; }

/* --- liczby na górze --- */
.acc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.acc-k { background: #fff; border: 1px solid var(--acc-line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.acc-k small { color: var(--acc-muted); display: block; font-size: calc(var(--acc-base, 18px) - 2px); }
.acc-k b { font-size: calc(var(--acc-base, 18px) * 22 / 13); line-height: 1.25; color: var(--acc-navy); display: block; }
.acc-k .acc-s { font-size: calc(var(--acc-base, 18px) - 2px); color: var(--acc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-k.warn { border-color: #F3C88F; background: #FFF8EE; }
.acc-k.warn b { color: var(--acc-amber); }
.acc-k.good { border-color: #BFE2CE; background: #F1FAF5; }
.acc-k.good b { color: var(--acc-green); }

/* --- lista + karta obok --- */
.acc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-it {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
  background: #fff; border: 1px solid var(--acc-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; font-size: var(--acc-base, 18px); color: var(--acc-ink);
}
.acc-it:hover { border-color: #B9C4CC; }
.acc-it.on { border: 2px solid var(--acc-blue); padding: 11px; }
.acc-it:focus-visible { outline: 2px solid var(--acc-blue); outline-offset: 2px; }
.acc-it-t { color: var(--acc-navy); display: block; }
.acc-it-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.acc-yr { font-weight: 700; color: var(--acc-muted); font-size: calc(var(--acc-base, 18px) - 2px); }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.acc-st, .acc-tag { display: inline-block; font-size: calc(var(--acc-base, 18px) - 3px); font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.acc-st.ok, .acc-tag.ok { background: #E3F3EA; color: var(--acc-green); }
.acc-st.op, .acc-tag.op { background: #FFF1DE; color: var(--acc-amber); }
.acc-st.xx { background: #ECEFF1; color: #6A7782; }
.acc-st.bl { background: #E6EFFD; color: var(--acc-blue); }
.acc-cardhost { min-width: 0; }

.acc-card { background: #fff; border: 1px solid var(--acc-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; min-width: 0; }
.acc-card.narrow { max-width: 560px; }
.acc .acc-card h3 { font-size: calc(var(--acc-base, 18px) * 14 / 13); color: var(--acc-navy); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acc .acc-card h3 .acc-m { font-weight: 400; font-size: calc(var(--acc-base, 18px) - 2px); }
.acc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acc-two > .acc-card { margin-bottom: 14px; }

.acc-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.acc-facts > div { border-left: 1px solid var(--acc-line); padding-left: 10px; min-width: 0; }
.acc-facts > div:first-child { border: 0; padding: 0; }
.acc-facts small { color: var(--acc-muted); display: block; font-size: calc(var(--acc-base, 18px) - 2px); }
.acc-facts b { font-size: calc(var(--acc-base, 18px) - 1px); color: var(--acc-navy); }
.acc .tone-ok { color: var(--acc-green); }
.acc .tone-op { color: var(--acc-amber); }
.acc .tone-xx { color: #6A7782; }
.acc .tone-bl { color: var(--acc-blue); }

.acc-note { background: #F1F6FD; border: 1px solid #D3E3F8; border-radius: 10px; padding: 10px 12px; font-size: calc(var(--acc-base, 18px) - 2px); color: #33506E; margin-bottom: 14px; }
.acc-note.warn { background: #FFF8EE; border-color: #F3C88F; color: #7A4B00; }

/* linia czasu */
.acc-tline { display: grid; position: relative; margin-top: 4px; }
.acc-tline::before { content: ""; position: absolute; left: 7%; right: 7%; top: 11px; height: 3px; background: var(--acc-line); }
.acc-tline .fill { position: absolute; left: 7%; top: 11px; height: 3px; background: var(--acc-green); }
.acc-tline > div { text-align: center; position: relative; font-size: calc(var(--acc-base, 18px) - 2px); padding: 0 4px; min-width: 0; }
.acc-tline i { display: block; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 6px; background: #fff; border: 3px solid var(--acc-line); position: relative; z-index: 1; }
.acc-tline .d i { background: var(--acc-green); border-color: var(--acc-green); }
.acc-tline .n i { border-color: var(--acc-or); box-shadow: 0 0 0 4px #FBE0CF; }
.acc-tline b { display: block; color: var(--acc-navy); font-size: calc(var(--acc-base, 18px) - 2px); }
.acc-tline small { color: var(--acc-muted); font-size: calc(var(--acc-base, 18px) - 3px); }
.acc-tline .n b { color: var(--acc-or); }

/* loty */
.acc-fl { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acc-fl + .acc-fl { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--acc-bg); }
.acc-fl b { font-size: calc(var(--acc-base, 18px) * 22 / 13); color: var(--acc-navy); }
.acc-fl .r { text-align: right; }
.acc-fl .line { flex: 1; border-top: 1px dashed #B9C4CC; margin: 0 12px; }

/* płatność, dokumenty, tabele */
.acc-paybig { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 8px; }
.acc-paybig b { font-size: calc(var(--acc-base, 18px) * 20 / 13); color: var(--acc-navy); }
.acc-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.acc-table td, .acc-table th { padding: 8px 6px; border-top: 1px solid var(--acc-bg); text-align: left; vertical-align: top; font-size: var(--acc-base, 18px); }
.acc-table th { color: var(--acc-muted); font-weight: 500; font-size: calc(var(--acc-base, 18px) - 2px); border: 0; }
.acc-table .r { text-align: right; white-space: nowrap; }
.acc-dl { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--acc-bg); }
.acc-dl:first-of-type { border: 0; }
.acc-notice { font-size: calc(var(--acc-base, 18px) - 2px); color: var(--acc-ink); padding: 8px 0; border-top: 1px solid var(--acc-bg); white-space: pre-line; }
.acc-notice:first-of-type { border: 0; padding-top: 0; }

.acc-rows { display: grid; grid-template-columns: minmax(120px, 32%) 1fr; }
.acc-rows dt, .acc-rows dd { padding: 11px 0; border-top: 1px solid var(--acc-line); }
.acc-rows dt:first-of-type, .acc-rows dd:first-of-type { border-top: 0; }
.acc-rows dt { color: var(--acc-muted); }
.acc-rows dd { font-weight: 700; color: var(--acc-navy); font-size: calc(var(--acc-base, 18px) * 14 / 13); }

/* kafelki ofert (ulubione, oglądane) */
.acc-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.acc-of { background: #fff; border: 1px solid var(--acc-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.acc-ph { height: 110px; background: linear-gradient(180deg, #BFE6F5 0, #2C8DB8 100%); }
.acc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-bd { padding: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.acc-of-t, .acc-bd > b { color: var(--acc-navy); font-size: calc(var(--acc-base, 18px) * 14 / 13); }
.acc-pr b { font-size: calc(var(--acc-base, 18px) * 17 / 13); color: var(--acc-navy); }
.acc-pr { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.acc-price { font-size: calc(var(--acc-base, 18px) * 17 / 13); color: var(--acc-navy); }
.acc-old { text-decoration: line-through; color: var(--acc-muted); font-size: calc(var(--acc-base, 18px) - 2px); margin-left: 6px; }
.acc-of-actions { display: flex; gap: 12px; }
.acc .share-result { display: flex; gap: 8px; margin-bottom: 14px; }
.acc .share-result input { flex: 1; min-width: 0; }

/* formularze */
.acc-form label { display: block; font-size: calc(var(--acc-base, 18px) - 2px); color: var(--acc-muted); margin-top: 10px; }
.acc-form input, .acc-form select {
  display: block; width: 100%; border: 1px solid var(--acc-line); border-radius: 8px; padding: 9px 10px; background: #fff;
  font-size: var(--acc-base, 18px); margin-top: 4px; color: var(--acc-ink); font-family: inherit; min-height: 38px;
}
.acc-form input:focus, .acc-form select:focus { outline: 2px solid #CFE0FB; border-color: var(--acc-blue); }
.acc-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.acc-fgrid .span-2 { grid-column: span 2; }
.acc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.acc-form .acc-note { margin: 14px 0 0; }
.acc .form-result { font-size: calc(var(--acc-base, 18px) - 2px); margin: 10px 0 0; }
.acc .form-result.error { color: var(--acc-red); }
.acc-other summary { cursor: pointer; font-weight: 700; color: var(--acc-navy); }
.acc-other[open] summary { margin-bottom: 8px; }

/* --- tablet i telefon --- */
@media (max-width: 1100px) {
  .acc-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .acc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .acc-facts > div:nth-child(4) { border: 0; padding: 0; }
}
@media (max-width: 900px) {
  .acc { grid-template-columns: minmax(0, 1fr); }
  .acc-side { border-radius: 12px; }
  .acc-side { min-width: 0; }
  .acc-side { padding: 14px 12px 10px; }
  .acc-user { padding-bottom: 10px; }
  .acc .acc-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .acc .acc-nav h6 { display: none; }
  .acc .acc-nav .tab { width: auto; white-space: nowrap; flex: 0 0 auto; background: rgba(255,255,255,.06); }
  .acc-main { padding: 18px 0 0; }
  .acc-kpis, .acc-kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-logout { margin-top: 8px; padding-top: 6px; }
  .acc-table { display: block; overflow-x: auto; }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 560px) {
  .acc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-facts > div { border: 0; padding: 0; }
  .acc-tline { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .acc-tline::before, .acc-tline .fill { display: none; }
  .acc-tline > div { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; text-align: left; }
  .acc-tline i { margin: 0; }
  .acc-fgrid { grid-template-columns: 1fr; }
  .acc-fgrid .span-2 { grid-column: auto; }
  .acc-k b { font-size: calc(var(--acc-base, 18px) * 19 / 13); }
}

/* etap316: przy tekście 18px (jak w WordPress) karta potrzebuje miejsca — słowa nie łamią się w środku,
 * a pary kart (loty, płatność/dokumenty, uczestnicy/usługi) układają się jedna pod drugą, gdy karta jest wąska. */
.acc-cardhost { container-type: inline-size; }
.acc-tline b { font-size: 14px; }
.acc-tline small { font-size: 13px; }
.acc-tline b, .acc-tline small, .acc-facts b, .acc-it-t { overflow-wrap: normal; word-break: normal; hyphens: none; }
.acc-tag { white-space: nowrap; }
.acc-st { white-space: normal; max-width: 100%; }
.acc-table .r, .acc-table td:last-child { white-space: nowrap; }
@container (max-width: 760px) {
  .acc-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .acc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .acc-facts > div:nth-child(4) { border: 0; padding: 0; }
}
@container (max-width: 560px) {
  .acc-tline { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .acc-tline::before, .acc-tline .fill { display: none; }
  .acc-tline > div { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; text-align: left; }
  .acc-tline i { margin: 0; }
  .acc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-facts > div { border: 0; padding: 0; }
}
/* etap316: styles.css ma własne .acc (akordeon opisu oferty: ramka, zaokrąglenie, białe tło) —
 * panel klienta ich nie dziedziczy */
#accApp.acc { border: 0; border-radius: 0; background: transparent; margin: 0; }

/* etap317: ustalenia sprzed etap312 przywrócone (docs/USTALENIA-PANEL-KLIENTA.md) */
/* „Wyloguj”: biały przycisk z granatową ramką (na prośbę, etap212) */
.acc .acc-logout { all: unset; box-sizing: border-box; cursor: pointer; margin-top: auto; align-self: flex-start;
  background: #fff; color: var(--acc-navy); border: 1px solid var(--acc-navy); border-radius: 8px; padding: 8px 16px;
  font-family: inherit; font-weight: 600; font-size: calc(var(--acc-base, 18px) - 2px); }
.acc .acc-logout:hover { background: var(--acc-bg); text-decoration: none; color: var(--acc-navy); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.acc-chip { font-size: calc(var(--acc-base, 18px) - 3px); background: #EEF3F6; color: var(--acc-navy); border-radius: 999px; padding: 2px 10px; }
.acc-countdown { margin: 6px 0 0; font-size: calc(var(--acc-base, 18px) - 3px); color: var(--acc-amber); }
.acc-pp { font-size: calc(var(--acc-base, 18px) - 3px); }
.acc-pair label { margin-top: 10px; }
@media (max-width: 900px) { .acc .acc-logout { margin-top: 10px; } }
/* ulubione: cena w jednym wierszu, przyciski pod nią */
.acc-of .acc-pr { flex-direction: column; align-items: stretch; gap: 6px; }
.acc-of .acc-pr > span:first-child b { white-space: nowrap; }
.acc-of .acc-of-actions { justify-content: space-between; border-top: 1px solid var(--acc-bg); padding-top: 8px; }

/* etap321: udostępniona lista WishTrip (bez menu z boku) */
.acc.acc-share { grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 0; background: transparent; min-height: 0; margin: 0; }
.acc.acc-share .acc-main { padding: 0; }

/* etap324 (prośba 2026-11-28): liczby na górze „Moje wyjazdy” i ramka z numerem rezerwacji o 4px mniejsze;
 * miniaturka i klikalna nazwa hotelu na karcie rezerwacji. */
#resKpis .acc-k small, #resKpis .acc-k .acc-s, #payKpis .acc-k small, #payKpis .acc-k .acc-s { font-size: calc(var(--acc-base, 18px) - 6px); }
#resKpis .acc-k b, #payKpis .acc-k b { font-size: calc(var(--acc-base, 18px) * 22 / 13 - 4px); }
#resKpis .acc-k .acc-soon.big, #payKpis .acc-k .acc-soon.big { font-size: calc(var(--acc-base, 18px) - 6px); }
@media (max-width: 560px) { #resKpis .acc-k b, #payKpis .acc-k b { font-size: calc(var(--acc-base, 18px) * 19 / 13 - 4px); } }
.acc-facts small { font-size: calc(var(--acc-base, 18px) - 6px); }
.acc-facts b { font-size: calc(var(--acc-base, 18px) - 5px); }
.acc-hdmain { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.acc-hdmain > div { min-width: 0; }
.acc-thumb { flex: 0 0 auto; display: block; width: 132px; height: 99px; border-radius: 10px; overflow: hidden; background: var(--acc-bg); }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.acc .acc-hd h1 a.acc-hotel-link { color: inherit; text-decoration: none; }
.acc .acc-hd h1 a.acc-hotel-link:hover { text-decoration: underline; }
@media (max-width: 560px) { .acc-thumb { width: 88px; height: 66px; } .acc-hdmain { gap: 10px; } }

/* etap327: czat AnyChat osadzony w zakładce „Doradca · czat”. */
.acc-chat-card { padding: 0; overflow: hidden; }
.acc-chat { display: block; width: 100%; height: clamp(440px, 70vh, 640px); border: 0; margin: 0; }
