/* Styles for the subscription-request modal shown by email-processing.js.
   Ported from the Rails app's _subscription_request_modal.scss so the modal
   renders consistently on the static features pages. */

.subscription-request-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscription-request-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.subscription-request-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  padding: 2rem;
  max-width: 30rem;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.subscription-request-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #282627;
  cursor: pointer;
}

.subscription-request-modal__title {
  color: #b8232f;
  margin: 0 0 0.75rem;
}

.subscription-request-modal__message {
  margin: 0;
  line-height: 1.6;
}

/* Disabled submit button. !important is needed because the form's button
   carries inline styles (and inline onmouseover/onmouseout handlers) that would
   otherwise keep it looking active. */
.mcpostman-form button[type="submit"]:disabled {
  background: #b0b0b0 !important;
  border-color: #b0b0b0 !important;
  cursor: not-allowed;
  opacity: 0.7;
}
