/* ==========================================================================
   SOHRAAZ MODAL DIALOGS (#sizeModal, #calcModal, #notifyModal)
   ========================================================================== */

.modal-scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gap-12xl);
}

.modal-scrim.open {
  display: flex;
  animation: fadeIn var(--dur) var(--ease);
}

.modal-box {
  background: var(--paper, var(--bg2));
  border: 1px solid var(--line, var(--line));
  border-radius: var(--radius, 14px);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  padding: var(--gap-16xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-4xl);
  cursor: pointer;
  border-radius: var(--radius-round);
  background: var(--cream);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- reduced motion ----------
   Every animation in this file stops when the visitor asks the system to
   reduce motion. Nothing here is decoration the customer needs to read. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
