/* Reliable, local modal for Duda's original popup-page links. */
.jd-local-popup {
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #161616 !important;
  width: min(92vw, 1000px) !important;
  max-width: 1000px !important;
  max-height: 92vh !important;
  overflow: hidden !important;
  box-shadow: 0 15px 60px rgba(0,0,0,.35) !important;
  z-index: 2147483646 !important;
}
.jd-local-popup::backdrop { background: rgba(0, 0, 0, .72); }
.jd-local-popup[open]:not(:modal) {
  position: fixed;
  inset: 3vh 0 auto 0;
  z-index: 2147483646;
}
.jd-popup-shell { display: flex; flex-direction: column; height: min(86vh, 890px); }
.jd-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto; min-height: 56px; padding: 8px 14px 8px 22px;
  background: #121212; color: #fff; font: 600 17px/1.3 Arial, sans-serif;
}
.jd-popup-close {
  flex: 0 0 auto; cursor: pointer; border: 0; background: transparent;
  color: #fff; font: 36px/1 Arial, sans-serif; padding: 1px 9px;
}
.jd-popup-close:hover, .jd-popup-close:focus-visible {
  background: #353535; border-radius: 4px; outline: 2px solid #fff;
}
.jd-popup-frame { width: 100%; flex: 1 1 auto; border: 0; background: #fff; }
@media (max-width: 600px) {
  .jd-local-popup { width: 96vw !important; max-height: 95vh !important; }
  .jd-popup-shell { height: 91vh; }
  .jd-popup-header { padding-left: 15px; font-size: 15px; }
}

/* Applied in the iframe only when the query string contains jd_popup=1. */
html.jd-embedded-popup, html.jd-embedded-popup body { background: #fff !important; }
html.jd-embedded-popup .dmFooterContainer,
html.jd-embedded-popup .dmHeader,
html.jd-embedded-popup #hamburger-drawer,
html.jd-embedded-popup #hamburger-header-container,
html.jd-embedded-popup #layout-drawer-hamburger,
html.jd-embedded-popup #layout-drawer-overlay,
html.jd-embedded-popup #dmPopup,
html.jd-embedded-popup #dmPopupMask { display: none !important; }
html.jd-embedded-popup .dmInner, html.jd-embedded-popup #dm_content,
html.jd-embedded-popup .dmContent {
  background: #fff !important; min-height: 0 !important;
  padding-top: 0 !important; margin-top: 0 !important;
}
html.jd-embedded-popup #dm_content { padding: 12px 22px 30px !important; }
