/* Approved customer hierarchy: a photo-led favorite, a wide trip hero and an
   attached package price. All rules stay inside the reusable package card. */
.customer-package-card {
  --package-blue: #2156b8;
  --package-orange: #e87932;
  --package-ink: #172b4d;
  --package-muted: #526176;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 18px #172b4d06;
  color: var(--package-ink);
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  isolation: isolate;
}
.customer-package-card *, .customer-package-card *::before, .customer-package-card *::after { box-sizing: border-box; }
.customer-package-card svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.customer-package-card button { font: inherit; cursor: pointer; }
.customer-package-card button:disabled { cursor: not-allowed; opacity: .55; }
.customer-package-card button:focus-visible, .customer-package-card summary:focus-visible { outline: 3px solid #547cc0; outline-offset: 3px; }
.customer-package-card :is(button, summary) { scroll-margin-bottom: 120px; }
.customer-package-card .customer-package-media {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  background: #334a66;
  color: #fff;
  isolation: isolate;
}
.customer-package-card .customer-package-media::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #10213900 22%, #10213912 38%, #102139a6 66%, #102139f2 100%);
  content: '';
  pointer-events: none;
}
.customer-package-card .customer-package-photo { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.customer-package-card .customer-package-photo-placeholder { position: absolute; z-index: -2; inset: 0; display: flex; align-items: center; flex-direction: column; gap: 9px; padding: 55px 12px 0; background: #334a66; color: #fff; font-size: 12px; text-align: center; }
.customer-package-card .customer-package-photo-placeholder > svg { width: 28px; height: 28px; }
.customer-package-card .customer-package-identity { padding: 46px 14px 15px; min-width: 0; }
.customer-package-card .customer-package-identity h2 { padding: 0; margin: 5px 0 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.22; letter-spacing: -.25px; overflow-wrap: anywhere; }
.customer-package-card .customer-package-identity p { display: flex; align-items: flex-start; gap: 4px; margin: 6px 0 0; color: #fff; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.customer-package-card .customer-package-identity p > svg { width: 14px; height: 14px; margin-top: 1px; }
.customer-package-card .customer-package-hotel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.customer-package-card .customer-package-stars { color: #ffc866; font-size: 16px; line-height: 1; letter-spacing: 1px; }
.customer-package-card .customer-package-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; padding: 5px 7px; border-radius: 7px; background: var(--package-blue); color: #fff; }
.customer-package-card .customer-package-rating > strong { color: #fff; font-size: 12px; line-height: 1.2; }
.customer-package-card .customer-package-rating > small { color: #fff; font-size: 9px; line-height: 1.2; }
.customer-package-card .customer-package-remove { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px #172b4d16; color: #b94710; }
.customer-package-card .customer-package-remove > svg { width: 22px; height: 22px; fill: #e87932; }
.customer-package-card .customer-package-facts { grid-column: 2; grid-row: 1; display: grid; align-content: start; gap: 8px; min-width: 0; margin: 0; padding: 13px 12px 10px; }
.customer-package-card .customer-package-fact { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.customer-package-card .customer-package-fact > svg { width: 18px; height: 18px; margin-top: 1px; color: #607087; }
.customer-package-card .customer-package-fact > div { min-width: 0; }
.customer-package-card .customer-package-fact dt { margin: 0 0 2px; color: var(--package-muted); font-size: 11px; line-height: 1.3; }
.customer-package-card .customer-package-fact dd { margin: 0; color: var(--package-ink); font-size: 13px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.customer-package-card .customer-package-fact dd > small { display: block; margin-top: 4px; color: var(--package-muted); font-size: 11px; line-height: 1.4; font-weight: 400; }
.customer-package-card .customer-package-date dd { font-weight: 650; }
.customer-package-card .customer-package-room dd { font-size: 14px; font-weight: 600; }
.customer-package-card[data-mode="favorite"] .customer-package-fact dt { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.customer-package-card .customer-package-flights { grid-column: 1 / -1; grid-row: 3; min-width: 0; margin: 0; border: 0; border-top: 1px solid #e7edf5; border-radius: 0; background: #f4f7fc; }
.customer-package-card .customer-package-flights > summary, .customer-package-card .customer-package-flight-pending { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; color: var(--package-blue); font-size: 12px; line-height: 1.4; list-style: none; }
.customer-package-card .customer-package-flights > summary { cursor: pointer; }
.customer-package-card .customer-package-flights > summary::-webkit-details-marker { display: none; }
.customer-package-card .customer-package-flights > summary::marker { content: ''; }
.customer-package-card .customer-package-flights > summary > span, .customer-package-card .customer-package-flight-pending > span { flex: 1; min-width: 0; }
.customer-package-card .customer-package-flights > summary > span { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; }
.customer-package-card .customer-package-flights > summary strong, .customer-package-card .customer-package-flight-pending strong { display: block; font-size: 13px; font-weight: 600; }
.customer-package-card .customer-package-flights > summary small { display: block; flex: 1 0 100%; margin-top: 0; color: var(--package-muted); font-size: 11px; }
.customer-package-card .customer-package-flights > summary > svg:last-child { width: 18px; height: 18px; transition: transform .2s ease; }
.customer-package-card .customer-package-flights[open] > summary > svg:last-child { transform: rotate(180deg); }
.customer-package-card .customer-package-airlines { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 0; color: var(--package-ink); font-size: 12px; font-weight: 600; }
.customer-package-card .customer-package-airlines > img { display: block; width: auto; max-width: 110px; height: 24px; object-fit: contain; }
.customer-package-card .customer-package-flight-body { display: grid; gap: 9px; padding: 0 12px 12px; }
.customer-package-card .customer-package-flight-body > p { margin: 0 2px 1px; color: var(--package-muted); font-size: 10px; }
.customer-package-card .customer-package-leg { min-width: 0; padding: 10px; border: 1px solid #e0e8f4; border-radius: 12px; background: #fff; }
.customer-package-card .customer-package-leg > header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0 0 9px; }
.customer-package-card .customer-package-leg > header > strong { padding: 3px 6px; border-radius: 5px; color: #17458f; background: #eef4ff; font-size: 11px; font-weight: 600; }
.customer-package-card .customer-package-leg > header > span { color: var(--package-muted); font-size: 10px; }
.customer-package-card .customer-package-leg-carrier { flex: 1; display: flex; justify-content: flex-end; min-width: 0; color: var(--package-ink); font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.customer-package-card .customer-package-leg-carrier > img { display: block; width: auto; max-width: 100px; height: 20px; object-fit: contain; }
.customer-package-card .customer-package-route { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: start; gap: 8px; }
.customer-package-card .customer-package-route > div { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; }
.customer-package-card .customer-package-route > div:last-child { align-items: flex-end; text-align: right; }
.customer-package-card .customer-package-route strong { color: #17458f; font-size: 21px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.customer-package-card .customer-package-route strong.is-unknown { color: var(--package-muted); font-size: 12px; line-height: 1.4; font-weight: 500; }
.customer-package-card .customer-package-route span { margin-top: 2px; color: var(--package-ink); font-size: 11px; overflow-wrap: anywhere; }
.customer-package-card .customer-package-route small { margin-top: 3px; color: var(--package-muted); font-size: 9px; overflow-wrap: anywhere; }
.customer-package-card .customer-package-route .customer-package-route-line { align-items: center; padding-top: 4px; color: var(--package-blue); text-align: center; }
.customer-package-card .customer-package-route-line small { font-size: 9px; }
.customer-package-card .customer-package-leg-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; padding: 9px 0 0; border-top: 1px solid #e9eef6; }
.customer-package-card .customer-package-leg-meta > div { min-width: 0; }
.customer-package-card .customer-package-leg-meta dt { color: var(--package-muted); font-size: 9px; }
.customer-package-card .customer-package-leg-meta dd { margin: 2px 0 0; color: var(--package-ink); font-size: 10px; overflow-wrap: anywhere; }
.customer-package-card .customer-package-footer { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; min-width: 0; padding: 0 12px 13px; }
.customer-package-card .customer-package-price > span { display: block; margin: 0 0 2px; color: var(--package-muted); font-size: 11px; }
.customer-package-card .customer-package-price > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.customer-package-card .customer-package-price strong { color: #142943; font-size: 22px; font-weight: 750; letter-spacing: -.65px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.customer-package-card .customer-package-price strong.is-unknown { color: var(--package-muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.customer-package-card .customer-package-price del { color: var(--package-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.customer-package-card .customer-package-price-change, .customer-package-card .customer-package-state { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; max-width: 100%; padding: 5px 8px; border-radius: 9px; font-size: 10px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.customer-package-card .customer-package-price-change > svg { width: 14px; height: 14px; }
.customer-package-card .is-updated, .customer-package-card .is-attention { color: #973c10; background: #fff1e5; }
.customer-package-card .is-lower, .customer-package-card .is-positive { color: #176346; background: #eaf7f0; }
.customer-package-card .is-pending { color: #17458f; background: #edf3ff; }
.customer-package-card .customer-package-state.is-unavailable { color: #8f303a; background: #faeef0; }
.customer-package-card .customer-package-reference { padding: 0; margin: 0; color: var(--package-muted); font-size: 10px; overflow-wrap: anywhere; }
.customer-package-card .customer-package-actions { grid-column: 1 / -1; grid-row: 4; display: grid; gap: 12px; padding: 10px 12px; border-top: 1px solid #e7edf5; }
.customer-package-card .customer-package-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--package-blue); border-radius: 12px; background: #fff; color: var(--package-blue); font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; white-space: normal; }
.customer-package-card .customer-package-open > svg { width: 18px; height: 18px; }
.customer-package-card[data-mode="trip"], .customer-package-card[data-mode="summary"] { grid-template-columns: minmax(0, 1fr); }
.customer-package-card[data-mode="trip"] .customer-package-media, .customer-package-card[data-mode="summary"] .customer-package-media { grid-column: 1; grid-row: 1; min-height: 200px; }
.customer-package-card[data-mode="summary"] .customer-package-media { min-height: 148px; background: #fff; color: var(--package-ink); }
.customer-package-card[data-mode="summary"] .customer-package-media::after { display: none; }
.customer-package-card[data-mode="summary"] .customer-package-photo { width: 34%; }
.customer-package-card[data-mode="summary"] .customer-package-photo-placeholder { width: 34%; padding-top: 30px; }
.customer-package-card[data-mode="summary"] .customer-package-identity { margin-left: 34%; padding: 15px; }
.customer-package-card[data-mode="summary"] .customer-package-identity h2 { color: var(--package-ink); font-size: 18px; }
.customer-package-card[data-mode="summary"] .customer-package-identity p { color: var(--package-muted); }
.customer-package-card[data-mode="summary"] .customer-package-stars { color: #b9470d; }
.customer-package-card[data-mode="trip"] .customer-package-identity { padding-top: 75px; }
.customer-package-card[data-mode="trip"] .customer-package-identity h2 { font-size: 22px; }
.customer-package-card[data-mode="trip"] .customer-package-facts, .customer-package-card[data-mode="summary"] .customer-package-facts { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 16px; }
.customer-package-card[data-mode="trip"] .customer-package-date, .customer-package-card[data-mode="summary"] .customer-package-date, .customer-package-card[data-mode="trip"] .customer-package-room, .customer-package-card[data-mode="summary"] .customer-package-room { grid-column: 1 / -1; }
.customer-package-card[data-mode="trip"] .customer-package-fact dd, .customer-package-card[data-mode="summary"] .customer-package-fact dd { font-size: 13px; }
.customer-package-card[data-mode="trip"] .customer-package-footer, .customer-package-card[data-mode="summary"] .customer-package-footer { grid-column: 1; grid-row: 4; padding: 14px 16px; }
.customer-package-card[data-mode="trip"] .customer-package-actions { grid-row: 5; padding: 0 16px 16px; border: 0; }
.customer-package-card[data-mode="trip"] .customer-package-open { border-color: var(--package-orange); background: var(--package-orange); color: var(--package-ink); }
.customer-package-card .customer-package-summary-details { grid-column: 1; grid-row: 3; min-width: 0; margin: 0; border: 0; border-top: 1px solid #e7edf5; border-bottom: 1px solid #e7edf5; border-radius: 0; }
.customer-package-card .customer-package-summary-details > summary { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 16px; color: var(--package-blue); font-size: 12px; line-height: 1.4; list-style: none; cursor: pointer; }
.customer-package-card .customer-package-summary-details > summary::-webkit-details-marker { display: none; }
.customer-package-card .customer-package-summary-details > summary::marker { content: ''; }
.customer-package-card .customer-package-summary-details > summary > strong { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; }
.customer-package-card .customer-package-summary-details > summary > svg:last-child { width: 18px; height: 18px; }
.customer-package-card .customer-package-summary-details[open] > summary > svg:last-child { transform: rotate(180deg); }
.customer-package-card[data-mode="summary"] .customer-package-summary-details .customer-package-facts { padding-top: 8px; }
.customer-package-card[data-mode="summary"] .customer-package-footer { grid-row: 4; }
.customer-package-card .customer-package-context { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-width: 0; padding: 11px 15px; border-top: 1px solid #e7edf5; background: #fff; }
.customer-package-card .customer-package-context > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; color: var(--package-ink); font-size: 13px; line-height: 1.4; }
.customer-package-card .customer-package-context > span > svg { width: 18px; height: 18px; color: var(--package-blue); }
.customer-package-card .customer-package-context > .customer-package-context-party { color: var(--package-muted); font-size: 11px; }
.customer-package-card .customer-package-context strong { font-size: 13px; font-weight: 600; }
@media (max-width: 359px) {
  .customer-package-card { grid-template-columns: minmax(0, 1fr); }
  .customer-package-card .customer-package-media { grid-column: 1; grid-row: 1; min-height: 200px; }
  .customer-package-card .customer-package-identity { padding-top: 75px; }
  .customer-package-card .customer-package-facts { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 12px; }
  .customer-package-card .customer-package-date, .customer-package-card .customer-package-room { grid-column: 1 / -1; }
  .customer-package-card .customer-package-footer { grid-column: 1; grid-row: 4; padding: 14px; }
  .customer-package-card .customer-package-actions { grid-row: 5; }
  .customer-package-card .customer-package-route { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 6px; }
  .customer-package-card .customer-package-route strong { font-size: 19px; }
}
@container customer (max-width: 330px) {
  .customer-package-card { grid-template-columns: minmax(0, 1fr); }
  .customer-package-card .customer-package-media { grid-column: 1; grid-row: 1; min-height: 200px; }
  .customer-package-card .customer-package-identity { padding-top: 75px; }
  .customer-package-card .customer-package-facts { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 12px; }
  .customer-package-card .customer-package-date, .customer-package-card .customer-package-room { grid-column: 1 / -1; }
  .customer-package-card .customer-package-footer { grid-column: 1; grid-row: 4; padding: 14px; }
  .customer-package-card .customer-package-actions { grid-row: 5; }
}
@media (prefers-reduced-motion: reduce) { .customer-package-card .customer-package-flights > summary > svg:last-child { transition: none; } }

.customer-package-price-review{margin:0;padding:10px 14px;font-size:12px;line-height:1.6;color:#60728c;background:#f5f8fc;border-top:1px solid #e1e8f2;}
