/**
 * Brevo Mailz 2 — popup styling.
 *
 * Scoped under .bm2-* and using its own values rather than inheriting theme
 * styles, so the popup looks the same whichever theme it is dropped into.
 * Palette matches the retro sites: pitch green, gold, cream, charcoal.
 */

.bm2-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(44, 44, 44, .7);
}

.bm2-modal {
  position: relative;
  width: 100%;
  max-width: 448px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #EAE2D0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .3);
  box-sizing: border-box;
}

.bm2-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #2C2C2C;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.bm2-close:hover { color: #A07830; }

.bm2-body { padding: 28px 24px; }

.bm2-title {
  margin: 0 32px 0 0;
  font: 700 22px/1.2 'Oswald', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #2C2C2C;
}

.bm2-sub {
  margin: 12px 0 0;
  font: 400 14px/1.6 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #8A8A7A;
}

.bm2-form { margin-top: 20px; }

.bm2-label {
  display: block;
  margin-bottom: 4px;
  font: 600 11px/1.4 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2C2C2C;
}

.bm2-input {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #EAE2D0;
  border-radius: 0;
  background: #fff;
  font: 400 14px/1.4 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #2C2C2C;
  box-sizing: border-box;
}
.bm2-input:focus { outline: none; border-color: #C9A84C; }

/* Honeypot: reachable to bots, invisible and unfocusable for people. */
.bm2-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bm2-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font: 400 12px/1.5 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #8A8A7A;
  cursor: pointer;
}
.bm2-consent input { margin-top: 2px; flex: 0 0 auto; accent-color: #C9A84C; }

.bm2-error {
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #e5b4b4;
  background: #fdf2f2;
  font: 400 13px/1.5 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #8c2b2b;
}

.bm2-success {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #C9A84C;
  background: #F5F0E8;
  font: 500 14px/1.5 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #2C2C2C;
}

.bm2-submit {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: #C9A84C;
  color: #2C2C2C;
  font: 700 14px/1 'Oswald', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
.bm2-submit:hover { background: #A07830; }
.bm2-submit.is-busy { opacity: .6; cursor: not-allowed; }

/* ── Collapsed tab ──────────────────────────────────────────────────────── */

.bm2-tab {
  position: fixed;
  right: 16px;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: stretch;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .22);
}

.bm2-tab-open,
.bm2-tab-close {
  border: 0;
  cursor: pointer;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  color: #2C2C2C;
}

.bm2-tab-open {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #C9A84C;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bm2-tab-open:hover { background: #A07830; }
.bm2-tab-mark { font-size: 16px; line-height: 1; }

.bm2-tab-close {
  padding: 0 12px;
  background: #A07830;
  font-size: 18px;
  line-height: 1;
}
.bm2-tab-close:hover { background: #2C2C2C; color: #fff; }

@media (max-width: 480px) {
  .bm2-tab { right: 8px; }
  .bm2-tab-open { font-size: 13px; padding: 11px 13px; }
  .bm2-body { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .bm2-overlay, .bm2-tab { transition: none !important; }
}
