.apm-newsletter-bar {
    box-sizing: border-box;
    /* Break out of any boxed Elementor container to span the full viewport width. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1f3a;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    padding: 0 16px;
    /* Visible by default; slides in once on load (no dependency on JS to appear). */
    animation: apm-slide-in .5s ease both;
}

/* JS adds this to permanently hide after close / successful signup. */
.apm-newsletter-bar.apm-dismissed {
    display: none !important;
}

/* JS adds this for the slide-out before hiding. */
.apm-newsletter-bar.apm-out {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .45s ease, opacity .45s ease;
}

@keyframes apm-slide-in {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Force a single non-wrapping row (theme/Elementor styles tend to block-stack form fields). */
.apm-newsletter-bar .apm-nb-form {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 6px 0;
}

.apm-newsletter-bar .apm-nb-label {
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.apm-newsletter-bar .apm-nb-email {
    flex: 1 1 auto;
    width: auto !important;
    max-width: 360px;
    min-height: 0 !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 34px !important;
    color: #1a1a1a;
    background: #fff;
}

.apm-newsletter-bar .apm-nb-btn {
    flex: 0 0 auto;
    width: auto !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #f5a623;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    line-height: 34px !important;
    cursor: pointer;
    white-space: nowrap;
}

.apm-newsletter-bar .apm-nb-btn:disabled {
    opacity: .6;
    cursor: default;
}

.apm-newsletter-bar .apm-nb-msg {
    flex: 0 1 auto;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apm-newsletter-bar .apm-nb-close {
    flex: 0 0 auto;
    margin-left: auto;
    background: transparent !important;
    border: 0 !important;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px !important;
    width: auto !important;
    height: auto !important;
    opacity: .85;
}

.apm-newsletter-bar .apm-nb-close:hover {
    opacity: 1;
}

/* Only allow wrapping on very small screens. */
@media (max-width: 600px) {
    .apm-newsletter-bar .apm-nb-form {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 6px;
    }
    .apm-newsletter-bar .apm-nb-label {
        white-space: normal;
    }
    .apm-newsletter-bar .apm-nb-close {
        margin-left: 6px;
    }
}
