/* A non-modal overlay: opening or closing it never changes the hero layout. */
.showroom-popup {
  position: fixed;
  z-index: 80;
  inset: auto 32px max(24px, env(safe-area-inset-bottom)) auto;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 128px);
  max-height: calc(100dvh - 128px);
  margin: 0;
  padding: 30px 28px 24px;
  flex: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 14px 55px #112b3040, 0 0 0 1px #ffffff60;
}
.showroom-popup[hidden] { display: none; }
.showroom-popup h2 { font-size: 25px; padding-right: 8px; }
.showroom-popup p { font-size: 12px; }
.showroom-popup .close-card {
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.showroom-popup .close-card:hover { background: #5ba3d319; }
.showroom-popup .close-card:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: -5px; }
html.eg-nav-lock .showroom-popup { visibility: hidden; pointer-events: none; }
@media (max-width: 700px) {
  .showroom-popup {
    inset: auto 16px max(16px, env(safe-area-inset-bottom)) 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
    padding: 28px 24px 22px;
  }
  .showroom-popup h2 { font-size: 22px; padding-right: 12px; }
  .showroom-popup p { font-size: 11px; }
  .hero { height: calc(100svh - 84px); min-height: 650px; max-height: 900px; }
  .hero-photo { height: 100%; object-position: 66% 50%; }
  .hero-shade { background: linear-gradient(0deg, #142a24d9, #142a2440 56%, transparent 82%); }
}
