/* Occasion pop-up — storefront */
body.nova-occasion-popup-open {
  overflow: hidden;
}

.nova-occasion-popup-root {
  position: fixed;
  inset: 0;
  z-index: 10750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nova-occasion-popup-root.is-open {
  opacity: 1;
  visibility: visible;
}

.nova-occasion-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.nova-occasion-popup-card {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.nova-occasion-popup-root.is-open .nova-occasion-popup-card {
  transform: scale(1) translateY(0);
}

.nova-occasion-popup-close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nova-occasion-popup-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 52vh;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  overflow: hidden;
}

.nova-occasion-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nova-occasion-popup-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.nova-occasion-popup-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.nova-occasion-popup-subtitle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #64748b;
}

.nova-occasion-popup-actions {
  display: grid;
  gap: 0.65rem;
}

.nova-occasion-popup-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

/* Admin preview (scaled) */
.nova-occasion-preview-wrap {
  min-height: 280px;
  background: #0f172a;
}

.nova-occasion-preview-wrap--web {
  min-height: 300px;
}

.nova-occasion-preview-wrap--mobile {
  min-height: 300px;
}

.nova-occasion-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.nova-occasion-preview-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.nova-occasion-preview-card--web {
  width: min(100%, 210px);
  margin-top: 1.5rem;
}

.nova-occasion-preview-card--mobile {
  width: min(100%, 200px);
  margin-top: 1.5rem;
}

.nova-occasion-preview-close {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1;
}

.nova-occasion-preview-image-wrap {
  aspect-ratio: 4 / 5;
  background: #f1f5f9;
  overflow: hidden;
}

.nova-occasion-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nova-occasion-preview-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.nova-occasion-preview-placeholder i {
  font-size: 2rem;
}

.nova-occasion-preview-body {
  padding: 1rem;
}

.nova-occasion-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.nova-occasion-preview-subtitle {
  margin: 0;
}

@media (max-width: 575.98px) {
  .nova-occasion-popup-card {
    width: min(100%, 360px);
    border-radius: 1rem;
  }

  .nova-occasion-popup-body {
    padding: 1rem 1.1rem 1.25rem;
  }

  .nova-occasion-popup-title {
    font-size: 1.2rem;
  }
}
