/* =========================================================================
   Add-ons only. Every layout/typography rule comes from the theme bundles:
     css/vendor/bootstrap.css      Bootstrap 4.6.2 (as used by the platform)
     css/vendor/themes-scroll.css  theme skeleton
     css/theme.css                 theme inline CSS
   Do NOT restyle .form-control / .badge / .comment / .rsvp-form here — those are
   already styled by Bootstrap + the theme, and overriding them breaks parity
   with the platform component.
   ========================================================================= */

/* elements the platform renders through its Vue component */
.form-error { color: #b3261e; font-size: 12.5px; font-family: sans-serif; }
.form-error:empty { display: none; }
.rsvp-empty { font-size: 13px; color: #9d8f7c; text-align: center; padding: 12px 0; font-family: sans-serif; }

.btn-outline {
  border: 1px solid var(--inv-base);
  color: var(--inv-base);
  background: transparent;
}
.btn-outline:hover { background: rgba(96, 14, 16, .06); }

/* QR modal */
.qr-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.qr-body { padding: 16px 18px 60px; font-family: sans-serif; }
.qr-canvas-wrap { display: flex; justify-content: center; }
#qrCanvas { width: 180px; height: 180px; image-rendering: pixelated; }
.qr-event, .qr-guest { text-align: center; font-size: 14px; }
.qr-actions { margin-top: 12px; }

/* modal backdrop follows Bootstrap's own classes */
.modal-backdrop {
  background-color: #000;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-backdrop.show { opacity: .55; }

/* toast (nama kelas sengaja beda dari .toast Bootstrap) */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
  font-family: sans-serif;
}
.app-toast {
  background: rgba(40, 20, 20, .94);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  animation: toast-in .18s ease-out;
}
.app-toast.error { background: #8d1f1f; }
.app-toast.ok { background: #1f6b3f; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* watermark guard screen */
.illegal-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #111;
}
.illegal-inner { max-width: 420px; text-align: center; }
.illegal-inner h2 { font-family: var(--font-accent); }

/* the cover must not take a second tap while it is sliding away */
.satumomen_cover.opening { pointer-events: none; }
