/* Newsletter: a minimal full-width footer form.
 * Pill row with merged input + button. No card wrapper, no extra padding.
 *
 * NOTE: styles are scoped to the widget's OWN class
 * (.widget_newsletter_subscription_widget) so they apply everywhere the widget
 * renders, whether or not the surrounding footer markup adds the optional
 * .footer-newsletter-wrap container. */

/* Some other footer content (a search bar, BBB widget, etc.) was pushing the
 * footer column past the viewport on mobile, which dragged the Subscribe
 * button off-screen. Lock the entire footer column to a strict 100vw width
 * with horizontal overflow clipped so nothing inside it can blow it wider. */
@media (max-width: 849px){
  body .footer-widgets,
  body .footer-widgets .row,
  body .footer-widgets .col,
  body .footer-widgets .widget,
  body .footer-widgets .textwidget,
  body .footer-widgets .custom-html-widget,
  body .footer-newsletter-wrap,
  body .footer-widgets .widget_newsletter_subscription_widget{
    max-width:100vw !important;
    min-width:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  body .footer-widgets .col{
    padding-left:14px !important;
    padding-right:14px !important;
  }
}
.footer-newsletter-wrap,
.widget_newsletter_subscription_widget{
  margin:14px 0 0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.footer-newsletter-wrap .newsletter-widget-container,
.footer-newsletter-wrap > .widget,
.widget_newsletter_subscription_widget .newsletter-widget-container{
  max-width:100% !important;
  width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.footer-newsletter-wrap::before{
  /* Eyebrow sits ABOVE the input, centered. Its words are the setting eyebrow,
   * printed as one inline rule (content); with no words this box is not drawn. */
  display:block;
  width:100%;
  text-align:center;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9aa6b2;
  margin:0 0 6px;
}

/* Reset the WP widget chrome the_widget() emits. */
.footer-newsletter-wrap .widget,
.footer-newsletter-wrap .widget_newsletter_subscription_widget,
.widget_newsletter_subscription_widget{
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  width:100% !important;
}
.footer-newsletter-wrap .newsletter-widget-container,
.widget_newsletter_subscription_widget .newsletter-widget-container{
  padding:0 !important;
  margin:0 !important;
  width:100% !important;
}

/* The form itself: pill row, full available width. */
.widget_newsletter_subscription_widget .newsletter-form{
  /* Flex layout: input grows, button at fixed width. Avoids absolute
   * positioning quirks where the form's containing block was being inherited
   * from an ancestor wider than the viewport. */
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  gap:0 !important;
  width:100% !important;
  max-width:100% !important;
  height:40px !important;
  background:#fff !important;
  border:1px solid rgba(17,65,101,.35) !important;
  border-radius:6px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.widget_newsletter_subscription_widget .newsletter-form:focus-within{
  border-color:#114165 !important;
  box-shadow:0 0 0 3px rgba(17,65,101,.18) !important;
}

.widget_newsletter_subscription_widget .newsletter-form input[type="email"]{
  flex:1 1 0 !important;
  width:0 !important;
  min-width:0 !important;
  height:100% !important;
  /* padding-top 0, padding-bottom 2 — lifts text baseline ~1-2px upward to
   * match the SUBSCRIBE button's optical center. */
  padding:0 12px 2px !important;
  line-height:1 !important;
  font-size:13px !important;
  border:0 !important;
  border-radius:0 !important;
  outline:none !important;
  background:transparent !important;
  color:#0b1d3a !important;
  box-sizing:border-box !important;
}
.widget_newsletter_subscription_widget .newsletter-form input[type="email"]::placeholder{
  color:rgba(90,108,125,.62) !important;
  font-weight:500 !important;
  font-size:13px !important;
}

.widget_newsletter_subscription_widget .newsletter-submit-button{
  /* Fixed-width flex item, pushed flush against the form's right edge with
   * margin-left:auto so any leftover whitespace lives between the input and
   * the button rather than to the right of the button. */
  flex:0 0 114px !important;
  width:114px !important;
  margin-left:auto !important;
  height:100% !important;
  background-color:#114165 !important;
  color:#fff !important;
  border:0 !important;
  /* padding-top 0, padding-bottom 2 — lifts SUBSCRIBE text ~1px upward
   * relative to vertical center. */
  padding:0 12px 2px !important;
  font-size:12px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  line-height:1 !important;
  border-radius:0 !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  white-space:nowrap !important;
  min-width:114px !important;
  max-width:114px !important;
  box-sizing:border-box !important;
  transition:background-color .15s ease !important;
}
.widget_newsletter_subscription_widget .newsletter-submit-button:hover{ background-color:#0b3a5a !important; }
.widget_newsletter_subscription_widget .arrow-icon{ font-size:12px !important; color:#fff !important; line-height:1 !important; }

.widget_newsletter_subscription_widget #newsletter-message{
  margin-top:8px !important;
  font-size:12px !important;
  border-radius:6px !important;
  text-align:left !important;
}
.widget_newsletter_subscription_widget #newsletter-message.success{
  background:rgba(22,163,74,.14) !important;
  color:#a4f0c2 !important;
  border:1px solid rgba(22,163,74,.35) !important;
  padding:6px 10px !important;
  width:auto !important;
}
.widget_newsletter_subscription_widget #newsletter-message.error{
  background:rgba(220,38,38,.14) !important;
  color:#ffb4b4 !important;
  border:1px solid rgba(220,38,38,.35) !important;
  padding:6px 10px !important;
  width:auto !important;
}
