/* ==========================================================
   fyi50+ Newsletter Signup Plugin
   Brand: Cyan #29A8D8 | Black #111111
   Font sizes, colors, and weights inherit from the theme
   except where noted.
   ========================================================== */

/* ----------------------------------------------------------
   Inline Widget (Widget 1)
   ---------------------------------------------------------- */

.fyi50nl-inline-widget {
  box-sizing: border-box;
  border: 0.5px solid #e0e0e0;
  border-left: 3px solid #29A8D8;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  background: #f7f7f7;
  margin: 1.75rem 0;
}

.fyi50nl-inline-widget h3 {
  margin: 0 0 4px;
}

.fyi50nl-inline-widget > p {
  margin: 0 0 12px;
}

/* ----------------------------------------------------------
   Inline Thank-You State (Widget 1b)
   ---------------------------------------------------------- */

.fyi50nl-inline-thankyou {
  box-sizing: border-box;
  border: 0.5px solid #29A8D8;
  border-left: 3px solid #29A8D8;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  background: #f0faff;
  margin: 1.75rem 0;
}

.fyi50nl-inline-thankyou h3 {
  margin: 0 0 4px;
}

.fyi50nl-inline-thankyou p {
  margin: 0;
}

/* ----------------------------------------------------------
   Shared Form Elements
   ---------------------------------------------------------- */

.fyi50nl-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fyi50nl-form-row .fyi50nl-email {
  flex: 1 1 180px;
  padding: 9px 12px;
  font-size: inherit;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  min-width: 0;
}

.fyi50nl-form-row .fyi50nl-email:focus {
  border-color: #29A8D8;
}

/* Buttons: brand colors are intentional and must not inherit */
.fyi50nl-btn,
.fyi50nl-form-row .fyi50nl-btn,
.fyi50nl-inline-widget .fyi50nl-btn,
.fyi50nl-popup-body .fyi50nl-btn,
.fyi50nl-popup-thankyou .fyi50nl-btn,
.fyi50nl-sticky .fyi50nl-btn {
  background: #29A8D8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.fyi50nl-btn:hover,
.fyi50nl-btn:focus,
.fyi50nl-form-row .fyi50nl-btn:hover,
.fyi50nl-form-row .fyi50nl-btn:focus,
.fyi50nl-inline-widget .fyi50nl-btn:hover,
.fyi50nl-inline-widget .fyi50nl-btn:focus,
.fyi50nl-popup-body .fyi50nl-btn:hover,
.fyi50nl-popup-body .fyi50nl-btn:focus,
.fyi50nl-popup-thankyou .fyi50nl-btn:hover,
.fyi50nl-popup-thankyou .fyi50nl-btn:focus,
.fyi50nl-sticky .fyi50nl-btn:hover,
.fyi50nl-sticky .fyi50nl-btn:focus {
  background: #111;
  color: #fff;
  outline: none;
}

.fyi50nl-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.fyi50nl-msg {
  font-size: inherit;
  margin-top: 6px;
  min-height: 1em;
}

.fyi50nl-msg.is-error {
  color: #c00;
}

/* ----------------------------------------------------------
   End-of-Post Prompt
   ---------------------------------------------------------- */

.fyi50nl-end-prompt {
}

.fyi50nl-end-prompt-link {
  color: #29A8D8;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.fyi50nl-end-prompt-link:hover {
  color: #111;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Popup Overlay
   ---------------------------------------------------------- */

.fyi50nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fyi50nl-fade-in 0.2s ease;
}

.fyi50nl-overlay[hidden] {
  display: none;
}

@keyframes fyi50nl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----------------------------------------------------------
   Popup Modal
   ---------------------------------------------------------- */

.fyi50nl-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: fyi50nl-slide-up 0.22s ease;
}

@keyframes fyi50nl-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.fyi50nl-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s;
}

.fyi50nl-close:hover { opacity: 0.75; }

/* Image area */
.fyi50nl-popup-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e0e0e0;
}

.fyi50nl-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.fyi50nl-popup-tagline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.fyi50nl-popup-tagline p {
  color: #fff;
  font-style: italic;
  font-family: Georgia, serif;
  margin: 0;
}

/* Popup body */
.fyi50nl-popup-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.fyi50nl-popup-body h2 {
  margin: 0 0 0.5rem;
  line-height: 1.3;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  color: #29A8D8;
}

.fyi50nl-popup-subhead {
  margin: 0 0 0.75rem;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: #111;
  line-height: 1.4;
}

.fyi50nl-popup-description {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.fyi50nl-popup-privacy {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin: 0.75rem 0 0;
}

.fyi50nl-popup-body .fyi50nl-form-row {
  flex-direction: column;
  gap: 0;
}

.fyi50nl-popup-body .fyi50nl-form-row .fyi50nl-email {
  width: 100%;
  flex: unset;
  margin-bottom: 0.75rem;
}

.fyi50nl-popup-body .fyi50nl-form-row .fyi50nl-btn {
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 12px;
}

/* Popup thank-you state */
.fyi50nl-popup-thankyou {
  text-align: center;
  padding: 2rem 1.5rem 2.25rem;
}

.fyi50nl-popup-thankyou h2 {
  margin: 0 0 0.5rem;
}

.fyi50nl-popup-thankyou p {
  margin: 0 0 1.25rem;
}

.fyi50nl-popup-thankyou .fyi50nl-btn {
  border-radius: 8px;
  padding: 10px 24px;
}

/* ----------------------------------------------------------
   Back-to-top button: sit above the sticky bar
   ---------------------------------------------------------- */

a.go-to-top-button {
  z-index: 999999 !important;
}

/* ----------------------------------------------------------
   Sticky Bar
   ---------------------------------------------------------- */

.fyi50nl-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999998;
  background: #111;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: inherit;
  line-height: 1.45;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  animation: fyi50nl-slide-in-bottom 0.25s ease;
}

@keyframes fyi50nl-slide-in-bottom {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.fyi50nl-sticky[hidden] {
  display: none;
}

.fyi50nl-sticky p {
  margin: 0;
  color: #fff;
  white-space: normal;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}

.fyi50nl-sticky .fyi50nl-end-prompt-link {
  color: #fff;
  white-space: normal;
}

.fyi50nl-sticky .fyi50nl-end-prompt-link:hover {
  color: #29A8D8;
  text-decoration: none;
}

.fyi50nl-sticky-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: inherit;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.fyi50nl-sticky-close:hover { color: #fff; }

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .fyi50nl-sticky {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .fyi50nl-sticky p {
    flex-basis: 100%;
  }

  .fyi50nl-popup-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .fyi50nl-form-row {
    flex-direction: column;
  }

  .fyi50nl-form-row .fyi50nl-email,
  .fyi50nl-form-row .fyi50nl-btn {
    width: 100%;
    flex: unset;
  }
}
