.jaeschke-wall-ar {
  margin: 24px 0 8px;
}

.jaeschke-wall-ar__open {
  align-items: center;
  background: #111;
  border: 1px solid #111;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 600;
  justify-content: space-between;
  min-height: 54px;
  padding: 14px 18px;
  transition: background-color .2s ease, color .2s ease;
  width: 100%;
}

.jaeschke-wall-ar__open:hover,
.jaeschke-wall-ar__open:focus-visible {
  background: #fff;
  color: #111;
}

.jaeschke-wall-ar__open:focus-visible,
.jaeschke-wall-ar-dialog__close:focus-visible,
.jaeschke-wall-ar-dialog__launch:focus-visible {
  outline: 2px solid #e30613;
  outline-offset: 3px;
}

.jaeschke-wall-ar__arrow {
  font-size: 22px;
  font-weight: 400;
}

.jaeschke-wall-ar__meta {
  color: #777;
  font-size: 13px;
  margin: 8px 0 0;
}

/* Native Live-AR is offered only in the mobile product layout. */
@media (min-width: 1025px) {
  .jaeschke-wall-ar,
  .jaeschke-wall-ar-dialog {
    display: none !important;
  }
}

body.jaeschke-wall-ar-open {
  overflow: hidden;
}

.jaeschke-wall-ar-dialog[hidden] {
  display: none;
}

.jaeschke-wall-ar-dialog {
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.jaeschke-wall-ar-dialog__backdrop {
  background: rgba(0, 0, 0, .58);
  inset: 0;
  position: absolute;
}

.jaeschke-wall-ar-dialog__panel {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(320px, 1.3fr);
  height: min(760px, calc(100vh - 48px));
  inset: 24px;
  margin: auto;
  max-width: 1180px;
  overflow: hidden;
  position: absolute;
}

.jaeschke-wall-ar-dialog__close {
  align-items: center;
  background: #fff;
  border: 1px solid #111;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  display: flex;
  font: 300 28px/1 Arial, sans-serif;
  height: 44px;
  justify-content: center;
  padding: 0 0 3px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  z-index: 3;
}

.jaeschke-wall-ar-dialog__heading {
  align-self: center;
  padding: 48px;
}

.jaeschke-wall-ar-dialog__eyebrow {
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 16px;
}

.jaeschke-wall-ar-dialog__heading h2 {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0 0 28px;
}

.jaeschke-wall-ar-dialog__heading > p:last-child {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.jaeschke-wall-ar-dialog__viewer {
  background: #f1f1ef;
  min-height: 0;
  position: relative;
}

.jaeschke-wall-ar-dialog__viewer model-viewer {
  height: 100%;
  min-height: 520px;
  width: 100%;
  --poster-color: #f1f1ef;
  --progress-bar-color: #e30613;
}

.jaeschke-wall-ar-dialog__loading,
.jaeschke-wall-ar-dialog__error {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  inset: 0;
  justify-content: center;
  padding: 32px;
  position: absolute;
  text-align: center;
}

.jaeschke-wall-ar-dialog__error span {
  color: #666;
}

.jaeschke-wall-ar-dialog__spinner {
  animation: jaeschke-wall-ar-spin .8s linear infinite;
  border: 2px solid #ccc;
  border-radius: 50%;
  border-top-color: #111;
  height: 30px;
  width: 30px;
}

@keyframes jaeschke-wall-ar-spin {
  to { transform: rotate(360deg); }
}

.jaeschke-wall-ar-dialog__launch {
  align-items: center;
  background: #111;
  border: 1px solid #111;
  bottom: 24px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 600 16px/1.2 Arial, sans-serif;
  gap: 28px;
  justify-content: space-between;
  left: 50%;
  min-width: 250px;
  padding: 17px 20px;
  position: absolute;
  transform: translateX(-50%);
}

.jaeschke-wall-ar-dialog__status {
  background: rgba(255, 255, 255, .94);
  bottom: 0;
  font-size: 12px;
  left: 0;
  line-height: 1.45;
  margin: 0;
  padding: 12px 48px;
  position: absolute;
  width: calc(41.2% - 96px);
}

@media (max-width: 800px) {
  .jaeschke-wall-ar-dialog__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    inset: 0;
    max-width: none;
  }

  .jaeschke-wall-ar-dialog__heading {
    flex: 0 0 auto;
    padding: 24px 70px 18px 22px;
  }

  .jaeschke-wall-ar-dialog__eyebrow {
    margin-bottom: 8px;
  }

  .jaeschke-wall-ar-dialog__heading h2 {
    font-size: 34px;
    margin-bottom: 10px;
  }

  .jaeschke-wall-ar-dialog__heading > p:last-child {
    font-size: 14px;
    line-height: 1.4;
  }

  .jaeschke-wall-ar-dialog__viewer {
    flex: 1 1 auto;
  }

  .jaeschke-wall-ar-dialog__viewer model-viewer {
    min-height: 100%;
  }

  .jaeschke-wall-ar-dialog__close {
    right: 16px;
    top: 16px;
  }

  .jaeschke-wall-ar-dialog__status {
    bottom: 0;
    font-size: 11px;
    left: 0;
    padding: 10px 16px;
    width: calc(100% - 32px);
    z-index: 2;
  }

  .jaeschke-wall-ar-dialog__launch {
    bottom: 58px;
    max-width: calc(100vw - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jaeschke-wall-ar-dialog__spinner {
    animation-duration: 1.8s;
  }
}
