/* ==========================================================================
   Magnific Popup v1.1.0 - Modernized for Elektroraf Design System
   ========================================================================== */

.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.85;
}

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
  width: 100%;
  max-width: 480px;
}

.mfp-ajax-holder .mfp-content,
.mfp-inline-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.mfp-loading.mfp-figure {
  display: none;
}

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  display: none !important;
  color: #cccccc;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044;
}

.mfp-preloader a {
  color: #cccccc;
}

.mfp-preloader a:hover {
  color: #ffffff;
}

.mfp-s-ready .mfp-preloader {
  display: none !important;
}

.mfp-s-error .mfp-content {
  display: none;
}

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  position: absolute !important;
  right: 14px !important;
  top: 14px !important;
  text-decoration: none !important;
  text-align: center !important;
  opacity: 0.75 !important;
  padding: 0 !important;
  color: var(--color-heading, #1e293b) !important;
  font-style: normal !important;
  font-size: 24px !important;
  font-family: Arial, Baskerville, monospace !important;
  background: var(--color-surface-subtle, #f1f5f9) !important;
  border: 1px solid var(--color-border, #e2e8f0) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.mfp-close:hover,
.mfp-close:focus {
  opacity: 1 !important;
  background: var(--color-border, #cbd5e1) !important;
  color: var(--color-heading, #0f172a) !important;
}

.mfp-close-btn-in .mfp-close {
  color: var(--color-heading, #1e293b) !important;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #ffffff !important;
  right: -6px !important;
  text-align: right !important;
  padding-right: 6px !important;
  width: 100% !important;
}

/* Modal Content Box */
.mfp-dialog {
  background: var(--color-surface, #ffffff);
  padding: 28px;
  text-align: left;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-card, 16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border, #e2e8f0);
  box-sizing: border-box;
}

.mfp-dialog h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-heading, #0f172a);
  margin-top: 0;
  margin-bottom: 8px;
}

.mfp-dialog p {
  color: var(--color-text-muted, #64748b);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.mfp-dialog hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle, #f1f5f9);
  margin: 16px 0;
}
