/* Detail-page QR utility tile */

.detail-qr-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  width: min(100%, 470px);
  margin: 1rem auto;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgb(0 0 0 / 16%);
  border-radius: 10px;
  background: rgb(255 255 255 / 42%);
}

.detail-qr-image {
  display: block;
  width: 216px;
  height: 216px;
  object-fit: contain;
}

.detail-qr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  justify-content: center;
  margin: 0;
}

.detail-qr-actions .utility-divider {
  display: none;
}

.detail-qr-actions .utility-link {
  display: block;
  width: 100%;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

/* Crush or Blush fullscreen interstitial */

.crush-survey-modal {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: 1rem;
}

.crush-survey-modal.is-active {
  display: flex;
}

.crush-survey-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(8 8 12 / 94%);
}

.crush-survey-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(94vw, 640px);
  height: 340px;
  min-height: 0;
  max-height: calc(100dvh - 4rem);
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.crush-survey-modal-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 0;
  padding: 0;
}

.crush-survey-modal-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.crush-survey-modal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.crush-survey-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 42px rgb(0 0 0 / 55%);
}

@media (width <= 480px) {
  .detail-qr-tile {
    width: min(100%, 390px);
    grid-template-columns: 192px 1fr;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
  }

  .detail-qr-image {
    width: 192px;
    height: 192px;
  }

  .crush-survey-modal {
    padding: 0.75rem;
  }

  .crush-survey-modal-panel {
    width: 94vw;
    height: 320px;
    min-height: 0;
    max-height: calc(100dvh - 3rem);
  }

  .crush-survey-modal-close {
    top: -2.5rem;
  }
}