.mesh24-newsletter-strip,
.mesh24-newsletter-popup,
.mesh24-newsletter-page {
    --newsletter-green: #087d40;
    --newsletter-dark: #123b2c;
    --newsletter-muted: #466154;
    --newsletter-line: #c7dfce;
    --newsletter-mint: #ecf5ee;
    border: 1px solid var(--newsletter-line);
    border-radius: 16px;
    background: var(--newsletter-mint);
    color: var(--newsletter-dark);
}

.mesh24-newsletter-strip,
.mesh24-newsletter-popup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 42px);
}

.mesh24-newsletter-strip {
    margin-block: 16px 28px;
    padding: clamp(18px, 2.5vw, 30px);
}

.mesh24-newsletter-page {
    padding: clamp(20px, 4vw, 42px);
}

.mesh24-newsletter-page .mesh24-newsletter-form {
    margin-top: 22px;
}

.mesh24-newsletter-intro {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 17px);
    min-width: 0;
}

.mesh24-newsletter-intro h1,
.mesh24-newsletter-intro h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    line-height: 1.18;
    text-wrap: pretty;
}

.mesh24-newsletter-intro p {
    margin: 7px 0 0;
    max-width: 52ch;
    color: var(--newsletter-muted);
}

.mesh24-newsletter-icon {
    display: grid;
    flex: none;
    width: clamp(42px, 5vw, 59px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 16px;
    background: #daeee0;
    color: #026937;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    font-weight: 750;
    line-height: 1;
}

.mesh24-newsletter-form,
.mesh24-newsletter-fields input {
    min-width: 0;
}

.mesh24-newsletter-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--newsletter-line);
    border-radius: 100px;
    background: #fff;
}

.mesh24-newsletter-fields input {
    width: 100%;
    min-height: 43px;
    padding: 6px 12px;
    border: 0;
    border-radius: 100px;
    background: #fff;
    color: #182821;
}

.mesh24-newsletter-fields input::placeholder {
    color: #52655a;
}

.mesh24-newsletter-fields button {
    min-height: 43px;
    padding: 8px 17px;
    border: 0;
    border-radius: 100px;
    background: var(--newsletter-green);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.mesh24-newsletter-fields button:hover:not(:disabled) {
    background: #026937;
}

.mesh24-newsletter-fields button:disabled {
    opacity: .65;
    cursor: default;
}

.mesh24-newsletter-consent,
.mesh24-newsletter-status {
    margin: 8px 5px 0;
    color: var(--newsletter-muted);
    font-size: .86rem;
}

.mesh24-newsletter-consent a {
    color: #28563f;
    text-decoration: underline;
    text-underline-offset: .13em;
}

.mesh24-newsletter-status:empty {
    display: none;
}

.mesh24-newsletter-status[data-state="error"] {
    color: #9b3026;
}

.mesh24-newsletter-popup {
    position: fixed;
    z-index: 60;
    inset: auto clamp(12px, 3vw, 26px) calc(var(--cookie-notice-height, 0px) + max(14px, env(safe-area-inset-bottom)));
    max-width: 1200px;
    max-height: calc(100dvh - var(--cookie-notice-height, 0px) - 28px);
    margin-inline: auto;
    padding: clamp(18px, 3vw, 28px);
    padding-inline-end: clamp(51px, 6vw, 66px);
    overflow: auto;
    border-top: 3px solid #79b98b;
    background: #e6f1e8;
    box-shadow: 0 12px 34px #213e2e32;
}

.mesh24-newsletter-popup[hidden] {
    display: none;
}

.mesh24-newsletter-dismiss {
    position: absolute;
    inset: 10px 10px auto auto;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    padding: 0;
    border: 1px solid #aacbb4;
    border-radius: 11px;
    background: #f6fbf6;
    color: var(--newsletter-dark);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.mesh24-newsletter-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.mesh24-newsletter-social a {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #b9d9c3;
    border-radius: 12px;
    background: #d9ebdf;
    color: #026937;
}

.mesh24-newsletter-social a:hover,
.mesh24-newsletter-dismiss:hover {
    background: #cfe7d6;
}

.mesh24-newsletter-social svg {
    width: 24px;
    height: 24px;
}

.mesh24-newsletter-strip :focus-visible,
.mesh24-newsletter-popup :focus-visible,
.mesh24-newsletter-page :focus-visible {
    outline: 2px solid #026937;
    outline-offset: 2px;
}

@media (max-width: 800px) {
    .mesh24-newsletter-strip,
    .mesh24-newsletter-popup {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mesh24-newsletter-popup {
        padding-inline-end: 18px;
    }

    .mesh24-newsletter-popup .mesh24-newsletter-intro {
        padding-inline-end: 38px;
    }
}

@media (max-width: 480px) {
    .mesh24-newsletter-fields {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 0;
        border: 0;
        background: none;
    }

    .mesh24-newsletter-fields input {
        border: 1px solid var(--newsletter-line);
    }
}
