/* goEgipt.pl v44 - TYLKO wyrownanie naglowkow ofert szczegolowych.
   Na komputerze: biuro i nazwa | czas i wyjazd | mala cena | przycisk.
   Poza naglowkiem ofert nie zmienia niczego. */

.trip-detail .trip-offer__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) max-content max-content;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  padding: 15px 20px;
}
.trip-detail .trip-offer__summary > .trip-offer__summary-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  order: 0;
}
.trip-detail .trip-offer__summary > .trip-offer__summary-meta {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  order: 0;
}
.trip-detail .trip-offer__summary-meta .trip-offer__summary-chip {
  max-width: 100%;
  min-width: 0;
  width: fit-content;
  white-space: normal;
  overflow-wrap: anywhere;
  column-gap: 4px;
}
.trip-detail .trip-offer__summary-meta .trip-offer__summary-chip > strong {
  white-space: nowrap;
  flex-shrink: 0;
}
.trip-detail .trip-offer__summary > .trip-offer__summary-price {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: max-content;
  max-width: 220px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ffd4a8;
  border-radius: 9px;
  background: #fff7ed;
}
.trip-detail .trip-offer__summary-price strong {
  color: #d96b00;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.trip-detail .trip-offer__summary > .trip-offer__toggle {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #527eac;
  border-radius: 9px;
  background: #fff;
  color: #285987;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.trip-detail .trip-offer__summary:hover > .trip-offer__toggle,
.trip-detail .trip-offer[open] > .trip-offer__summary > .trip-offer__toggle {
  border-color: #2c5987;
  background: #eef5fa;
  color: #234e77;
  text-decoration: none;
}

/* Srednie ekrany: cena i przycisk nadal obok siebie z prawej,
   metadane w osobnym rzedzie pod nazwa. */
@media (max-width: 1030px) {
  .trip-detail .trip-offer__summary {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    column-gap: 10px;
  }
  .trip-detail .trip-offer__summary > .trip-offer__summary-main {
    grid-column: 1;
    grid-row: 1;
  }
  .trip-detail .trip-offer__summary > .trip-offer__summary-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .trip-detail .trip-offer__summary > .trip-offer__summary-price {
    grid-column: 2;
    grid-row: 1;
  }
  .trip-detail .trip-offer__summary > .trip-offer__toggle {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Telefony: tytul, metadane, a ponizej obok siebie mala cena i przycisk. */
@media (max-width: 680px) {
  .trip-detail .trip-offer__summary {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 9px;
    row-gap: 10px;
    padding: 14px;
  }
  .trip-detail .trip-offer__summary > .trip-offer__summary-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .trip-detail .trip-offer__summary > .trip-offer__summary-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .trip-detail .trip-offer__summary > .trip-offer__summary-price {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 11px;
  }
  .trip-detail .trip-offer__summary > .trip-offer__toggle {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    width: auto;
    min-height: 42px;
    padding: 8px 10px;
  }
  .trip-detail .trip-offer__summary-price strong { font-size: 15px; }
}
@media (max-width: 360px) {
  .trip-detail .trip-offer__summary > .trip-offer__summary-price { padding: 7px 8px; }
  .trip-detail .trip-offer__summary > .trip-offer__toggle { padding: 8px; font-size: 12px; }
  .trip-detail .trip-offer__summary-price strong { font-size: 13px; }
}
