/*
   Modal chrome only. The <form> inside .dmc-newsletter-popup__panel is
   intentionally not restyled — .mc4wp-form .dmc-newsletter-row rules in
   the active theme + brand stylesheets already paint the input + submit
   button, so the popup picks up brand colours via the existing cascade.

   The .dmc-newsletter-popup root is `hidden` until JS removes the attr.
*/

.dmc-newsletter-popup[hidden] {
    display: none !important;
}

.dmc-newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;             /* above Complianz banner (999998) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dmc-newsletter-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.dmc-newsletter-popup__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 32px 32px 32px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.dmc-newsletter-popup__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0;
    outline: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.15s ease;
    box-shadow: none;
}
.dmc-newsletter-popup__close:hover,
.dmc-newsletter-popup__close:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    opacity: 0.7;
    outline: 0;
}

.dmc-newsletter-popup__title {
    color: #ffffff;
    margin: 0 0 12px 0;
    font-size: 1.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.dmc-newsletter-popup__desc {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.4;
    /* User asked for a one-line description — keep one logical line at
       readable widths; on narrow mobile (<=480px) allow it to wrap so it
       remains legible. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .dmc-newsletter-popup__panel {
        padding: 36px 20px 24px 20px;
    }
    .dmc-newsletter-popup__desc {
        white-space: normal;
    }
}

/* Ensure the embedded MC4WP form sits centered. The form's own
   .dmc-newsletter-row already has max-width:520px, margin:0 auto. */
.dmc-newsletter-popup .mc4wp-form {
    margin: 0 auto;
}

/* Response area styling — neutral on dark background. */
.dmc-newsletter-popup .mc4wp-response {
    color: #ffffff;
    margin-top: 12px;
    font-size: 0.9rem;
}
