/* public/css/ring-doorbell.css */

#ring-doorbell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#ring-doorbell-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.ring-doorbell-modal {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  width: min(90vw, 900px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ring-doorbell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  background: #000;
}

.ring-doorbell-close {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Expanded invisible hit target — same pattern used elsewhere on the kiosk
   to work around the IR overlay's touch precision limits near controls. */
.ring-doorbell-close::after {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: -16px;
  left: -16px;
}

.ring-doorbell-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ring-doorbell-status {
  padding: 0.75rem 1.5rem;
  color: #ccc;
  font-size: 1.1rem;
  text-align: center;
  min-height: 1.6rem;
}