.bbg-newsletter-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 80;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid #222;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  padding: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
}

.bbg-newsletter-panel[hidden] {
  display: none;
}

.bbg-newsletter-panel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bbg-newsletter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bbg-newsletter-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 750;
}

.bbg-newsletter-close {
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 18px;
  line-height: 1;
}

.bbg-newsletter-close:hover {
  background: #f6f6f6;
}

.bbg-newsletter-copy {
  margin: 8px 0 12px;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

.bbg-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bbg-newsletter-row {
  display: flex;
  gap: 8px;
}

.bbg-newsletter-input {
  min-width: 0;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  font-size: 13px;
}

.bbg-newsletter-input:focus-visible,
.bbg-newsletter-submit:focus-visible,
.bbg-newsletter-close:focus-visible,
.bbg-newsletter-consent input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.bbg-newsletter-submit {
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bbg-newsletter-submit:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.bbg-newsletter-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #333;
  font-size: 11px;
  line-height: 1.35;
}

.bbg-newsletter-consent input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.bbg-newsletter-privacy {
  margin: 0;
  color: #666;
  font-size: 11px;
  line-height: 1.35;
}

.bbg-newsletter-privacy a {
  color: #111;
}

.bbg-newsletter-status {
  min-height: 17px;
  color: #555;
  font-size: 12px;
  line-height: 1.35;
}

.bbg-newsletter-status[data-kind="error"] {
  color: #b00020;
}

.bbg-newsletter-status[data-kind="success"] {
  color: #166534;
}

.bbg-newsletter-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 520px) {
  .bbg-newsletter-panel {
    right: 12px;
    left: 12px;
    bottom: 76px;
    width: auto;
  }

  .bbg-newsletter-row {
    flex-direction: column;
  }
}
