.live-demo-card {
  max-width: 560px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
}

.live-demo-card label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.live-demo-dialog {
  z-index: 4000;
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  color: #1d3456;
  box-shadow: 0 24px 60px rgba(14, 28, 48, 0.28);
}

body.live-demo-open .closing-bar,
body.live-demo-open .closing-notch,
body.live-demo-open .shu-wa-fab {
  z-index: 1;
}

.live-demo-dialog::backdrop {
  background: rgba(14, 28, 48, 0.55);
}

.live-demo-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.live-demo-dialog p {
  margin: 0 0 1rem;
}

.live-demo-dialog label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.live-demo-dialog input {
  width: 100%;
  border: 1px solid #d7d2c8;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.live-demo-dialog-close {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.live-demo-dialog-close button {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #5c6b7a;
}

.live-demo-dialog button[disabled] {
  opacity: 0.72;
  cursor: progress;
}

.live-demo-dialog-status {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #f3f6f4;
}

.live-demo-dialog-status.is-ok {
  background: #e8f6ee;
  color: #14663a;
}

.live-demo-dialog-status.is-error {
  background: #fff1f0;
  color: #8a2a1a;
}

.live-demo-dialog-status.is-info {
  background: #eff1ff;
  color: #10194f;
}

.live-demo-progress {
  height: 8px;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: #efe8df;
  overflow: hidden;
}

.live-demo-progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7b32, #ffb080);
  animation: live-demo-send 1.1s ease-in-out infinite;
}

@keyframes live-demo-send {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .live-demo-progress-bar { animation: none; width: 100%; }
}

.live-demo-wa {
  display: inline-flex;
  gap: 8px;
  margin-top: 0.75rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
}

.live-demo-wa:hover {
  background: #1ebe5d;
  color: #fff;
}

.live-demo-msg { display: none; }
