/* email-modal.css — email widget chooser modal for 2mv.io
 * Loaded by index.html. Activated by script.email-modal.js when an
 * email widget (type === "email") is clicked.
 * Mobile-first. No external dependencies. Reuses Montserrat from style.css.
 */

.email-modal[hidden] { display: none !important; }

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: Montserrat, system-ui, -apple-system, sans-serif;
}

.email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: em-fade-in 180ms ease-out;
}

.email-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 28px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  max-height: 92vh;
  overflow-y: auto;
  animation: em-slide-up 220ms ease-out;
}

@media (min-width: 560px) {
  .email-modal { align-items: center; }
  .email-modal__sheet {
    border-radius: 16px;
    max-height: 84vh;
  }
}

@keyframes em-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes em-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.email-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 10px;
}
.email-modal__close:hover { color: #111827; }

.email-modal__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

.email-modal__providers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-modal__providers button {
  display: block;
  width: 100%;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 80ms;
}
.email-modal__providers button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.email-modal__providers button:active {
  transform: scale(0.98);
}
