/* ===================================================================
   BNewsletter — Tools style

   Typography, colours and spacing follow the tools footer in
   catalog/view/theme/barik/css/tools/style.css, so the module sits on
   the same scale as .footer-col-title / .footer-news-text /
   .newsletter-input / .newsletter-btn instead of carrying the copper
   palette the shared sheet was written against.

   Corner rounding comes from --bn-radius, which the template writes
   from the module's Corner Rounding setting.
=================================================================== */

.b-newsletter-col {
    --bn-bg: transparent;
    max-width: 360px;
}

/* Heading — the module reuses .footer-col-title, so it already picks up
   the footer's 13px uppercase label. Only the rhythm is set here. */
.b-newsletter-col .footer-col-title {
    margin-bottom: 12px;
}

.b-newsletter-col p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted, #6b7280);
    margin-bottom: 12px;
}

/* ── Form ─────────────────────────────────────────────────────────
   Metrics copied from .newsletter-form / .newsletter-input /
   .newsletter-btn in tools/style.css, so the module and the theme's
   own footer newsletter are indistinguishable.

   Input and button are separate pills with a gap between them, not a
   joined pair — which also means every corner rounds, with no
   half-radius bookkeeping.
─────────────────────────────────────────────────────────────────── */

.b-news-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.b-news-row {
    display: flex;
    gap: 8px;
}

.b-news-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle, #e5e7eb);
    border-radius: var(--bn-radius, 999px);
    background: #fcfcfc;
    color: var(--text-main, #111827);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    transition: border-color var(--transition-fast, 150ms ease-out),
                box-shadow var(--transition-fast, 150ms ease-out),
                background var(--transition-fast, 150ms ease-out);
}

.b-news-input::placeholder {
    color: var(--text-muted, #6b7280);
}

.b-news-input:focus {
    border-color: var(--primary, #a11414);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb, 161, 20, 20), 0.12);
    background: #ffffff;
}

.b-news-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--bn-radius, 999px);
    background: var(--primary, #a11414);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast, 150ms ease-out),
                transform var(--transition-fast, 150ms ease-out),
                box-shadow var(--transition-fast, 150ms ease-out);
}

.b-news-btn:hover {
    background: var(--primary-dark, #7b0f0f);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb, 161, 20, 20), 0.3);
}

.b-news-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Fine print under the form */
.b-news-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #6b7280);
}

.b-news-feedback {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #b91c1c;
}

@media (max-width: 560px) {
    .b-newsletter-col {
        max-width: none;
    }
}

input.b-news-input, .b-news-btn {
    height: 38px;
}

p.b-news-note {
    font-size: 13px;
    opacity: 0.7;
}