/* Miaora shell hosts the single Panda order workspace implementation. */
.shared-order-panel-host {
  min-width: 0;
  min-height: 760px;
  height: calc(100dvh - 112px);
  overflow: hidden;
  border-radius: 16px 0 0 0;
  background: #f5f7fb;
}
.shared-order-panel-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f7fb;
}
.shared-order-legacy[hidden],
.shared-order-panel-host > .erp-order-summary-heading { display: none !important; }

.shared-order-shell-image-preview {
  position: fixed;
  inset: 0;
  z-index: 18000;
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgb(13 15 23 / 62%);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.shared-order-shell-image-preview[hidden] { display: none !important; }
.shared-order-shell-image-preview figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, calc(100vw - 72px));
  max-height: calc(100dvh - 72px);
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 90px rgb(8 13 43 / 42%);
}
.shared-order-shell-image-preview img {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100dvh - 164px);
  object-fit: contain;
}
.shared-order-shell-image-preview figcaption {
  width: 100%;
  padding-top: 10px;
  overflow: hidden;
  color: #253047;
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-order-shell-image-preview figure > span { padding-top: 4px; color: #9199a8; font-size: 12px; }

@media (max-width: 980px) {
  .shared-order-panel-host { height: calc(100dvh - 96px); min-height: 720px; }
  .shared-order-shell-image-preview { padding: 18px; }
  .shared-order-shell-image-preview figure { width: min(680px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); }
  .shared-order-shell-image-preview img { max-height: calc(100dvh - 126px); }
}
