/* IRW15 – standalone, animated, some variants with emoji, some without */

#irw15-root,
#irw15-root * {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
}

/* Launcher */
.irw15-launcher {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  z-index: 999999;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
  animation: irw15-float 2.4s ease-in-out infinite, irw15-glow 2.1s ease-in-out infinite;
}

/* Some variants full pill, some more rectangular */
.irw15-v1.irw15-launcher  { background:#2563eb; border-radius:999px; }
.irw15-v2.irw15-launcher  { background:#db2777; border-radius:18px;  }
.irw15-v3.irw15-launcher  { background:#16a34a; border-radius:999px; }
.irw15-v4.irw15-launcher  { background:#ea580c; border-radius:12px;  }
.irw15-v5.irw15-launcher  { background:#7c3aed; border-radius:20px;  }
.irw15-v6.irw15-launcher  { background:#0891b2; border-radius:999px; }
.irw15-v7.irw15-launcher  { background:#dc2626; border-radius:14px;  }
.irw15-v8.irw15-launcher  { background:#0d9488; border-radius:999px; }
.irw15-v9.irw15-launcher  { background:#b91c1c; border-radius:16px;  }
.irw15-v10.irw15-launcher { background:#4f46e5; border-radius:999px; }
.irw15-v11.irw15-launcher { background:#059669; border-radius:18px;  }
.irw15-v12.irw15-launcher { background:#d97706; border-radius:12px;  }

.irw15-emoji {
  font-size: 20px;
  animation: irw15-pulse 1.4s ease-in-out infinite;
}

.irw15-launcher-text {
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 480px) {
  .irw15-launcher {
    left: 4%;
    right: 4%;
    justify-content: center;
    text-align: center;
  }
  .irw15-launcher-text {
    white-space: normal;
  }
}

/* Modal */
.irw15-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999998;
}
.irw15-modal.irw15-show {
  display: flex;
}

/* Box */
.irw15-box {
  background: #ffffff;
  color: #111827;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  padding: 20px 20px 18px;
  position: relative;
  font-size: 16px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* Top border accent */
.irw15-v1.irw15-box  { border-top: 4px solid #2563eb; }
.irw15-v2.irw15-box  { border-top: 4px solid #db2777; }
.irw15-v3.irw15-box  { border-top: 4px solid #16a34a; }
.irw15-v4.irw15-box  { border-top: 4px solid #ea580c; }
.irw15-v5.irw15-box  { border-top: 4px solid #7c3aed; }
.irw15-v6.irw15-box  { border-top: 4px solid #0891b2; }
.irw15-v7.irw15-box  { border-top: 4px solid #dc2626; }
.irw15-v8.irw15-box  { border-top: 4px solid #0d9488; }
.irw15-v9.irw15-box  { border-top: 4px solid #b91c1c; }
.irw15-v10.irw15-box { border-top: 4px solid #4f46e5; }
.irw15-v11.irw15-box { border-top: 4px solid #059669; }
.irw15-v12.irw15-box { border-top: 4px solid #d97706; }

.irw15-box.irw15-box-visible {
  transform: translateY(0);
  opacity: 1;
}

.irw15-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
}
.irw15-close:hover {
  color: #111827;
}

/* Title */
.irw15-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

/* Form */
.irw15-label {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.irw15-required {
  color: #dc2626;
  margin-left: 4px;
}
.irw15-label input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
}
.irw15-label input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,.35);
}

/* Submit */
.irw15-submit {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.1s ease-out;
}
.irw15-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
}
.irw15-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

/* Error */
.irw15-err {
  margin-top: 10px;
  font-size: 16px;
  color: #dc2626;
}

/* Success */
.irw15-success {
  display: none;
  margin-top: 24px;
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
  text-align: center;
}

/* Animations */
@keyframes irw15-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
@keyframes irw15-glow {
  0%   { box-shadow: 0 14px 32px rgba(15, 23, 42, 0.4); }
  50%  { box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7); }
  100% { box-shadow: 0 14px 32px rgba(15, 23, 42, 0.4); }
}
@keyframes irw15-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
