.shared-modal-open { overflow: hidden; }
.shared-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.5);
  z-index: 9999;
  padding: 16px;
}
.shared-modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
}
.shared-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.shared-modal-title { font-size: 18px; margin: 0; }
.shared-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.shared-modal-body { padding: 16px; font-size: 14px; }
.shared-modal-message { line-height: 1.6; }
.shared-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 10px 14px 14px 14px;
}
.shared-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}
.shared-btn-secondary { background: #E5E7EB; color: #111827; }
.shared-btn-danger { background: #DC2626; color: #fff; }
.shared-btn:hover { filter: brightness(0.98); }

/* Simple inline spinner used in confirm button while processing */
.cm-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

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