/* A permanent portrait, gently expanded by the native contact disclosure. */
.booking-help--photo {
  --help-surface: 255, 255, 255;
  --help-photo-duration: 420ms;
  --help-photo-ease: cubic-bezier(.22, .61, .36, 1);
  background: rgb(var(--help-surface));
}

.booking-help--photo > summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 124px;
  padding-right: 44%;
  background: rgb(var(--help-surface));
  transition: min-height var(--help-photo-duration) var(--help-photo-ease);
}

.booking-help--photo[open] > summary { min-height: 168px; }

.booking-help--photo .booking-help-icon,
.booking-help--photo .booking-help-text {
  position: relative;
  z-index: 1;
}

.booking-help--photo .booking-help-text { min-width: 0; }

.booking-help-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 38%;
  max-width: 380px;
  overflow: hidden;
  pointer-events: none;
  transition: width var(--help-photo-duration) var(--help-photo-ease),
    max-width var(--help-photo-duration) var(--help-photo-ease);
}

.booking-help--photo[open] .booking-help-scene {
  width: 42%;
  max-width: 430px;
}

.booking-help-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 12%;
}

.booking-help-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgb(var(--help-surface)) 0%,
    rgba(var(--help-surface), .96) 8%,
    rgba(var(--help-surface), .65) 21%,
    rgba(var(--help-surface), .15) 36%,
    rgba(var(--help-surface), 0) 49%);
}

.booking-help--photo > summary > svg {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 10px;
  border: 1px solid rgba(7, 62, 112, .1);
  border-radius: 50%;
  color: var(--navy-deep);
  background: rgba(var(--help-surface), .94);
}

.booking-help--photo > summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
  border-radius: 15px;
}

html[data-theme="dark"] .booking-help--photo { --help-surface: 23, 35, 45; }
html[data-theme="dark"] .booking-help--photo > summary > svg {
  color: #edf4f8;
  border-color: #425460;
}

@media (max-width: 700px) {
  .booking-help--photo > summary {
    min-height: 148px;
    padding: 20px 37% 20px 14px;
    gap: 8px;
  }
  .booking-help--photo[open] > summary { min-height: 184px; }
  .booking-help--photo .booking-help-icon { width: 28px; }
  .booking-help--photo .booking-help-text strong { font-size: 15px; }
  .booking-help--photo .booking-help-text small { font-size: 12px; }
  .booking-help-scene { width: 35%; }
  .booking-help--photo[open] .booking-help-scene { width: 38%; }
  .booking-help-scene img { object-position: 80% 22%; }
  .booking-help--photo > summary > svg {
    bottom: 12px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 7px;
  }
}

@media (max-width: 400px) {
  .booking-help--photo .booking-help-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-help--photo > summary,
  .booking-help--photo .booking-help-scene,
  .booking-help--photo > summary > svg { transition: none; }
}

@media print {
  .booking-help-scene { display: none; }
  .booking-help--photo > summary,
  .booking-help--photo[open] > summary {
    min-height: 0;
    padding: 19px 56px 19px 20px;
  }
}
