/* ─────────────────────────────────────────────────────────────
 * Mittivoy Web Push — Subscribe Prompt
 * v1 — 2026-05-24
 * Bottom-left toast (mobile: bottom sheet)
 * ───────────────────────────────────────────────────────────── */

.mvy-push-prompt {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow:
    0 24px 56px -16px rgba(15, 23, 42, 0.28),
    0 8px 16px -8px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.mvy-push-prompt--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mvy-push-prompt__inner {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 18px 18px 18px;
}

.mvy-push-prompt__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #56D4F3 0%, #0EA5C2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(249, 115, 22, 0.5);
}

.mvy-push-prompt__icon svg {
  width: 26px;
  height: 26px;
}

.mvy-push-prompt__content {
  flex: 1 1 auto;
  min-width: 0;
}

.mvy-push-prompt__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.mvy-push-prompt__body {
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 14px;
}

.mvy-push-prompt__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mvy-push-prompt__btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
  white-space: nowrap;
}

.mvy-push-prompt__btn:active {
  transform: scale(0.96);
}

.mvy-push-prompt__btn--primary {
  background: linear-gradient(135deg, #56D4F3 0%, #0EA5C2 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px -4px rgba(249, 115, 22, 0.5);
}

.mvy-push-prompt__btn--primary:hover {
  background: linear-gradient(135deg, #6EDDF5 0%, #56D4F3 100%);
}

.mvy-push-prompt__btn--ghost {
  background: transparent;
  color: #64748b;
}

.mvy-push-prompt__btn--ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.mvy-push-prompt__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.mvy-push-prompt__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Loading state — disable buttons while subscribing */
.mvy-push-prompt--loading .mvy-push-prompt__btn {
  opacity: 0.55;
  pointer-events: none;
}

.mvy-push-prompt--loading .mvy-push-prompt__btn--primary::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: mvy-push-spin 0.8s linear infinite;
  vertical-align: -2px;
}

@keyframes mvy-push-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile — bottom sheet style */
@media (max-width: 640px) {
  .mvy-push-prompt {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    border-radius: 18px;
  }

  .mvy-push-prompt__inner {
    padding: 16px;
    gap: 12px;
  }

  .mvy-push-prompt__icon {
    width: 44px;
    height: 44px;
  }

  .mvy-push-prompt__title {
    font-size: 15px;
  }

  .mvy-push-prompt__body {
    font-size: 13px;
  }

  .mvy-push-prompt__actions {
    gap: 6px;
  }

  .mvy-push-prompt__btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 11px 12px;
  }
}

/* Dark-mode respect (only if site has any dark theme later) */
@media (prefers-color-scheme: dark) {
  /* Site is light-only — keep light styling. Reserved for future use. */
}
