/* CF_PAGES_ARTIFACT_RUNTIME_CSS_V3 */
#cf-pages-popup-root {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#cf-pages-popup-root[data-position="top"] { align-items: flex-start; }
#cf-pages-popup-root[data-position="bottom"] { align-items: flex-end; }
#cf-pages-popup-root[data-position="top-left"] { align-items: flex-start; justify-content: flex-start; }
#cf-pages-popup-root[data-position="top-right"] { align-items: flex-start; justify-content: flex-end; }
#cf-pages-popup-root[data-position="bottom-left"] { align-items: flex-end; justify-content: flex-start; }
#cf-pages-popup-root[data-position="bottom-right"] { align-items: flex-end; justify-content: flex-end; }

#cf-pages-popup-root .cfpm-shade {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 24, 0.72);
  backdrop-filter: blur(5px);
}

#cf-pages-popup-root .cfpm-dialog {
  position: relative;
  width: min(100%, var(--cfpm-width, 560px));
  max-height: min(calc(100vh - 40px), var(--cfpm-max-height, 760px));
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-color: color-mix(in srgb, var(--cfpm-text, #f9fafb) 18%, transparent);
  border-radius: var(--cfpm-radius, 24px);
  outline: none;
  background: var(--cfpm-background, #111827);
  color: var(--cfpm-text, #f9fafb);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  padding: 28px;
}

#cf-pages-popup-root .cfpm-top { display: flex; gap: 16px; align-items: flex-start; padding-right: 48px; }
#cf-pages-popup-root[data-closeable="false"] .cfpm-top { padding-right: 0; }
#cf-pages-popup-root .cfpm-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--cfpm-accent, #7c3aed); color: #fff; font-weight: 800; font-size: 21px; }
#cf-pages-popup-root .cfpm-title { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; }
#cf-pages-popup-root .cfpm-message { margin: 18px 0 0; color: var(--cfpm-text, #d1d5db); color: color-mix(in srgb, var(--cfpm-text, #f9fafb) 78%, transparent); line-height: 1.6; white-space: pre-wrap; }
#cf-pages-popup-root .cfpm-body { margin: 16px 0 0; color: var(--cfpm-text, #e5e7eb); color: color-mix(in srgb, var(--cfpm-text, #f9fafb) 90%, transparent); line-height: 1.65; overflow-wrap: anywhere; }
#cf-pages-popup-root .cfpm-body p { margin: 0 0 12px; }
#cf-pages-popup-root .cfpm-body p:last-child { margin-bottom: 0; }
#cf-pages-popup-root .cfpm-body ol, #cf-pages-popup-root .cfpm-body ul { margin: 12px 0; padding-left: 24px; }
#cf-pages-popup-root .cfpm-body li + li { margin-top: 6px; }
#cf-pages-popup-root .cfpm-body a { color: var(--cfpm-accent, #c4b5fd); text-decoration: underline; }
#cf-pages-popup-root .cfpm-snooze { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--cfpm-text, #d1d5db); color: color-mix(in srgb, var(--cfpm-text, #f9fafb) 82%, transparent); font-size: 14px; line-height: 1.45; cursor: pointer; }
#cf-pages-popup-root .cfpm-snooze-input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--cfpm-accent, #7c3aed); cursor: pointer; }
#cf-pages-popup-root .cfpm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }
#cf-pages-popup-root .cfpm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: min(12px, var(--cfpm-radius, 12px)); background: var(--cfpm-accent, #7c3aed); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease; }
#cf-pages-popup-root .cfpm-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
#cf-pages-popup-root .cfpm-button:focus-visible, #cf-pages-popup-root .cfpm-snooze-input:focus-visible { outline: 3px solid var(--cfpm-accent, #fbbf24); outline-offset: 3px; }
#cf-pages-popup-root .cfpm-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  outline: none;
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: var(--cfpm-text, #cbd5e1);
  font: normal 24px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  text-indent: 0;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
#cf-pages-popup-root .cfpm-close-glyph { display: block; width: 1em; height: 1em; line-height: 0.9; pointer-events: none; }
#cf-pages-popup-root .cfpm-close:hover, #cf-pages-popup-root .cfpm-close:focus-visible { outline: none; background: rgba(127, 127, 127, 0.16); box-shadow: none; }
#cf-pages-popup-root .cfpm-close:active { background: rgba(127, 127, 127, 0.24); }

@media (max-width: 520px) {
  #cf-pages-popup-root { padding: 12px; }
  #cf-pages-popup-root .cfpm-dialog { max-height: min(calc(100vh - 24px), var(--cfpm-max-height, 760px)); padding: 22px; }
  #cf-pages-popup-root .cfpm-title { font-size: 20px; }
  #cf-pages-popup-root .cfpm-actions { justify-content: stretch; }
  #cf-pages-popup-root .cfpm-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #cf-pages-popup-root .cfpm-button { transition: none; }
}
