.ndm {
--ndm-bg: #ffffff;
--ndm-text: #1d1d1f;
--ndm-muted: #6b6b70;
--ndm-accent: #111111;
--ndm-overlay: rgba(0, 0, 0, 0.6);
--ndm-radius: 12px;
--ndm-width: 480px;
position: fixed;
inset: 0;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
opacity: 0;
transition: opacity 0.25s ease;
}
.ndm[hidden] {
display: none;
}
.ndm.is-open {
opacity: 1;
}
.ndm-overlay {
position: absolute;
inset: 0;
background: var(--ndm-overlay);
cursor: pointer;
}
.ndm-dialog {
position: relative;
width: 100%;
max-width: var(--ndm-width);
max-height: calc(100vh - 32px);
overflow-y: auto;
padding: 40px 32px 24px;
background: var(--ndm-bg);
color: var(--ndm-text);
border-radius: var(--ndm-radius);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
text-align: center;
transform: translateY(16px);
transition: transform 0.25s ease;
}
.ndm.is-open .ndm-dialog {
transform: none;
}
.ndm-dialog:focus {
outline: none;
}
.ndm-x {
position: absolute;
top: 8px;
right: 8px;
width: 40px;
height: 40px;
padding: 0;
border: 0;
background: transparent;
color: var(--ndm-muted);
font-size: 28px;
line-height: 1;
cursor: pointer;
}
.ndm-x:hover,
.ndm-x:focus-visible {
color: var(--ndm-text);
}
.ndm-title {
margin: 0 0 12px;
font-size: 1.6em;
line-height: 1.2;
color: inherit;
}
.ndm-content p {
margin: 0 0 16px;
}
.ndm-form .wpcf7-form p {
margin: 0 0 12px;
}
.ndm-form input[type="email"],
.ndm-form input[type="text"] {
width: 100%;
box-sizing: border-box;
}
.ndm-form input[type="submit"] {
width: 100%;
background: var(--ndm-accent);
color: #fff;
border: 0;
cursor: pointer;
}
.ndm-decline {
margin: 16px 0 0;
font-size: 0.875em;
}
.ndm-decline a {
color: var(--ndm-muted);
text-decoration: underline;
}
.ndm-success:focus {
outline: none;
}
.ndm-code {
display: inline-block;
padding: 2px 8px;
border: 1px dashed currentColor;
border-radius: 4px;
letter-spacing: 0.05em;
}
.ndm-copy {
margin-top: 8px;
cursor: pointer;
}
html.ndm-lock,
html.ndm-lock body {
overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
.ndm,
.ndm-dialog {
transition: none;
}
} [data-ndm-signup] [hidden] {
display: none !important;
}
.ndm-section .ndm-success:focus {
outline: none;
}