:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --ink: #000;
  --muted: #6b7076;
  --line: #e6e7ea;
  --brand: #5aaaff;
  --brand-ink: #0d47a1;
  --ok: #14a44d;
  --err: #d93025;
  --focus: #2a7fff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
}
#returnDate:disabled,
#returnTime:disabled {
  color: var(--muted);
}
#openMultiModalBtn {
  width: 100%;
  min-height: 5rem;
}
.step:nth-of-type(3):after {
  margin-right: 1rem;
  content: "*";
  top: 0;
  color: var(--muted);
  position: absolute;
  display: inline-block;
  left: 2rem;
  font-size: 2rem;
}
.luggage_more_information {
  font-size: 1rem;
  line-height: normal;
  display: block;
  color: var(--muted);
}
/* Styl dla komunikatu błędu */
.error-message {
  color: #d32f2f;
  /* Czerwony kolor tekstu */
  font-size: 0.875rem;
  margin-top: 5px;
  line-height: 1.2;
  /* --- ZMIANY --- */
  /* Rezerwujemy stałą wysokość, aby uniknąć przeskoku layoutu */
  height: 1.2em;
  /* Domyślnie komunikat jest przezroczysty i niewidoczny */
  opacity: 0;
  visibility: hidden;
  /* Dodajemy płynne przejście */
  transition: opacity 0.2s ease-in-out;
}
/* Klasa dodawana, gdy błąd ma być widoczny */
.error-message.visible {
  opacity: 1;
  visibility: visible;
}
/* Styl dla inputa z błędem (bez zmian) */
input.has-error {
  border-color: #d32f2f !important;
}
@media (min-width: 991px) {
  .card {
    padding: 2rem 3rem !important;
  }
}
.card {
  padding: 2rem 1rem;
}
@media (min-width: 768px) and (max-width: 1200px) {
  body:has(#multiBtn[aria-pressed="true"]) .main-benefits {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  body:has(#multiBtn[aria-pressed="true"]) #brxe-589de4 {
    max-width: 100% !important;
  }
  body:has(#multiBtn[aria-pressed="true"]) .benefits-main-wrapper {
    grid-template-columns: 1fr;
  }
}
.multi-trip-benefits {
  align-items: stretch;
}
@media (min-width: 768px) {
  body:has(#multiBtn[aria-pressed="true"]) .multi-trip-benefits {
    display: grid !important;
  }
}
@media (min-width: 768px) and (max-width: 1200px) {
  body:has(#multiBtn[aria-pressed="true"]) .multi-trip-benefits {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}
.iti {
  width: 100%;
}
.iti--separate-dial-code .iti__selected-dial-code {
  line-height: normal;
  font-size: 1.4rem;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: #fff;
}
/* Trip type switch */
.segment {
  display: flex;
  gap: 8px;
  background: #e8e8e8;
  border-radius: 999px;
  padding: 6px;
  margin: 3rem 0 3rem;
}
.segment button {
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s ease;
  width: 50%;
  text-align: center;
  font-size: 1.4rem;
}
.segment button[aria-pressed="true"],
.segment button:hover {
  background: var(--card);
  color: var(--ink);
}
/* Form layout */
form {
  display: block;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.col-span-2 {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 6px;
}
.req::after {
  content: " *";
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  border: none;
  line-height: 3rem;
  padding: 0;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-bottom: 1px solid;
}
input::placeholder,
textarea::placeholder {
  font-size: 14px;
  color: var(--muted);
}
textarea {
  border: 1px solid var(--ink);
  padding: 2rem;
}
input:focus,
textarea:focus,
select:focus {
  border-bottom: 1px solid var(----button);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
/* Return group visibility */
.hidden {
  display: none !important;
}
/* Płynne pojawianie się grup pól po przełączeniu zakładek */
.return-group:not(.hidden),
.standard-field:not(.hidden),
#multiTripGroup:not(.hidden) {
  animation: fieldFadeIn 0.3s ease;
}
@keyframes fieldFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Steppers */
.steppers {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.step {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
}
.step input {
  border: none;
  width: 4rem;
  padding: 0;
  text-align: center;
}
@media (max-width: 478px) {
  .step {
    width: 46%;
  }
}
.step:nth-of-type(1) {
  position: relative;
}
.step:nth-of-type(1):before {
  content: url("/wp-content/uploads/2025/09/step1.svg");
  margin-right: 1rem;
  top: 0.5rem;
  position: relative;
}
.step:nth-of-type(2) {
  position: relative;
}
.step:nth-of-type(2):before {
  content: url("/wp-content/uploads/2025/09/step2.svg");
  margin-right: 1rem;
  top: 0.5rem;
  position: relative;
}
.step:nth-of-type(3) {
  position: relative;
}
.step:nth-of-type(3):before {
  content: url("/wp-content/uploads/2025/09/step3.svg");
  margin-right: 1rem;
  top: 0.5rem;
  position: relative;
  min-width: 2.5rem;
  display: inline-block;
}
.step .label {
  font-size: 14px;
  color: var(--muted);
  min-width: 92px;
}
.step button {
  inline-size: 24px;
  block-size: 24px;
  border: 1px solid var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border-radius: 100%;
  color: var(--ink);
}
.step output {
  min-inline-size: 28px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Details disclosure */
details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}
.jss10 {
  text-decoration: underline;
}
/* Consents */
.consents {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.consents label {
  margin: 0;
  font-size: 1.2rem;
  color: #717171;
  font-weight: 600;
}
.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.row input[type="checkbox"] {
  inline-size: 18px;
  block-size: 18px;
  margin-top: 2px;
}
/* Submit */
.actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
button[type="submit"] {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: #0000001f;
  color: #00000042;
  font-weight: 600;
  cursor: not-allowed;
  transition: 0.2s ease;
}
button[type="submit"].primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  cursor: pointer;
}
button[type="submit"].primary:hover {
  background: var(--ink);
}
/* Messages */
.msg {
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  display: none;
}
.msg.ok {
  display: block;
  background: #e6f5ec;
  color: #0e6e38;
  border: 1px solid #bce3cd;
}
.msg.err {
  display: block;
  background: #fdecea;
  color: #a1201c;
  border: 1px solid #f5c6c4;
}
.step button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #0000008a;
  border: 1px solid rgba(0, 0, 0, 0.54);
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .steppers {
    flex-wrap: wrap;
    gap: 18px;
  }
  .step .label {
    min-width: auto;
  }
  .actions {
    justify-content: stretch;
  }
  button[type="submit"] {
    width: 100%;
  }
}
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
/* Fix z-index dla Google Places Autocomplete nad modalem */
.pac-container {
  z-index: 10000 !important;
}
/* --- MULTI-TRIP MODAL CSS --- */
.pac-container {
  z-index: 10000 !important;
}
.multi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.multi-modal {
  background: #fff;
  width: 100%;
  border: 1px solid #000;
  max-width: 1200px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.multi-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 3.2rem;
  padding-top: 3rem;
  padding-right: 1rem;
}
.multi-modal-header h3 {
  font-size: 2.6rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.multi-modal-header .close-btn {
  background: none;
  cursor: pointer;
  position: relative;
  bottom: 3rem;
  font-size: 3rem;
}
.multi-modal-body {
  padding: 2rem 0;
  overflow-y: auto;
  overflow-x: auto;
  /* Pozwala na przewijanie tabeli w poziomie na mniejszych ekranach */
  flex: 1;
}
/* Wymuszamy minimum 900px szerokości dla rzędów, aby zapobiec załamywaniu się grida */
.multi-header-row {
  display: grid;
  grid-template-columns: 75px minmax(130px, 2fr) 30px minmax(130px, 2fr) 130px 85px 55px 55px 55px 70px;
  gap: 15px;
  font-size: 1.2rem;
  color: #6b7076;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 3.2rem;
  border-bottom: 1px solid #000;
  padding-bottom: 0.6rem;
}
.multi-header-row .span-cols {
  grid-column: 2 / 5;
}
.multi-trip-card {
  padding: 2.15rem 3.2rem;
  padding-bottom: 0.95rem;
  background: #fff;
  transition: opacity 0.2s ease;
}
.multi-trip-card:nth-child(even) {
  background: #f9f9f9;
}
.multi-trip-card.dragging {
  opacity: 0.4;
  background: #f9f9f9;
}
.multi-trip-card.drag-over {
  border-top: 3px dashed #5aaaff;
}
.trip-row-grid {
  display: grid;
  grid-template-columns: 75px minmax(130px, 2fr) 30px minmax(130px, 2fr) 130px 85px 55px 55px 55px 70px;
  gap: 15px;
  align-items: flex-start;
}
.trip-number {
  cursor: pointer;
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.trip-num {
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 4.1rem;
}
.trip-num .drag-handle {
  cursor: grab;
  font-size: 3rem;
  line-height: 1;
  padding-bottom: 2px;
}
.trip-num .drag-handle:hover {
  color: var(--brand);
}
.trip-num .arrow {
  font-size: 1rem;
  margin-left: 2px;
}
.trip-input-group {
  position: relative;
}
.trip-input-group input {
  font-size: 1.4rem;
  border: none;
  font-weight: 400;
  border-bottom: 1px solid #000;
  width: 100%;
  background: transparent;
  outline: none;
  min-height: 3.6rem;
}
.trip-input-group input::placeholder {
  color: #6b7076;
}
.trip-input-group .error-message {
  font-size: 1.1rem;
  min-height: 1.39rem;
}
.trip-stat-input {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
}
.trip-stat-input:has(input[data-field="bags"]) .stat-icon {
  position: relative;
}
.trip-stat-input:has(input[data-field="bags"]) .stat-icon::after {
  content: "*";
  position: absolute;
  top: -1rem;
  right: -1rem;
  color: var(--muted);
  font-size: 2rem;
}
@media (min-width: 991px) {
  .trip-stat-input {
    padding-bottom: 2px;
    min-height: 3.6rem;
  }
}
.trip-stat-input .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trip-stat-input .stat-icon svg {
  height: 1.6rem;
  width: auto;
  display: block;
}
.trip-stat-input .stat-icon svg path {
  fill: currentColor;
}
.trip-stat-input input {
  border: none;
  width: 100%;
  font-size: 1.4rem;
  padding: 0;
  text-align: center;
  background: transparent;
  outline: none;
  height: 3rem;
}
.trip-add-stopover {
  display: flex;
  justify-content: center;
  height: 4.1rem;
  align-items: center;
}
.icon-btn {
  background: transparent;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}
.icon-btn:hover svg {
  color: var(--brand);
}
.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.icon-btn svg {
  display: block;
}
.icon-btn svg path,
.icon-btn svg rect {
  stroke: currentColor;
}
.icon-btn svg path[fill] {
  fill: currentColor;
  stroke: none;
}
.icon-btn[onclick*="deleteMultiTrip"],
.icon-btn[onclick*="removeStopover"],
.icon-btn.close-details {
  border: none;
  background: transparent;
  width: 29px;
  height: 29px;
  color: black;
}
.icon-btn[onclick*="deleteMultiTrip"] svg,
.icon-btn[onclick*="removeStopover"] svg,
.icon-btn.close-details svg {
  width: 100%;
  height: 100%;
}
.icon-btn[onclick*="deleteMultiTrip"]:hover:not(:disabled),
.icon-btn[onclick*="removeStopover"]:hover:not(:disabled),
.icon-btn.close-details:hover:not(:disabled) {
  background-color: transparent;
  color: #ff0000;
}
.icon-btn[onclick*="toggleTripDetails"] {
  color: black;
}
.icon-btn[onclick*="toggleTripDetails"] svg {
  width: 16px;
  height: 16px;
}
.trip-actions {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}
@media (min-width: 991px) {
  .trip-actions {
    height: 4.1rem;
  }
}
.expanded-grid {
  display: grid;
  grid-template-columns: 75px minmax(130px, 2fr) 30px minmax(130px, 2fr) 130px 85px 55px 55px 55px 70px;
  gap: 15px;
  margin-top: 1rem;
}
.stopovers-area {
  grid-column: 2 / 5;
  position: relative;
  padding-left: 2.5rem;
  /* Pionowa kropkowana linia łącząca stopovery z polem Pickup */
}
.stopovers-area::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: -0.5rem;
  bottom: 3rem;
  width: 2px;
  background-image: linear-gradient(to bottom, #000 50%, transparent 50%);
  background-size: 2px 4px;
  background-repeat: repeat-y;
}
.stopovers-area .stopover-row {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 10px;
  align-items: end;
  position: relative;
  /* Poziomy "hook" do każdego stopovera */
}
.stopovers-area .stopover-row:before {
  content: "";
  position: absolute;
  left: -1.8rem;
  bottom: 3rem;
  width: 1rem;
  height: 2px;
  background-image: linear-gradient(to right, #000 50%, transparent 50%);
  background-size: 4px 2px;
  background-repeat: repeat-x;
}
.stopovers-area .stopover-row input {
  font-size: 1.4rem;
  border: none;
  border-bottom: 1px solid #000;
  background: transparent;
  outline: none;
  min-height: 3.6rem;
}
.stopovers-area .stopover-row .error-message {
  grid-column: 1 / -1;
  padding-left: 0;
}
.details-area {
  grid-column: 5 / 10;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  /* Pionowa kropkowana linia po prawej stronie — wizualne połączenie
       z ikonkami akcji (pencil/X) znajdującymi się powyżej */
  /* Poziomy "hook" u dołu linii, prowadzący z powrotem w stronę details-area */
}
.details-area::before {
  content: "";
  position: absolute;
  right: -3.8rem;
  top: -0.5rem;
  height: 5rem;
  width: 2px;
  background-image: linear-gradient(to bottom, #000 50%, transparent 50%);
  background-size: 2px 4px;
  background-repeat: repeat-y;
}
.details-area::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  top: 4.4rem;
  width: 2.8rem;
  height: 2px;
  background-image: linear-gradient(to right, #000 50%, transparent 50%);
  background-size: 4px 2px;
  background-repeat: repeat-x;
}
.details-area label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  color: #000;
  font-weight: 600;
  font-size: 1.4rem;
}
.details-area .close-btn {
  border: none;
  cursor: pointer;
  background: none;
  color: #000;
  padding: 0;
}
.details-area textarea {
  width: 100%;
  border: 1px solid #000;
  outline: none;
  resize: vertical;
  min-height: 7rem;
  padding: 1.2rem;
  margin-top: 0;
  font-size: 1.2rem;
  font-family: inherit;
  color: #000;
  background: #fff;
}
.details-area textarea::placeholder {
  color: #6b7076;
}
#switchToEditBtn {
  border: 1px solid #000;
  font-size: 1.4rem;
  padding: 1.6rem;
  min-width: 20rem;
}
#switchToEditBtn:hover {
  border: 1px solid var(----button);
}
.multi-modal-footer {
  display: flex;
  gap: 1.4rem;
  justify-content: end;
  align-items: center;
  padding: 2.4rem 3.2rem 0 3.2rem;
}
/* Węższe okna / Mobile (Układ pionowy) */
@media (max-width: 990px) {
  .multi-modal-overlay {
    padding: 0;
  }
  .multi-modal {
    max-height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .multi-modal-header {
    padding: 0 2rem 0 2rem;
    border-bottom: 1px solid #000;
  }
  .multi-modal-header h3 {
    font-size: 2rem;
    letter-spacing: normal;
  }
  .multi-modal-header .close-btn {
    bottom: 0;
    font-size: 4rem;
    font-weight: 200;
    right: -0.8rem;
  }
  .multi-modal-body {
    padding: 0;
    /* Zostaw miejsce na fixed footer + dodatkowy bufor żeby ostatnia karta była w pełni widoczna */
    padding-bottom: calc(24rem + env(safe-area-inset-bottom, 0));
    overflow-x: hidden;
    /* scroll-padding żeby przeglądarka uwzględniała footer przy auto-scroll do focusa */
    scroll-padding-bottom: calc(24rem + env(safe-area-inset-bottom, 0));
  }
  .multi-trip-card {
    padding: 2.5rem 2rem;
    min-width: 100%;
    border-bottom: none;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 40px;
    grid-template-areas: "num num num num" "pickup pickup pickup pickup" "stopovers stopovers stopovers add" "dest dest dest dest" "date date time time" "pax hand bags edit" "details details details details";
    gap: 20px 21px;
    align-items: end;
  }
  /* Gdy stopovery są zwinięte/puste, zwijamy wiersz dedykowany na nie.
       Pickup odzyskuje pełną szerokość, a przycisk "+" pływa w jego prawym
       dolnym rogu z translacją w dół, trafiając między Pickup a Destination. */
  .multi-trip-card:has(.stopovers-area.hidden) {
    grid-template-areas: "num num num num" "pickup pickup pickup pickup" "dest dest dest dest" "date date time time" "pax hand bags edit" "details details details details";
  }
  .multi-trip-card:has(.stopovers-area.hidden) .trip-add-stopover {
    grid-area: pickup;
    justify-self: end;
    align-self: end;
    transform: translateY(50%);
    position: relative;
    z-index: 2;
  }
  /* Przebudowa siatki na układ pionowy z użyciem grid-template-areas */
  .trip-row-grid {
    display: contents;
  }
  .trip-num {
    grid-area: num;
    margin-bottom: 0;
    min-height: auto;
    /* Ukrywamy "hamburger" na mobile */
  }
  .trip-num .drag-handle {
    display: none;
  }
  .trip-num .trip-number {
    font-size: 2.4rem;
    color: #000;
  }
  .trip-num .arrow {
    display: none;
  }
  .trip-input-group {
    margin-right: 2rem;
  }
  /* Pickup */
  .trip-input-group:nth-child(2) {
    grid-area: pickup;
    position: relative;
  }
  /* Przycisk "+" (dodaj stopover) nakładany na pole Destination */
  /* Przycisk "+" (dodaj stopover) po prawej stronie obszaru stopoverów */
  .trip-add-stopover:nth-child(3) {
    grid-area: add;
    justify-self: end;
    align-self: start;
    height: auto;
    position: static;
    margin-top: 1.5rem;
  }
  .icon-btn {
    width: 20px;
    height: 20px;
  }
  /* Destination */
  .trip-input-group:nth-child(4) {
    grid-area: dest;
  }
  /* Pickup date (dodanie etykiety nad polem) */
  .trip-input-group:nth-child(5) {
    grid-area: date;
  }
  .trip-input-group:nth-child(5)::before {
    content: "Pickup date*";
    display: block;
    font-size: 1.4rem;
    color: var(--muted);
  }
  /* Pickup time (dodanie etykiety nad polem) */
  .trip-input-group:nth-child(6) {
    grid-area: time;
  }
  .trip-input-group:nth-child(6)::before {
    content: "Pickup time*";
    display: block;
    font-size: 1.4rem;
    color: var(--muted);
  }
  /* Statystyki */
  .trip-stat-input:nth-child(7) {
    grid-area: pax;
  }
  .trip-stat-input:nth-child(8) {
    grid-area: hand;
  }
  .trip-stat-input:nth-child(9) {
    grid-area: bags;
  }
  .trip-actions {
    display: contents;
  }
  /* Ołówek edycji z .trip-actions wpada pod statystyki bagażu */
  .icon-btn[onclick*="toggleTripDetails"] {
    grid-area: edit;
    justify-self: end;
    border: none;
    width: auto;
  }
  /* Ikona X z .trip-actions (pozycjonowana absolutnie w górnym prawym rogu karty) */
  .icon-btn[onclick*="deleteMultiTrip"] {
    position: absolute;
    top: 2.5rem;
    right: 1.4rem;
    width: 3rem;
    height: 3rem;
    z-index: 10;
    margin: 0;
  }
  /* Stopovery */
  .expanded-grid {
    display: contents;
  }
  .stopovers-area {
    grid-area: stopovers;
    margin-top: 0;
  }
  .stopovers-area .stopover-row {
    display: grid;
    grid-template-columns: 1fr 30px;
    gap: 10px;
    align-items: end;
    padding-right: 0;
    position: relative;
    margin-right: 0;
  }
  .stopovers-area .stopover-row input {
    width: 100%;
    padding-left: 0;
    min-height: 3rem;
    border-bottom: 1px solid #000;
    background: transparent;
    outline: none;
    font-size: 1.4rem;
  }
  .details-area {
    grid-area: details;
    margin-top: 0;
    margin-right: 5rem;
  }
  .details-area label {
    padding-bottom: 0.4rem;
  }
  .multi-modal-footer {
    flex-direction: column;
    gap: 15px;
    padding: 2rem;
    /* Uwzględnij safe area na iOS (home indicator) */
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
    background: #fff;
    /* Fixed na dole viewportu — zawsze widoczny, niezależny od scrolla */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #e6e7ea;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }
  .multi-modal-footer button {
    width: 100%;
    min-width: 0;
  }
}
.secondary {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(----background);
  background: var(----button);
  line-height: normal;
  min-width: 25rem;
  text-align: center;
  padding: 1.65rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.secondary:hover {
  background: var(--ink);
}
.secondary:disabled {
  background: #0000001f;
  color: #00000042;
  cursor: not-allowed;
  opacity: 1;
}
.secondary:disabled:hover {
  background: #0000001f;
}
.dashed-btn {
  font-size: 1.4rem;
  font-weight: 700;
  border: 1px dashed #000;
  background: transparent;
  line-height: normal;
  min-width: 25rem;
  text-align: center;
  padding: 1.7rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.dashed-btn:hover {
  border: 1px dashed var(----button);
}
/* --- CUSTOM CONFIRM MODAL --- */
.custom-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  /* Wyżej niż autocomplete */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.custom-confirm-box {
  background: #fff;
  width: 100%;
  max-width: 500px;
  padding: 4rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #000;
}
.custom-confirm-box .confirm-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}
.custom-confirm-box h3 {
  font-size: 2.4rem;
  margin: 0 0 1.5rem;
  color: #000;
  font-weight: 700;
}
.custom-confirm-box p {
  font-size: 1.4rem;
  color: #000;
  margin-bottom: 3.5rem;
  line-height: 1.5;
  font-weight: 500;
}
.custom-confirm-actions {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.custom-confirm-actions button {
  flex: 1;
  padding: 14px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.custom-confirm-actions .outline-btn {
  border: 1px solid #000;
  background: transparent;
  color: #000;
}
.custom-confirm-actions .outline-btn:hover {
  border: 1px solid #5aaaff;
  background: #5aaaff;
}
.custom-confirm-actions .primary-btn {
  border: none;
  background: #5aaaff;
  color: #fff;
}
.custom-confirm-actions .primary-btn:hover {
  background: #000;
}
@media (max-width: 480px) {
  .custom-confirm-box {
    padding: 2.5rem 2rem;
  }
  .custom-confirm-actions {
    flex-direction: column;
  }
}
@media (min-width: 992px) and (max-width: 1200px) {
  .hero-benefits {
    flex-direction: column !important;
    row-gap: 2rem;
  }
}
.eco-wrapper {
  position: relative;
}
.eco-wrapper:before {
  position: absolute;
  content: '';
  top: -1rem;
  left: -9rem;
  width: 6.8rem;
  height: 6.8rem;
  background: url(/wp-content/uploads/2026/05/eco_icon.svg) no-repeat;
  z-index: 0;
}
/* --- MULTI-TRIP SUMMARY CARD (Stan B w głównym formularzu) --- */
.multi-trip-summary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.multi-trip-summary .summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid #E9E9E9;
  font-size: 1.6rem;
  font-weight: 700;
}
.multi-trip-summary .summary-header .summary-count {
  font-weight: 700;
}
.multi-trip-summary .summary-header .summary-divider {
  color: var(--muted);
}
.multi-trip-summary .summary-header .summary-icon {
  display: inline-flex;
  align-items: center;
  color: #000;
}
.multi-trip-summary .summary-header .summary-icon svg {
  display: block;
}
.multi-trip-summary .summary-header .summary-dates {
  font-weight: 700;
  font-size: 1.4rem;
}
.multi-trip-summary .summary-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.multi-trip-summary .summary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.multi-trip-summary .summary-btn svg {
  display: block;
}
.multi-trip-summary .summary-btn-outline {
  border: 1px solid #000;
  padding: 1.6rem 1.5rem;
  color: #000;
}
.multi-trip-summary #viewItineraryBtn {
  min-width: 20.7rem;
  justify-content: center;
  width: 100%;
}
.multi-trip-summary #viewItineraryBtn:hover {
  border: 1px solid var(--brand);
  background: var(--brand);
}
.multi-trip-summary .summary-btn-link {
  border: none;
  padding: 1rem 0;
  color: #000;
  text-decoration: none;
  /* Pseudo-element jako underline pod całym przyciskiem (ikona + tekst),
         odsunięty 4px od dołu zawartości */
  position: relative;
}
.multi-trip-summary .summary-btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  height: 1px;
  background: currentColor;
}
/* --- MULTI-TRIP READONLY VIEW (tryb View w modalu) --- */
.multi-readonly-header {
  display: grid;
  grid-template-columns: minmax(280px, 3fr) 130px 85px 55px 55px 55px;
  gap: 15px;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 3.2rem;
  border-bottom: 1px solid #000;
  padding-bottom: 1.2rem;
}
.multi-readonly-header .span-cols {
  grid-column: 1;
}
.multi-readonly-container .readonly-trip-card {
  padding: 2.25rem 3.2rem;
  background: #fff;
}
.multi-readonly-container .readonly-trip-card:nth-child(even) {
  background: #f9f9f9;
}
.multi-readonly-container .readonly-trip-row {
  display: grid;
  grid-template-columns: minmax(280px, 3fr) 130px 85px 55px 55px 55px;
  gap: 15px;
  align-items: start;
  font-size: 1.4rem;
}
.multi-readonly-container .readonly-route {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.multi-readonly-container .readonly-route .trip-num-readonly {
  font-weight: 700;
  font-size: 1.6rem;
  margin-right: 0.5rem;
}
.multi-readonly-container .readonly-route .arrow-icon {
  color: var(--muted);
  font-size: 1.6rem;
}
.multi-readonly-container .readonly-route .route-segment {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  max-width: 100%;
  min-width: 0;
}
.multi-readonly-container .readonly-route .route-segment strong {
  font-weight: 700;
  white-space: nowrap;
}
.multi-readonly-container .readonly-route .route-segment .route-rest {
  color: var(--muted);
  font-weight: 400;
  max-width: 254px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
.multi-readonly-container .readonly-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.multi-readonly-container .readonly-stat .stat-icon-readonly {
  display: inline-flex;
  align-items: center;
}
.multi-readonly-container .readonly-stat .stat-icon-readonly svg {
  height: 1.6rem;
  width: auto;
}
.multi-readonly-container .readonly-stopovers {
  grid-column: 1;
  padding-left: 6.8rem;
  position: relative;
}
.multi-readonly-container .readonly-stopovers::before {
  content: "";
  position: absolute;
  left: 5.4rem;
  top: 0;
  bottom: 0.75rem;
  width: 2px;
  background-image: linear-gradient(to bottom, #000 50%, transparent 50%);
  background-size: 2px 4px;
  background-repeat: repeat-y;
}
.multi-readonly-container .readonly-stopovers .readonly-stopover-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin-top: 1.4rem;
  position: relative;
  font-size: 1.4rem;
}
.multi-readonly-container .readonly-stopovers .readonly-stopover-row::before {
  content: "";
  position: absolute;
  left: -4rem;
  top: 50%;
  width: 3rem;
  height: 2px;
  background-image: linear-gradient(to right, #000 50%, transparent 50%);
  background-size: 4px 2px;
  background-repeat: repeat-x;
}
.multi-readonly-container .readonly-stopovers .readonly-stopover-row strong {
  font-weight: 700;
  white-space: nowrap;
}
.multi-readonly-container .readonly-stopovers .readonly-stopover-row .route-rest {
  color: var(--muted);
  font-weight: 400;
  max-width: 254px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
.multi-readonly-container .readonly-notes {
  grid-column: 2 / -1;
}
.multi-readonly-container .readonly-notes {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.2rem;
  color: var(--muted);
}
.multi-readonly-container .readonly-notes .notes-label {
  display: block;
  color: #000;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
.multi-readonly-container .readonly-notes .notes-content {
  min-height: 7rem;
  background: #fff;
  border: 1px solid #000;
  padding: 1rem;
  color: #000;
}
.readonly-mobile-header {
  display: none;
}
.readonly-stats-wrapper {
  display: contents;
}
/* Trzeci readonly-stat to bagi — dorzucamy gwiazdkę "*" jak w edit modal */
.readonly-stat:nth-of-type(3) .stat-icon-readonly {
  position: relative;
}
.readonly-stat:nth-of-type(3) .stat-icon-readonly:after {
  content: "*";
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
}
/* Mobile dla readonly */
@media (max-width: 990px) {
  #multiModalOverlay {
    margin-top: 13rem;
  }
  .multi-readonly-header {
    display: none;
  }
  .multi-header-row {
    display: none;
  }
  #editMultiTripsBtn {
    width: fit-content;
  }
  .multi-readonly-container .readonly-trip-card {
    padding: 2rem;
  }
  /* Mobile header (numer + data + czas) */
  .multi-readonly-container .readonly-mobile-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
  }
  .multi-readonly-container .mobile-trip-num {
    font-size: 1.8rem;
  }
  .multi-readonly-container .mobile-trip-divider {
    color: var(--muted);
    font-weight: 400;
  }
  /* Ukryj desktop-only elementy */
  .multi-readonly-container .date-cell,
  .multi-readonly-container .time-cell,
  .multi-readonly-container .trip-num-readonly,
  .multi-readonly-container .arrow-down,
  .multi-readonly-container .arrow-right {
    display: none;
  }
  /* Tooltip wyłączony na mobile (touch nie obsługuje :hover) */
  .multi-readonly-container [data-tooltip]:hover::before,
  .multi-readonly-container [data-tooltip]:hover::after {
    display: none;
  }
  /* Trip row jako flex column */
  .multi-readonly-container .readonly-trip-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  /* Readonly route -> display:contents, dzieci wpadają do readonly-trip-row */
  .multi-readonly-container .readonly-route {
    display: contents;
  }
  /* Pickup i destination z bulletami */
  .multi-readonly-container .pickup-segment,
  .multi-readonly-container .dest-segment {
    position: relative;
    padding-left: 2rem;
    display: block;
    /* Bullet (czarna kropka) */
  }
  .multi-readonly-container .pickup-segment::before,
  .multi-readonly-container .dest-segment::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #000;
    border-radius: 50%;
  }
  /* Pickup: order 1 + linia pionowa w dół */
  .multi-readonly-container .pickup-segment {
    order: 1;
  }
  .multi-readonly-container .pickup-segment::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 1.5rem;
    bottom: -1.5rem;
    width: 2px;
    background-image: linear-gradient(to bottom, #000 50%, transparent 50%);
    background-size: 2px 4px;
    background-repeat: repeat-y;
  }
  /* Stopovers: order 2 (między pickup a destination) */
  .multi-readonly-container .readonly-stopovers {
    order: 2;
    margin-top: 0;
    padding-left: 5rem;
  }
  .multi-readonly-container .readonly-stopovers:before {
    left: 0.4rem;
  }
  /* Destination: order 3 + linia pionowa od góry do bulleta */
  .multi-readonly-container .dest-segment {
    order: 3;
  }
  .multi-readonly-container .dest-segment::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: -2rem;
    height: 2.2rem;
    width: 2px;
    background-image: linear-gradient(to bottom, #000 50%, transparent 50%);
    background-size: 2px 4px;
    background-repeat: repeat-y;
  }
  /* Statystyki w jednym rzędzie */
  .multi-readonly-container .readonly-stats-wrapper {
    order: 4;
    display: flex;
    gap: 2rem;
    width: 100%;
    margin-top: 0.9rem;
  }
  .multi-readonly-container .readonly-stat {
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 30%;
    font-size: 1.4rem;
    font-weight: 700;
  }
  .multi-readonly-container .readonly-stat .stat-icon-readonly svg {
    height: 2rem;
  }
  /* Notes na pełnej szerokości */
  .multi-readonly-container .readonly-notes {
    order: 5;
    margin-top: 0;
    width: 100%;
  }
  /* Route-rest pełna szerokość bez ucinania (na mobile nie ma sensu truncate) */
  .multi-readonly-container .pickup-segment .route-rest,
  .multi-readonly-container .dest-segment .route-rest {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    display: inline;
  }
}
/* --- CUSTOM TOOLTIP (dla obciętych adresów w readonly view) --- */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: auto;
  top: 3rem;
  left: 50%;
  background: #000;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.8rem;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
}
[data-tooltip]:hover::before,
[data-tooltip]:focus::before {
  content: "";
  position: absolute;
  bottom: auto;
  top: 1.8rem;
  left: 55%;
  border: 6px solid transparent;
  border-top-color: #000;
  transform: rotate(180deg);
  z-index: 10000;
  pointer-events: none;
}
