/* Nyhedsbrevs-popup i husets farver (gran på creme, guld-accent). */

.mmc-nb-overlay {
    align-items: center;
    background: rgba(28, 38, 32, 0.55);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 16px;
    position: fixed;
    z-index: 99999;
}

.mmc-nb-overlay[hidden] {
    display: none;
}

.mmc-nb-kort {
    background: #faf7ef;
    border-radius: 20px;
    border-top: 5px solid #a28a47;
    box-shadow: 0 18px 60px rgba(28, 38, 32, 0.35);
    color: #1c2620;
    max-width: 420px;
    padding: 30px 28px 24px;
    position: relative;
    width: 100%;
}

.mmc-nb-kort h2 {
    color: #27352a;
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.mmc-nb-kort p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.mmc-nb-luk {
    background: none;
    border: 0;
    color: #8a8371;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    padding: 6px;
    position: absolute;
    right: 12px;
    top: 10px;
}

.mmc-nb-luk:hover {
    color: #27352a;
}

.mmc-nb-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mmc-nb-form input[type="email"] {
    background: #fff;
    border: 1px solid #ddd8cc;
    border-radius: 999px;
    flex: 1 1 200px;
    font-size: 16px;
    min-width: 0;
    padding: 0.65rem 1.1rem;
}

.mmc-nb-form input[type="email"]:focus {
    border-color: #27352a;
    box-shadow: 0 0 0 2px rgba(39, 53, 42, 0.15);
    outline: none;
}

/* Honningkrukken skal være usynlig for mennesker, men findes i DOM. */
.mmc-nb-hp {
    left: -9999px;
    position: absolute;
}

.mmc-nb-send {
    background: #27352a;
    border: 0;
    border-radius: 999px;
    color: #faf7ef;
    cursor: pointer;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: background-color 0.2s ease;
}

.mmc-nb-send:hover,
.mmc-nb-send:focus {
    background: #1c2620;
    color: #fff;
}

.mmc-nb-send:disabled {
    cursor: default;
    opacity: 0.6;
}

.mmc-nb-status {
    font-weight: 600;
    margin: 0.8rem 0 0;
}

.mmc-nb-status.is-success {
    color: #27352a;
}

.mmc-nb-status.is-error {
    color: #a94434;
}

.mmc-nb-note {
    color: #8a8371;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0.9rem 0 0;
}

.mmc-nb-note a {
    color: #8a8371;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .mmc-nb-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .mmc-nb-kort {
        border-radius: 20px 20px 0 0;
        max-width: none;
    }
}

/* Inline-formularen på nyhedsbrevssiden ([mm_nyhedsbrev]) — flad,
   uden kort og kant, så den følger sidens eget udtryk. */
.mmc-nb-inline {
    margin: 1.5rem 0 2rem;
    max-width: 480px;
}
