/* Floating button: solid black with white text by default. */
.btn.menoux-news-trigger,
.btn.menoux-news-trigger:hover,
.btn.menoux-news-trigger:focus-visible,
.btn.menoux-news-trigger:active {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem);
  z-index: 1030;

  padding: 0.65rem 1rem;
  max-width: calc(100vw - 2rem);
  min-height: 44px;

  border: 1px solid var(--menoux-news-bg, #000);
  border-radius: var(--bs-border-radius, 0.375rem);

  background: var(--menoux-news-bg, #000);
  color: var(--menoux-news-text, #fff);
  opacity: 1;
  mix-blend-mode: normal;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  box-shadow: none;
  transition: none;
}

/* JavaScript adds this class over darker images. */
.menoux-news-trigger.menoux-news-trigger-light {
  --menoux-news-bg: #fff;
  --menoux-news-text: #000;
}

.btn.menoux-news-trigger:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

/* Modal window. */
#menouxNewsModal .modal-dialog {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#menouxNewsModal .menoux-news-panel {
  color: #171717;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
}

#menouxNewsModal .modal-header,
#menouxNewsModal .modal-body {
  padding: 1.5rem;
}

#menouxNewsModal .form-control {
  min-height: 44px;
  font-size: 1rem;
}

/* Hide the bot-trap fields. Both class names are supported. */
#menouxNewsForm .menoux-form-control-hp,
#menouxNewsForm .matx-form-control-hp {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
