/* Contact limit pop-up (contact-limit.js), in the theme's navy and green */
.fl-contact-limit {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 41, 78, 0.6);
}

.fl-contact-limit[hidden] {
  display: none;
}

.fl-contact-limit__dialog {
  width: 100%;
  max-width: 460px;
  padding: 28px 24px 24px;
  border-top: 6px solid #5aba47;
  border-radius: 8px;
  background: #fff;
  color: #404040;
  font-family: inherit;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.fl-contact-limit__title {
  margin: 0 0 12px;
  color: #02529c;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

/*
 * The message's line breaks come from the setting. The font shrinks with the
 * screen so the default's first line (about 19em wide) never wraps on a phone,
 * keeping the break where the client asked for it.
 */
.fl-contact-limit__text {
  margin: 0 0 22px;
  font-size: min(17px, calc((100vw - 72px) / 21));
  line-height: 1.5;
  white-space: pre-line;
}

@media (max-width: 480px) {
  .fl-contact-limit__dialog {
    padding: 24px 20px 20px;
  }

  .fl-contact-limit__title {
    font-size: 21px;
  }
}

.fl-contact-limit__close {
  min-width: 140px;
  padding: 12px 24px;
  border: 0;
  border-radius: 4px;
  background: #87c12c;
  background: linear-gradient(to right, #87c12c 0%, #5aba47 100%);
  box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.fl-contact-limit__close:hover,
.fl-contact-limit__close:focus-visible {
  background: #70a129;
  background: linear-gradient(to right, #70a129 0%, #52a147 100%);
}

.fl-contact-limit__close:focus-visible {
  outline: 3px solid #02529c;
  outline-offset: 3px;
}
