/* =========================================================
   NEWSLETTER PRE-FOOTER — Loja da Barba
   Faixa verde colada no rodapé, acima da barra de benefícios.
   ========================================================= */

.ldb-newsletter {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: var(--ldb-ink);
    font-family: "Lexend", Arial, sans-serif;
    color: #F8F4EC;
    border-top: 1px solid rgba(212, 175, 104, 0.45);
}

.ldb-newsletter__wrap {
    padding-top: 14px;
    padding-bottom: 14px;
}

.ldb-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 28px;
    min-height: 0;
    height: auto;
}

.ldb-newsletter__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ldb-newsletter__kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8C989;
}

.ldb-newsletter__title {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.28;
    font-weight: 700;
    color: #ffffff;
}

.ldb-newsletter__desc,
.ldb-newsletter__desc p,
.ldb-newsletter__desc h1,
.ldb-newsletter__desc h2,
.ldb-newsletter__desc h3,
.ldb-newsletter__desc h4 {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: #d9e4dc;
}

.ldb-newsletter__form {
    flex: 1 0 420px;
    max-width: 560px;
    min-width: 0;
}

.ldb-newsletter__row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ldb-newsletter__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0 0 8px;
    padding: 0 16px;
    border: 1px solid rgba(212, 175, 104, 0.45);
    border-radius: 10px;
    background: #F8F4EC;
    color: var(--ldb-ink);
    font-family: inherit;
    font-size: 15px;
    box-shadow: none;
}

.ldb-newsletter__row .ldb-newsletter__input {
    margin-bottom: 0;
}

.ldb-newsletter__input:focus {
    outline: none;
    border-color: var(--ldb-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 104, 0.24);
}

.ldb-newsletter__input::placeholder {
    color: #7a7a7a;
}

.ldb-newsletter__btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--ldb-gold);
    color: var(--ldb-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease;
}

.ldb-newsletter__btn:hover,
.ldb-newsletter__btn:focus-visible {
    background: var(--ldb-gold-hover);
    color: #ffffff;
    outline: none;
}

.ldb-newsletter__legal {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(248, 244, 236, 0.72);
}

.ldb-newsletter__legal-link {
    color: #E8C989;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.22s ease;
}

.ldb-newsletter__legal-link:hover,
.ldb-newsletter__legal-link:focus-visible {
    color: #ffffff;
    outline: none;
}

.ldb-newsletter .notify {
    min-height: 0;
    margin-top: 6px;
}

.ldb-newsletter .ldb-newsletter__alert,
.ldb-newsletter .txt-danger,
.ldb-newsletter .txt-success,
.ldb-newsletter .text-danger,
.ldb-newsletter .text-success {
    display: block !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 0 !important;
    border-left: 3px solid #C4784A !important;
    background: #F8F4EC !important;
    color: var(--ldb-ink) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-shadow: none !important;
}

.ldb-newsletter .ldb-newsletter__alert--success,
.ldb-newsletter .txt-success,
.ldb-newsletter .text-success {
    border-left-color: var(--ldb-gold) !important;
}

.ldb-newsletter .txt-danger .close,
.ldb-newsletter .txt-success .close,
.ldb-newsletter .ldb-newsletter__alert .close {
    display: none;
}

.ldb-newsletter .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main_newsletter,
.padding_section {
    padding: 0 !important;
    background: transparent !important;
}

.ldb-newsletter + footer.ciFooter {
    margin-top: 0;
}

@media (max-width: 767px) {
    .ldb-newsletter,
    .ldb-newsletter__inner,
    .ldb-newsletter__copy,
    .ldb-newsletter__form {
        flex: none;
        height: auto;
        min-height: 0;
        max-width: none;
    }

    .ldb-newsletter__wrap {
        padding: 12px 15px 10px;
    }

    .ldb-newsletter__inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        gap: 8px;
    }

    .ldb-newsletter__kicker {
        display: none;
    }

    .ldb-newsletter__title {
        margin: 0;
        font-size: 16px;
        line-height: 1.25;
        white-space: normal;
    }

    .ldb-newsletter__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.4;
    }

    .ldb-newsletter__row {
        flex-direction: column;
        gap: 8px;
    }

    .ldb-newsletter__input,
    .ldb-newsletter__btn {
        height: 44px;
        font-size: 15px;
        width: 100%;
    }

    .ldb-newsletter__btn {
        padding: 0 16px;
    }

    .ldb-newsletter__legal {
        margin-top: 6px;
        font-size: 10px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ldb-newsletter__btn {
        transition: none;
    }
}
