.pec-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pec-wa-modal[hidden] {
  display: none !important;
}
body.pec-wa-modal-open {
  overflow: hidden;
}
.pec-wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.pec-wa-modal-dialog {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(90vh, 36rem);
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.pec-wa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pec-wa-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}
.pec-wa-modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.pec-wa-modal-close:hover {
  color: #fff;
}
.pec-wa-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}
.pec-wa-modal-badge {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #86efac;
  font-size: 0.875rem;
  font-weight: 600;
}
.pec-wa-modal-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #d1d5db;
}
.pec-wa-modal-textarea {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
}
.pec-wa-modal-textarea:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}
.pec-wa-modal-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}
.pec-wa-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pec-wa-modal-btn {
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.pec-wa-modal-btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
}
.pec-wa-modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.pec-wa-modal-btn-primary {
  background: #25d366;
  color: #fff;
}
.pec-wa-modal-btn-primary:hover {
  background: #20bd5a;
}
